Skip to content

Commit

Permalink
Merge pull request #1009 from wright-group/mpl_Fix
Browse files Browse the repository at this point in the history
artists helper fixed (closes #1007)
  • Loading branch information
kameyer226 committed May 21, 2021
2 parents 051747f + 3867aed commit 937f761
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
### Fixed
- Fixed bug in `from_COLORS` that misordered the relationship between variables and channels for 1D datasets.
- Avoid passing both `vmin/vmax` and `norm` to `pcolor*` methods
- Fixed matplotlib depreciation in artists._helpers

## [3.3.3]

Expand Down
4 changes: 2 additions & 2 deletions WrightTools/artists/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,13 +987,13 @@ def set_fig_labels(
if fig is None:
fig = plt.gcf()
# interpret row
numRows = fig.axes[0].numRows
numRows = fig.axes[0].get_gridspec().nrows
if isinstance(row, int):
row %= numRows
row = slice(0, row)
row_start, row_stop, _ = row.indices(numRows)
# interpret col
numCols = fig.axes[0].numCols
numCols = fig.axes[0].get_gridspec().ncols
if isinstance(col, int):
col %= numCols
col = slice(col, -1)
Expand Down

0 comments on commit 937f761

Please sign in to comment.