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

Inconsitencies with hvplot.extension(compatibility) #1381

Open
LecrisUT opened this issue Jul 26, 2024 · 2 comments
Open

Inconsitencies with hvplot.extension(compatibility) #1381

LecrisUT opened this issue Jul 26, 2024 · 2 comments
Labels
type: bug Something isn't working

Comments

@LecrisUT
Copy link

Extracting the comments from: #1380 (comment) (relates to MATPLOTLIB_TRANSFORMS and hvplot.extension(compatibility))

I have encountered a few other issues that could be addressed here:

  • Missing markers compatibility. Reference 1 2
  • (marker) size is inconsistent, I am multiplying by 20 and seems alright?
  • Edges are not color linked by default. Don't know how to address this
@maximlt maximlt added the type: bug Something isn't working label Jul 26, 2024
@maximlt
Copy link
Member

maximlt commented Jul 26, 2024

Missing markers compatibility. Reference 1 2

In fact you need to reference HoloViews docs/code, it provides the interface between hvPlot and the plotting backends (Bokeh, Matplotlib, Plotly). In other words, neither hvPlot nor HoloViews transparently passes plotting options to the backends, the supported ones are defined in HoloViews.

(marker) size is inconsistent, I am multiplying by 20 and seems alright?
Edges are not color linked by default. Don't know how to address this

More precision and examples would be welcome.

@LecrisUT
Copy link
Author

Missing markers compatibility. Reference 1 2

In fact you need to reference HoloViews docs/code, it provides the interface between hvPlot and the plotting backends (Bokeh, Matplotlib, Plotly). In other words, neither hvPlot nor HoloViews transparently passes plotting options to the backends, the supported ones are defined in HoloViews.

Unfortunately there is no one good reference page to navigate and find what the available options are. In some places it even mentions using <Tab> autocomplete, but that obviously does not work with things like xarray.DataArray.hvplot(), it doesn't work with static autocomplete, etc.

  • (marker) size is inconsistent, I am multiplying by 20 and seems alright?
  • Edges are not color linked by default. Don't know how to address this

More precision and examples would be welcome.

I am doing something like

    overlay = param.rx(holoviews.Overlay())
    overlay *= plotter.plot(data, x="coord.",
                            indexers={None: rx_bands[:rx_occupied]},
                            plot_opts={"line_dash": "solid"})
    overlay *= plotter.plot(data, kind="scatter", x="coord.",
                            indexers={None: rx_bands[:rx_occupied], "coord.": k_coord[::rx_scatter_skip]},
                            plot_opts={"marker": "circle", "size": rx_scatter_size})
    overlay *= plotter.plot(data, x="coord.",
                            indexers={None: rx_bands[rx_occupied:]},
                            plot_opts={"line_dash": "solid", "color": "black"})
    overlay *= plotter.plot(data, kind="scatter", x="coord.",
                            indexers={None: rx_bands[rx_occupied:], "coord.": k_coord[::rx_scatter_skip]},
                            plot_opts={"marker": "circle", "fill_color": "none", "line_color": "black", "size": rx_scatter_size})

Here are examples when I do multiply the marke size by 20

Screenshot_20240726_124320
Screenshot_20240726_124343

And if I disable my setup, and do things more vanilla and disabling the hard-coded black color:

Screenshot_20240726_124845
Screenshot_20240726_124903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants