Skip to content

Commit

Permalink
Use faster algorithm for generating contours (#161)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulromano authored Jan 21, 2025
1 parent 9e75275 commit 6830777
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions openmc_plotter/plotgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,8 @@ def updatePixmap(self):
alpha=cv.tallyDataAlpha,
cmap=cmap,
norm=norm,
extent=extents)
extent=extents,
algorithm='serial')

else:
self.tally_image = self.ax.imshow(image_data,
Expand Down Expand Up @@ -673,7 +674,8 @@ def annotate_mesh(self, mesh_id):
colors='k',
linestyles='solid',
levels=np.unique(mesh_bins),
extent=data_bounds
extent=data_bounds,
algorithm='serial'
)

def plotSourceSites(self):
Expand Down Expand Up @@ -712,7 +714,8 @@ def add_outlines(self):
colors='k',
linestyles='solid',
levels=levels,
extent=data_bounds)
extent=data_bounds,
algorithm='serial')

@staticmethod
def parseContoursLine(line):
Expand Down

0 comments on commit 6830777

Please sign in to comment.