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
1
vote
1 answer

Managing large number of data in holoviews/hvplot curve and scatter plots

Let's say I have a large DataFrame with lots of rows and I want to do a simple line plot of the data using hvplot/holoviews. Example: pd.DataFrame([i for i in range(1000000)]).hvplot() On my machine this plot is slow to be rendered and very slow to…
gioarma
  • 418
  • 2
  • 15
1
vote
0 answers

How to add an errorbar to jittered scatter plot in holoviews/hvplot

I have a DataFrame like this: biases = ['+5V']*3 + ['-5V']*8 df = pd.DataFrame({'Bias': biases, 'Ea': [1.059, 0.287, 0.451, 0.533, 0.587, 0.466, 0.805, 0.499, 0.473, 0.721, 0.461], 'dEa':…
gioarma
  • 418
  • 2
  • 15
1
vote
1 answer

Subset of colormap in holoviews/hvplot

I have a DataFrame and I want to plot it in a scatter plot with different scatter colors depending on the sample name. I do it for example with: df.hvplot.scatter(x='x', y='y', color='Sample name', cmap='Reds') The problem is I would like to have…
gioarma
  • 418
  • 2
  • 15
1
vote
1 answer

Holoviews plot with horizontal scrollbar?

I would like to realize a holoviews plot with a scrollbar for the time/x axis. In detail, I want to plot a long ecg signal (20 minutes) and be able to display a frame of e.g. 10 seconds with the possibility to scroll along the entire signal. Is…
25334
  • 25
  • 4
1
vote
2 answers

hvplot points with geo true does not show the map

all_neighborhoods_df.hvplot.points('Lon', 'Lat', geo=True, color="gross_rent", size="sale_price_sqr_foot", frame_height=500, frame_width=700, title="Neighborhood Map") When I looked…
1
vote
1 answer

Prevent plot generating a line from end to end?

I am trying to plot a set of data with HVPlots that is basically 2 distinct sets of data, which have overlapping but not similar X-axis values. For example, one set of data might have x values that the other set does not. My problem is that one data…
Richard McCormick
  • 639
  • 1
  • 6
  • 12
1
vote
1 answer

Output type is currently not supported when using pycharm/jupyter/hvplot

I am using jupyter with pycharm. When I try to plot data with hvplot, I get an error saying "Output type is currently not supported". I assume pycharm doesn't support javascript. Does anyone know how to solve this issue? My code is like this: import…
user31130
  • 63
  • 2
1
vote
1 answer

Customizing hvplot box

I am trying to get deep into hvplot to see if I can find a good alternative to plotly, but I am baffled by the documentation. I am trying to plot boxplots with jittered points, and a basic tutorial can be found here. The part of the example I am…
mic
  • 927
  • 8
  • 17
1
vote
0 answers

Groupby and multiindexes - how to organize data with irregular sizes?

I am trying to organize 3D data collected from several participants with a different number of samples for each participant. Each participant has a unique session and seat index in the experiment. For each participant i, I have a 3D array composed…
Tabs
  • 154
  • 6
1
vote
0 answers

hvplot heatmap with cartopy? A heatmap with more geo details?

Above are two visualizations of some temperature data in the Gulf of Mexico (land and deep ocean masked out). The same data are plotted here, in the top most picture using contouring with Matplotlib Basemap, while the bottom one using a heatmap…
spokati
  • 45
  • 5
1
vote
2 answers

Weird error "No plugins loaded for this entry: xarray_image" when using hvplot

Here's the code how I use hvplot from hvplot.sample_data import us_crime columns = ['Burglary rate', 'Larceny-theft rate', 'Robbery rate', 'Violent Crime rate'] us_crime.plot.violin(y=columns, group_label='Type of crime', value_label='Rate per…
zjffdu
  • 25,496
  • 45
  • 109
  • 159
1
vote
3 answers

Plotting two data variables from an xarray dataset using hvplot

I have an xarray Dataset in python. I would like to plot two dependent (data) variables against each other using the hvplot library. Here's a simple example dataset: import numpy as np import xarray as xr import hvplot.xarray # Create the…
Redlegjed
  • 187
  • 2
  • 11
1
vote
0 answers

How to migrate a matplotlib chart to hvplot?

I'm working on an anamaly detection system and I would like to migrate a matplotlib chart to a hvplot one to allow me to hover itens and get the label name. Someone to help in an equivalent hvplot code ? Below the chart that I would like to have on…
Kleyson Rios
  • 2,597
  • 5
  • 40
  • 65
1
vote
1 answer

convert matplotlib to interactive holoviews + datashader visualization (ideally with interactive brush)

How can I port the following plot to hvplot + datashader? Ideally, interactivity can be preserved and certain device_id can interactively be subselected. (ideally using a brush i.e. when selecting an anomalous point I want to be able to filter to…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
1
vote
1 answer

Hvplot : How to delete default tools

I'm using HvPlot and it works perfectly but I don't know how to delete the default tools 'pan', 'wheel_zoom' and 'box_zoom'. My code for the HvPlot is : points = df.hvplot.line(x='x', y='y', grid=True, …
Hugo Lima
  • 21
  • 2