Skip to content

Commit 32b3653

Browse files
authored
fix the colorbar tick labels in plots (#212)
the colorbar's were not showing the data values
1 parent 8f935b7 commit 32b3653

6 files changed

Lines changed: 1 addition & 13 deletions

File tree

pyro/advection/simulation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import importlib
22

3-
import matplotlib
43
import matplotlib.pyplot as plt
54
import numpy as np
65

@@ -121,7 +120,6 @@ def dovis(self):
121120

122121
# needed for PDF rendering
123122
cb = axes.cbar_axes[0].colorbar(img)
124-
cb.formatter = matplotlib.ticker.FormatStrFormatter("")
125123
cb.solids.set_rasterized(True)
126124
cb.solids.set_edgecolor("face")
127125

pyro/advection_nonuniform/simulation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import importlib
22

3-
import matplotlib
43
import matplotlib.pyplot as plt
54
import numpy as np
65

@@ -145,7 +144,6 @@ def dovis(self):
145144

146145
# needed for PDF rendering
147146
cb = axes.cbar_axes[0].colorbar(img)
148-
cb.formatter = matplotlib.ticker.FormatStrFormatter("")
149147
cb.solids.set_rasterized(True)
150148
cb.solids.set_edgecolor("face")
151149

pyro/compressible/simulation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import importlib
22

3-
import matplotlib
43
import matplotlib.pyplot as plt
54
import numpy as np
65

@@ -381,7 +380,6 @@ def dovis(self):
381380

382381
# needed for PDF rendering
383382
cb = axes.cbar_axes[n].colorbar(img)
384-
cb.formatter = matplotlib.ticker.FormatStrFormatter("")
385383
cb.solids.set_rasterized(True)
386384
cb.solids.set_edgecolor("face")
387385

pyro/compressible_react/simulation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import matplotlib
21
import matplotlib.pyplot as plt
32
import numpy as np
43

@@ -107,7 +106,6 @@ def dovis(self):
107106

108107
# needed for PDF rendering
109108
cb = axes.cbar_axes[n].colorbar(img)
110-
cb.formatter = matplotlib.ticker.FormatStrFormatter("")
111109
cb.solids.set_rasterized(True)
112110
cb.solids.set_edgecolor("face")
113111

pyro/diffusion/simulation.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import importlib
44
import math
55

6-
import matplotlib
76
import matplotlib.pyplot as plt
87
import numpy as np
98

@@ -146,8 +145,7 @@ def dovis(self):
146145
plt.ylabel("y")
147146
plt.title("phi")
148147

149-
cb = plt.colorbar(img)
150-
cb.formatter = matplotlib.ticker.FormatStrFormatter("")
148+
plt.colorbar(img)
151149

152150
plt.figtext(0.05, 0.0125, f"t = {self.cc_data.t:10.5f}")
153151

pyro/swe/simulation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import importlib
22

3-
import matplotlib
43
import matplotlib.pyplot as plt
54
import numpy as np
65

@@ -258,7 +257,6 @@ def dovis(self):
258257

259258
# needed for PDF rendering
260259
cb = axes.cbar_axes[n].colorbar(img)
261-
cb.formatter = matplotlib.ticker.FormatStrFormatter("")
262260
cb.solids.set_rasterized(True)
263261
cb.solids.set_edgecolor("face")
264262

0 commit comments

Comments
 (0)