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

hv.render-based MPL rendering weirdness when it is not included as an extension #3943

Closed
zbarry opened this issue Sep 3, 2019 · 1 comment · Fixed by #4013
Closed

hv.render-based MPL rendering weirdness when it is not included as an extension #3943

zbarry opened this issue Sep 3, 2019 · 1 comment · Fixed by #4013
Milestone

Comments

@zbarry
Copy link

zbarry commented Sep 3, 2019

After adding some code to a notebook that performs matplotlib-based export of some of my plots but forgetting to add MPL as a backend via hv.extension('bokeh', 'matplotlib'), PNGs were successfully exported via the MPL backend, but the main HV backend also then switched from Bokeh to matplotlib. If 'matplotlib' is included in hv.extension, as it should be, this problem does not occur. I guess this is a case of HoloViews interacting weirdly with user error.

%matplotlib inline

import holoviews as hv
import numpy as np

hv.extension('bokeh', 'matplotlib')  # OR without matplotlib

im_hv = hv.Image(np.random.randint(0, 10, size=(512, 512)))
display(im_hv)
display(hv.render(im_hv, backend='matplotlib'))
display(im_hv)

Including both backends as extensions:

image

Without including matplotlib:

image

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants