From e372e98487c87ab2f4cc7258264ba2424731dd5d Mon Sep 17 00:00:00 2001 From: Michael Zingale Date: Fri, 30 Aug 2024 11:23:28 -0400 Subject: [PATCH] fix the colorbar tick labels in plots the colorbar's were not showing the data values --- pyro/advection/simulation.py | 1 - pyro/advection_nonuniform/simulation.py | 1 - pyro/compressible/simulation.py | 1 - pyro/compressible_react/simulation.py | 1 - pyro/diffusion/simulation.py | 1 - pyro/swe/simulation.py | 1 - 6 files changed, 6 deletions(-) diff --git a/pyro/advection/simulation.py b/pyro/advection/simulation.py index cb4e47796..ebebfb3dc 100644 --- a/pyro/advection/simulation.py +++ b/pyro/advection/simulation.py @@ -121,7 +121,6 @@ def dovis(self): # needed for PDF rendering cb = axes.cbar_axes[0].colorbar(img) - cb.formatter = matplotlib.ticker.FormatStrFormatter("") cb.solids.set_rasterized(True) cb.solids.set_edgecolor("face") diff --git a/pyro/advection_nonuniform/simulation.py b/pyro/advection_nonuniform/simulation.py index 1b5fd0fae..c58aca5a7 100755 --- a/pyro/advection_nonuniform/simulation.py +++ b/pyro/advection_nonuniform/simulation.py @@ -145,7 +145,6 @@ def dovis(self): # needed for PDF rendering cb = axes.cbar_axes[0].colorbar(img) - cb.formatter = matplotlib.ticker.FormatStrFormatter("") cb.solids.set_rasterized(True) cb.solids.set_edgecolor("face") diff --git a/pyro/compressible/simulation.py b/pyro/compressible/simulation.py index d308f1665..1e7f46bf6 100644 --- a/pyro/compressible/simulation.py +++ b/pyro/compressible/simulation.py @@ -277,7 +277,6 @@ def dovis(self): # needed for PDF rendering cb = axes.cbar_axes[n].colorbar(img) - cb.formatter = matplotlib.ticker.FormatStrFormatter("") cb.solids.set_rasterized(True) cb.solids.set_edgecolor("face") diff --git a/pyro/compressible_react/simulation.py b/pyro/compressible_react/simulation.py index 4fa6fe61f..1da1040dd 100644 --- a/pyro/compressible_react/simulation.py +++ b/pyro/compressible_react/simulation.py @@ -107,7 +107,6 @@ def dovis(self): # needed for PDF rendering cb = axes.cbar_axes[n].colorbar(img) - cb.formatter = matplotlib.ticker.FormatStrFormatter("") cb.solids.set_rasterized(True) cb.solids.set_edgecolor("face") diff --git a/pyro/diffusion/simulation.py b/pyro/diffusion/simulation.py index f05e21ccd..b8ecc5946 100644 --- a/pyro/diffusion/simulation.py +++ b/pyro/diffusion/simulation.py @@ -147,7 +147,6 @@ def dovis(self): plt.title("phi") cb = plt.colorbar(img) - cb.formatter = matplotlib.ticker.FormatStrFormatter("") plt.figtext(0.05, 0.0125, f"t = {self.cc_data.t:10.5f}") diff --git a/pyro/swe/simulation.py b/pyro/swe/simulation.py index f80190db3..10b458527 100644 --- a/pyro/swe/simulation.py +++ b/pyro/swe/simulation.py @@ -258,7 +258,6 @@ def dovis(self): # needed for PDF rendering cb = axes.cbar_axes[n].colorbar(img) - cb.formatter = matplotlib.ticker.FormatStrFormatter("") cb.solids.set_rasterized(True) cb.solids.set_edgecolor("face")