From 70dfee485e6349afdc752f6409487260767d25ce Mon Sep 17 00:00:00 2001 From: Chris Hansen Date: Mon, 26 Feb 2024 17:49:49 -0500 Subject: [PATCH] TokaMaker: Fix matplotlib exception in "plot_eddy" method --- src/python/OpenFUSIONToolkit/TokaMaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/OpenFUSIONToolkit/TokaMaker.py b/src/python/OpenFUSIONToolkit/TokaMaker.py index 56eead8..3f4e8e5 100644 --- a/src/python/OpenFUSIONToolkit/TokaMaker.py +++ b/src/python/OpenFUSIONToolkit/TokaMaker.py @@ -1291,7 +1291,7 @@ def plot_eddy(self,fig,ax,dpsi_dt=None,nlevels=40,colormap='jet',clabel=r'$J_w$ field_tmp = dpsi_dt/eta mesh_currents[mask_tmp] = numpy.sum(field_tmp[self.lc[mask_tmp,:]],axis=1)/3.0 mask = numpy.logical_or(mask,mask_tmp) - clf = ax.tripcolor(self.r[:,0],self.r[:,1],self.lc[mask],mesh_currents[mask],nlevels,cmap=colormap) + clf = ax.tripcolor(self.r[:,0],self.r[:,1],self.lc[mask],mesh_currents[mask],cmap=colormap) cb = fig.colorbar(clf,ax=ax) cb.set_label(clabel) # Make 1:1 aspect ratio