Skip to content

Commit

Permalink
fix the colorbar tick labels in plots
Browse files Browse the repository at this point in the history
the colorbar's were not showing the data values
  • Loading branch information
zingale committed Aug 30, 2024
1 parent 1cdab61 commit e372e98
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion pyro/advection/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 0 additions & 1 deletion pyro/advection_nonuniform/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 0 additions & 1 deletion pyro/compressible/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 0 additions & 1 deletion pyro/compressible_react/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down
1 change: 0 additions & 1 deletion pyro/diffusion/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

Expand Down
1 change: 0 additions & 1 deletion pyro/swe/simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit e372e98

Please sign in to comment.