Skip to content

Commit

Permalink
bug fix for changes to Matplotlib API
Browse files Browse the repository at this point in the history
  • Loading branch information
giumas committed May 3, 2024
1 parent 52b8a55 commit 7ef6567
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion hdf_compass/compass_viewer/array/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def draw_figure(self):
img = self.axes.contourf(xx, yy, data, 25, cmap=plt.cm.get_cmap(self.colormap))
self.axes.set_aspect('equal')
if self.cb:
self.cb.on_mappable_changed(img)
self.cb.update_normal(img)
else:
self.cb = plt.colorbar(img, ax=self.axes)
self.cb.ax.tick_params(labelsize=8)
Expand Down
2 changes: 1 addition & 1 deletion hdf_compass/compass_viewer/geo_array/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def draw_figure(self):
self.axes.set_extent(self.geo_extent, crs=ccrs.PlateCarree())

if self.cb:
self.cb.on_mappable_changed(img)
self.cb.update_normal(img)
else:
self.cb = plt.colorbar(img, ax=self.axes)
self.cb.ax.tick_params(labelsize=8)
Expand Down
2 changes: 1 addition & 1 deletion hdf_compass/compass_viewer/geo_surface/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def draw_figure(self):
self.axes.set_extent(self.geo_extent, crs=ccrs.PlateCarree())

if self.cb:
self.cb.on_mappable_changed(img)
self.cb.update_normal(img)
else:
self.cb = plt.colorbar(img, ax=self.axes)
self.cb.ax.tick_params(labelsize=8)
Expand Down
2 changes: 1 addition & 1 deletion hdf_compass/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@
from hdf_compass.utils.utils import is_darwin, is_win, is_linux, url2path, path2url, data_url


__version__ = "0.7.b13"
__version__ = "0.7.b14"

0 comments on commit 7ef6567

Please sign in to comment.