Skip to content

Commit 6830777

Browse files
authored
Use faster algorithm for generating contours (#161)
1 parent 9e75275 commit 6830777

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

openmc_plotter/plotgui.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,8 @@ def updatePixmap(self):
600600
alpha=cv.tallyDataAlpha,
601601
cmap=cmap,
602602
norm=norm,
603-
extent=extents)
603+
extent=extents,
604+
algorithm='serial')
604605

605606
else:
606607
self.tally_image = self.ax.imshow(image_data,
@@ -673,7 +674,8 @@ def annotate_mesh(self, mesh_id):
673674
colors='k',
674675
linestyles='solid',
675676
levels=np.unique(mesh_bins),
676-
extent=data_bounds
677+
extent=data_bounds,
678+
algorithm='serial'
677679
)
678680

679681
def plotSourceSites(self):
@@ -712,7 +714,8 @@ def add_outlines(self):
712714
colors='k',
713715
linestyles='solid',
714716
levels=levels,
715-
extent=data_bounds)
717+
extent=data_bounds,
718+
algorithm='serial')
716719

717720
@staticmethod
718721
def parseContoursLine(line):

0 commit comments

Comments
 (0)