Holoviews: Unite "aspect" and "width/height" plot options

Created on 30 Jul 2017  路  8Comments  路  Source: holoviz/holoviews

The docs state that "plot options" are meant to be the same for different backends.

I take it that means that the fact that bokeh plots use "width" and "height" and matplotlib using "aspect" is still an aspect that awaits unification?
I strongly support these unification efforts, there's almost no sense in using a top-wrapper on existing plotting libs, if I still would have to learn all underlying options independently for each backend.

Using most recent conda-forge version.

tag options tag plotting

Most helpful comment

In the meantime, I see a need for a tutorial/example page somewhere.
I had explored the issue in CurvesAndPaths, but never really formalized it.
Would there be interest if I tried putting together a notebook (and hopefully
getting input from interested parties)?

All 8 comments

I take it that means that the fact that bokeh plots use "width" and "height" and matplotlib using "aspect" is still an aspect that awaits unification?

That is correct, we would love a unified interface!

Unfortunately, it is technically quite challenging as different plotting extensions work in different ways. Even without considering the plotly extension, getting both matplotlib and bokeh working consistently is quite challenging - these two libraries have very different models when it comes to sizing things.

I would love to see some consistent way to size things across these two backends. It's very frustrating that it's not currently possible, and it just seems like it should be possible to unify them somehow! I haven't ever looked at the code to realize just why this is difficult, though, and I'm afraid to in case it changes my optimism here!

I would imagine, all that one need's is a "translator" lookup dictionary that points to transformer functions for the respective currently active backend. But I might be naive. ;)

In the meantime, I see a need for a tutorial/example page somewhere.
I had explored the issue in CurvesAndPaths, but never really formalized it.
Would there be interest if I tried putting together a notebook (and hopefully
getting input from interested parties)?

Revisiting holoviews, I could again not find how to set width for the matplotlib backend. Is aspect documented somewhere? I can't see it in http://holoviews.org/user_guide/Customizing_Plots.html

See also related issue #3598 for matplotlib backend sizing issues

Aspect is now supported across backends. I absolutely don't see any way to unify width/height options across backends however.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ahuang11 picture ahuang11  路  5Comments

mansenfranzen picture mansenfranzen  路  5Comments

bstadlbauer picture bstadlbauer  路  3Comments

ceh-creare picture ceh-creare  路  5Comments

ericmjl picture ericmjl  路  3Comments