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
4
votes
1 answer

Adding value labels to hvplot.bar

Using the hvplot tutorial we are trying to generate a bar plot with values as labels on the bars itself. The bar plot is generated using the following code import dask.dataframe as dd import hvplot.pandas df =…
skibee
  • 1,279
  • 1
  • 17
  • 37
4
votes
1 answer

Using Holomaps with hvPlot

Is it possible to generate HoloMaps using hvPlot ? I have not found any reference in the documentation. The goal is to create something like the examples here: http://holoviews.org/reference/containers/bokeh/HoloMap.html#bokeh-gallery-holomap but…
AleAve81
  • 275
  • 3
  • 8
4
votes
2 answers

hvplot.heatmap with pandas dataframe: How to specify value dimensions?

I have a simple dataframe with columns and rows that I want to visualize using hvpolot.heatmap. I can do something pretty similar with: df.style.background_gradient(cmap='summer') .. in Jupyter, looks like: The dataframe is pretty simple: >…
Alex
  • 2,784
  • 2
  • 32
  • 46
4
votes
2 answers

Holoviews color per category

I have been lately working with bokeh for plotting. I just found out about holoviews and wanted to plot a basic box plot. In my box plot I am trying to color per one of the categories I am grouping the data in. Here is the code I am…
josecoto
  • 732
  • 1
  • 7
  • 15
3
votes
1 answer

Reverse legend order in stacked bar plot using hvplot/holoviews

I am trying to reverse the order of the legend items in a stacked bar plot using hvplot or holoviews. Enabling the legend in a stacked bar plot displays the items in the opposite order of how they are stacked. One would expect them to be in the same…
mouwsy
  • 1,457
  • 12
  • 20
3
votes
1 answer

Add one specific datapoint marker to boxplot or violinplot (using holoviews / hvplot)

I made a violinplot of 1 column in my dataframe. Now I would like to show where one specific datapoint (outlier) lies in comparison with that violinplot. Below I have created some sample data and I would to plot 1 specific outlier, for example a…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
3
votes
1 answer

Change fontsize in holoviews or hvplot

How do I change fontsizes using holoviews or hvplot? Here's a simple example of the plot I have: # import libraries import numpy as np import pandas as pd import holoviews as hv import hvplot.pandas hv.extension('bokeh', logo=False) # create…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
3
votes
1 answer

Set box zoom (or pan or wheel zoom) as default in using Holoviews or Hvplot

My hvplot has default pan and wheel zoom as way of zooming and moving the graph. But I want box zoom to be the default in my graph. How do I do this in hvplot or holoviews? import numpy as np import pandas as pd import holoviews as hv import…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
3
votes
1 answer

How do I stop a bokeh server / app started by panel in my jupyter lab or notebook? (without killing my kernel)

I've created an interactive app in my jupyter lab and called .show() on my panel object, so it started a bokeh server, as in the example below. It looks nice, but now I want to stop the server. How do I do that without stopping jupyter notebook or…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
3
votes
2 answers

How to draw a histogram in dask?

t is a dask array. I'd like to plot a histogram of t. Dask documentation has method dask.array.histogram(a, bins=None, range=None, normed=False, weights=None, density=None) but no example. I've tried setting bins with a numpy array. Didn't work.…
tnabdb
  • 517
  • 2
  • 8
  • 22
2
votes
1 answer

hvplot taking hours to render image

I'm working with Gaia astrometric data from the data release 3 and saw hvplot/datashader as the go-to for visualizing large data due to very fast render times and interactivity. In every example I'm seeing, it's taking a few seconds to render an…
Rukonian
  • 21
  • 3
2
votes
1 answer

How to bidirectionally link X axis of HoloViews (hvplot) plot with panel DatetimePicker (or DatetimeRangePicker) widget

Question: I am struggling for a more than a week now to do something probably pretty simple: I want to make a time series plot in which i can control the x axis range/zoom with a datetime picker widget. I also want the datetime picker to be…
n4321d
  • 1,059
  • 2
  • 12
  • 31
2
votes
1 answer

HV Plot: Plotting multiple lines with null values

I have a DataFrame I am trying to graph using HV Plot. So far, I have something like this: new_df = new_df.dropna(subset=['Reflectance']) new_df = new_df.sort_values(by='Wavelength') reflectance_plot = new_df.hvplot.line(x = "Wavelength",y =…
Richard McCormick
  • 639
  • 1
  • 6
  • 12
2
votes
1 answer

How to change position of labels on top of plots by using hvPlot

By using hvplot.labels() with text_align='left', I could change the label position to right like this: import hvplot.pandas import pandas as pd df = pd.DataFrame( {'City': ['Buenos Aires', 'Brasilia', 'Santiago', 'Bogota', 'Caracas'], …
masaya
  • 410
  • 2
  • 9
  • 15
2
votes
1 answer

Cannot plot datetime64[ns] on hvplot axis ('pandas_datetime_types' is not defined' error)

I am simply trying to plot some values against datetime64[ns] timestamps with holoviews. That is, x-axis = nx1 datetime64[ns] values y-axis = nx1 data. Here is a screen shot of what I have: Screenshot of my dataframe
binverted
  • 73
  • 3
1
2
3
12 13