Questions tagged [hvplot]

Hvplot is a high-level Python visualization library that makes interactive plotting beautiful, easy and intuitive for a wide range of datatypes. It is built on top of HoloViews and is an alternative for the static plotting API provided by pandas and other libraries, with an interactive Bokeh-based plotting API.

Official website: https://hvplot.pyviz.org

181 questions
2
votes
1 answer

How do I reuse a figure in HvPlot?

When plotting with hvplot from a script (not on jupyter) the usual workflow works like this: import hvplot hvplot.hvPlot(data) hvplot.show() Calling hvplot.show will cause the opening of a browser new tab to render the plot. I want to be able to…
fccoelho
  • 6,012
  • 10
  • 55
  • 67
1
vote
0 answers

HvPlot Pandas - Overlapped boxplots without column distinction

I am trying to make a simple boxplot using hvplot on a pandas.Dataframe with the plotly extension. What is usually said on different issues is that it should be rather straightforward. HvPlot documentation provides an example that really matches my…
Murnawful
  • 135
  • 1
  • 12
1
vote
0 answers

How can I customize hvplot plotted from an interactive object?

I am trying to make interactive dashboards from my data. I use panel. I have tha scatter hvplot below and I want to add customization, like VSpan or VLine elements. My problem is I am working with interactive objects. My problem was that these…
1
vote
1 answer

Remove border/line around hvplot?

Is there a way to remove the border line around a plot created with hvplot/bokeh? import pandas as pd import hvplot.pandas df = pd.DataFrame({'x': [0, 1, 2, 3, 4, 5], 'y': [1, 1, 2, 2, 3, 4]}) df.hvplot.line(x='x', y='y') This example results in…
25334
  • 25
  • 4
1
vote
1 answer

Geopandas has no attribute hvplot

I am running this code to generate a choropleth map of landprices in Germany. I have installed the pyviz, panel and geoviews packages. Even yesterday this was generating the plots with the hovering annotations. But today the code is generating an…
VFox
  • 23
  • 5
1
vote
0 answers

Multiselect Hvplot Dropdown

Want to multiselect values in hvplot dropdown. Hi, I have been trying to create a interactive plot in python using hvplot. When I use the groupby argument and call a column in dataframe.hvplot(x, y groupby=" "), it correctly returns a dropdown with…
1
vote
1 answer

plot data interactive as rgb

I have a bunch of pictures I'd like to plot with hvplot.rgb. The user should be able to switch between the pictures with a widget like a slider. My problem is, that i don't know how to use the hvplot.rgb()-function for interactive dataframes. here's…
1
vote
0 answers

How to create QQ plot in hvplot/holoviews?

Does anyone know if Holoview/hvplot has an interactive QQ plot function to use? I found no material online about it. Or does anyone know how to plot an interactive QQ plot on holoview/hvplot? Found some content on plotly however, I want to be…
CountDOOKU
  • 289
  • 3
  • 14
1
vote
0 answers

hvplot is not working for pyinstaller. Invalid version: 'None'

I need bar diagram with different filter options that I want to create with python and make it available as an executable with pyinstaller. So I came across hvplot and it works, very well, but it doesn't run as an executable at all. The problem is…
Coyote
  • 11
  • 1
1
vote
0 answers

hvplot variable coordinate quadmesh

I have an Xarray Dataset which looks like I would like to be able to select data variables (which i already know how to do) and plot a quadmesh of the data variable selected. The problem is that different data variables have different numbers and…
Curious
  • 383
  • 3
  • 13
1
vote
1 answer

hvplot / holoviews (bokeh) timedelta axis with negative values formatter

Issue: I am trying to plot data with a pandas time delta index with negative time delta values on the x-axis using hvplot or holoviews (bokeh backend). The labels are just integers, and seem to be in milliseconds. I want them to be formatted in a…
n4321d
  • 1,059
  • 2
  • 12
  • 31
1
vote
0 answers

Rendering issue in hvplot.quadmesh plots when saved to PNG

I am trying to save an hvplot.quadmesh plot to file as an image (PNG). The plot looks as I expect/want when rendered inline in jupyter notebook, and when exported as an HTML (see first linked screenshot image), but there are strange grid artefacts…
bmdsy94
  • 11
  • 2
1
vote
1 answer

Overlay of two plots from two different data sources using Python / hvplot

I would like to plot a line plot (source: pandas dataframe) over a hvplot (source: xarray/ NetCDF). The xarray looks like this: dataDIR = 'ceilodata.nc' DS = xr.open_dataset(dataDIR) DS = DS.transpose() print(DS) Dimensions: …
Swawa
  • 143
  • 1
  • 9
1
vote
1 answer

hvplot.networkx does not render edges python

I created a graph from a street network using NetworkX. I can easily use nx.draw plt.figure(figsize=(20, 18)) nx.draw(g, {n:[n[0], n[1]] for n in list(g.nodes)}, node_size=15) plt.title('Major roads', size=15) plt.show() and it looks like I would…
GeoBeez
  • 920
  • 2
  • 12
  • 20
1
vote
0 answers

Interactive time-series based on x-y location on map with hvplot

When I have a very large xarray.DataArray da with only two dimensions (x and y) I normally plot using something like: da.hvplot(x="x", y="y", rasterize=True) Now, if I have a DataArray with three dimensions (x, y and time), I would like to still…
duff18
  • 672
  • 1
  • 6
  • 19