Skip to content

Commit

Permalink
Merge pull request #25 from simplynail/patch-1
Browse files Browse the repository at this point in the history
fixing chart setup error with gca() call for recent Matplotlib versions
  • Loading branch information
azogue authored Jun 1, 2023
2 parents 8c2ad82 + f3f8f46 commit 34e9745
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychrochart/chart.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def _prepare_fig_and_axis(self, ax: Axes = None) -> Tuple[Axes, dict]:
self._fig = figure.Figure(figsize=figsize, dpi=150, frameon=False)
self._canvas = FigureCanvas(self.figure)
if ax is None:
ax = self.figure.gca(position=position)
ax = self.figure.add_subplot(position=position)
ax.yaxis.tick_right()
ax.yaxis.set_label_position("right")
ax.set_xlim(self.dbt_min, self.dbt_max)
Expand Down

0 comments on commit 34e9745

Please sign in to comment.