question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Retina support for matplotlib backend

See original GitHub issue

It would be nice if holoviews can support retina display using the %output magic:

%output fig='retina'

When working with matplotlib using the inline backend, retina display can be supported by %config magic:

%config InlineBackend.figure_format='retina'

sadly, holoviews ignores this configuration.

If anyone knows how to support retina display when using holoviews with matplotlib, please give me a hint. Thank you very much!

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jlstevenscommented, Aug 11, 2021

@philippjfr Would it make sense to support hv.output(dpi='retina') which would be respected by the matplotlib backend (and the bokeh/plotly backends too if it makes sense?)

0reactions
maximltcommented, Jun 16, 2022

Just writing notes here after look at this for a little while. The HoloViews Pane of Panel as now a high_dpi parameter that is set to True by default. However:

  • HoloViews doesn’t render Matplotlib plots with Panel, the _render_with_panel class attribute of the MPLRenderer is not set to True and the only format declared as supported to render with Panel is html.
  • If HoloViews were to use the HoloViews Pane under the hood to render plots, it seems like the Pane doesn’t pick up the current dpi (set by hv.output(dpi=xxx) for instance)
Read more comments on GitHub >

github_iconTop Results From Across the Web

what is matplotlib's retina display mode? - Stack Overflow
What is retina display mode in matplotlib? I searched a lot and only thing I get is how to use it in jupyter...
Read more >
Matplotlib Retina - Linux Hint
We have created a color-mapped scatter plot in a retina display mode. The command of the Matplotlib retina option is given in the...
Read more >
2x plots with matplotlib and the IPython Notebook - GitHub
This illustrates some basic steps to enabling 2x PNG matplotlib plots in the IPython notebook for use with your fancy new double-density display....
Read more >
Inline Backend on Retina Displays - Ryan Wingate
On higher resolution screens such as Retina displays that come with Macbooks, the default images in notes books can look blurry. Use %config ......
Read more >
How do I get Retina figures from the matplotlib backend?
Increasing the dpi does indeed increase the figure size, be it with HoloViews or Matplotlib. However plotting a Matplotlib figure in a ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found