Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editTopo.py buggy #9

Open
aekiss opened this issue Apr 12, 2024 · 1 comment
Open

editTopo.py buggy #9

aekiss opened this issue Apr 12, 2024 · 1 comment

Comments

@aekiss
Copy link
Contributor

aekiss commented Apr 12, 2024

Some editTopo.py features no longer work.

e.g. zooming with the scroll wheel gives

Traceback (most recent call last):
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.01/lib/python3.10/site-packages/matplotlib/cbook.py", line 298, in process
    func(*args, **kwargs)
  File "/g/data/v45/aek156/make_topo/topogtools/./editTopo.py", line 440, in zoom
    All.quadMesh, All.cbar = replot(All)
  File "/g/data/v45/aek156/make_topo/topogtools/./editTopo.py", line 241, in replot
    All.cbar.remove()
  File "/g/data/hh5/public/apps/miniconda3/envs/analysis3-24.01/lib/python3.10/site-packages/matplotlib/colorbar.py", line 1042, in remove
    pos = ax.get_position(original=True)
AttributeError: 'NoneType' object has no attribute 'get_position'
@aekiss
Copy link
Contributor Author

aekiss commented Apr 12, 2024

It used to work fine (see COSIMA/access-om2#158) - I guess there has been some breaking change in matplotlib since I last used it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant