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 to extend colorbar for 'out-of-range' values in Bokeh or Holoview?

In Matplotlib, there is the colorbar property extend that makes pointed end(s) for out-of- range values. How would you do the third subplots with Bokeh or Holoview? I added a Matplotlib example below: import numpy as np import matplotlib.pyplot as…
lhoupert
  • 584
  • 8
  • 25
2
votes
2 answers

Label to holoviews HLine

I have a bar plot with two static HLine, and would like to add a label to them (or a legend) so that they are defined on the plot. I tried something like: eq = ( sr2.hvplot( kind="bar", groupby ="rl", dynamic = False,)…
gte
  • 131
  • 8
2
votes
0 answers

How can I specify separate y-limits for subplots in hvplot?

I am plotting several variables with different magnitude in subplots using hvplot. I would like to specify y-limits for each subplot individually. However, with hvplot, I can only specify a single ylim for all subplots, as far as I see. The…
astoeriko
  • 730
  • 8
  • 20
2
votes
1 answer

TypeError: '<=' not supported between instances of 'Timestamp' and 'numpy.float64'

I am trying to plot using hvplot, and I am getting this: TypeError: '<=' not supported between instances of 'Timestamp' and 'numpy.float64' Here is my data: TimeConv Hospitalizations 1 2020-04-04 827 2 2020-04-05 1132 3 2020-04-06 …
Bumbudo
  • 21
  • 1
  • 3
2
votes
3 answers

How to use HoloViews / hvPlot on Databricks

How can I get HoloViews plots or Hvplot working on Databricks? The generated plot should also keep all interactivity.
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
2
votes
2 answers

Customizing marker lists in hvplot

I have a dataset like: df = pd.DataFrame(np.random.rand(10,2),columns=['A','B']) df['group'] = np.random.choice(4,size=10) df['category'] = np.random.choice(['CC','DD'],size=10) df['sizes'] = np.random.randint(10,50,size=10) and I want a scatter…
2
votes
1 answer

How to plot a stacked bar chart using hvplot?

I am trying to plot a stacked bar chart with 3 categorical variables and 1 numerical variable using hvplot. Does anyone know how to properly plot the stacked bar chart? Request Type 'D' & 'S' are not shown in different colors. Data: My…
david
  • 23
  • 3
2
votes
2 answers

how to create interactive graph on a large data set?

I am trying to create an interactive graph using holoviews on a large data set. Below is a sample of the data file called trackData.cvs Event Time ID Venue Javeline 11:25:21:012345 JVL Dome Shot pot …
sparrow
  • 450
  • 5
  • 13
2
votes
1 answer

Change Default Hover Data for hvplot.hist

I have the following dataframe called df that contains 2 columns: In [4]: df.head(20) Out[4]: age age_band 0 NaN NaN 1 61.0 55-64 2 NaN NaN 3 …
mmTmmR
  • 573
  • 2
  • 8
  • 20
2
votes
1 answer

How to autohide the Bokeh toolbar when using holoviews

The holoviews documentation mentions that the Bokeh toolbar can be hidden or moved: http://holoviews.org/user_guide/Plotting_with_Bokeh.html The bokeh document shows how to autohide the toolbar so it only shows on mouse-over. Is it possible to…
Brian Mc Donald
  • 163
  • 1
  • 7
2
votes
1 answer

When using rasterize=True with datashader, how do I get transparency where count=0 to see the underlying tile?

Currently, when I do this: import pandas as pd import hvplot.pandas df = pd.util.testing.makeDataFrame() plot = df.hvplot.points('A', 'B', tiles=True, rasterize=True, geo=True, aggregator='count') I can't see the underlying…
Andrew
  • 507
  • 5
  • 16
2
votes
1 answer

hvplot with more than one y-value does not plot

I want to "area-plot" a simple dataframe with hvplot (like here: https://hvplot.pyviz.org/user_guide/Plotting.html ), but the code does not work. Since I am new to hvplot I dont quite get the Error Message Ploting the dataframe as a "bar-Plot"…
ASDu
  • 89
  • 1
  • 5
2
votes
1 answer

Plot Heatmap of dataframe

Given a pandas dataframe, which looks similar to this one: d = {'name_1': ['a', 'b', 'c'], 'classifikation' : ['x','x','y'] , 'value': [1, 2, 3]} df = pd.DataFrame(data=d) I woule like to plot a simple heatmat using hvplot. But runing …
ASDu
  • 89
  • 1
  • 5
2
votes
1 answer

How to keep or set width and height of my holoviews plot when using datashade?

I'm trying to create a plot with multiple categories, and have a plot for every category. Since there are so many datapoints, I'm using datashade. But datashade ignores the width and height that I set for those plots. How can I keep the width and…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
2
votes
1 answer

changing holoviews axis to be in the right format

I'm trying to create a plot with multiple axis. But instead of putting Gene and db on the x axis and mutations on the y axis holoviews plots db on the y axis and gene on the x axis. How can i get a multi categorial plot out of this?…
Moopsish
  • 117
  • 10
1 2
3
12 13