Skip to content

Garbled plot #61

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

Closed
platipodium opened this issue May 27, 2023 · 3 comments
Closed

Garbled plot #61

platipodium opened this issue May 27, 2023 · 3 comments

Comments

@platipodium
Copy link

Running the example

import nctoolkit as nc
ds = nc.open_data("sst.mon.mean.nc")
ds.plot()

Creates a garbled plot on my machine (Mac M1 mamba/pip python11), problem in all browsers (Safari, Firefox, Chrome). Y dimension not correct

garbled

openjournals/joss-reviews#5494

@robertjwilson
Copy link
Member

I am able to reproduce this problem @platipodium . It appears to be caused by an update to panel 14 days ago. Downgrading panel to 0.14.4 fixes the issue.

I'll pin the panel version on conda and do a quick release on pypi to pin it there. Meanwhile, I'll investigate whether the nctoolkit plotting code needs to change or whether it's something hvplot devs need to fix.

@robertjwilson
Copy link
Member

This should now be fixed temporarily with a quick release I've just made to nctoolkit's plotting dependency ncplot: here.

The cause of it was that hvplot's image method was not able to fit the browser window when you set responsive=True. I've fixed the problem by setting responsive=False. This means you can get a smallish plot window, but it's better than something compressed.

However, they appear to be on top of the issue at hvplot. I pointed it out to them and they said a code update was coming in the next day or so and a new release fixing the problem is incoming: here

@platipodium
Copy link
Author

Looking nice now! Thanks for the quick fix.

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

2 participants