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

Remove left ColorBar of grid heatmap plot in pvplot

I try to make grid heatmap by pvplot. I refer to this link. https://hvplot.pyviz.org/user_guide/Subplots.html import hvplot.pandas from bokeh.sampledata.unemployment1948 import data data.Year = data.Year.astype(str) data =…
Lundi Lin
  • 35
  • 2
  • 6
1
vote
0 answers

Displaying Hover Information on POINT Data in Pyviz/ hvplot

https://hvplot.pyviz.org/user_guide/Geographic_Data.html In the Geopandas section you can find two examples displaying Data, but only the second one, with 'Polygon' Geodata intead of 'Points', is presenting all of the extra Information from the…
blubbiblub
  • 11
  • 3
1
vote
0 answers

hvplot heatmap ordering axis

Question is, can I order the axis of a heatmap in hvplot? I have the following code: df['col_1'] = df.col_1.astype(int).astype('category') df['col_2'] = df.col_1.astype(int) heatmap = df.hvplot.heatmap('col_1', 'col_2', 'col_3',…
BMichell
  • 3,581
  • 5
  • 23
  • 31
1
vote
1 answer

hvplot - how to colour point data by categorical variable and aggregate with `ds.count_cat(.)`

I am trying to recreate the datashader census categorical examples with hvplot. import cartopy.crs as ccrs import datashader as ds import dask.dataframe as dd import hvplot.dask ddf =…
andyandy
  • 1,384
  • 2
  • 15
  • 25
1
vote
2 answers

How to hide or set location for hvplot subplots title

My dataset is a simple one: I'm using python hvplot to draw subplots by simply giving a "col" statement" bar = df.hvplot.bar('month', 'volume', col = 'product', \ height = 200, width = 200, rot=90, logy = True, grid = True) The plot looks…
1
vote
2 answers

Holoviews - How to create side-by-side bars from dataframe columns?

I would like to create a Holoviews bar chart (using Bokeh backend) in which Year is on the X-axis and columns A and B on the Y-Axis. For each Year, I want bars for values from columns A and B to appear next to each other i.e. for Year 2008, I have…
pongo30
  • 29
  • 6
0
votes
0 answers

Panel: plot live data and and adjust slider widget through periodic callback

I'm trying to use Panel to plot live data in Python. The idea is that data arrives, which dictates the value of the timeslider widget, and this timeslider widget is used to interact with the plot showing live data. I'm using pn.add_period_callback…
0
votes
0 answers

Using hVPlot and the plots won't overlay even though they should, is data frame size an issue?

Unable to create an overlay plot with both curve lines and interact with them both on the same curve. What am I doing wrong? The exp line has more data points than the exp2 line as that was a theoretical line I hard-coded in. This is my…
0
votes
0 answers

Simple bar chart in Holoviews breaks when I create Dynamic Object out of it

This is my code, it works bar for last line (commented out) #imports import pandas as pd import numpy as np import holoviews as hv # loading holoviews engine hv.extension('matplotlib') #('bokeh') # creating dummy data samples =…
0
votes
0 answers

holoviews won't plot stacked bar only individual bars

I have an interactive dashboard that i want to plot a stacked bar graph on however when i plot either it only plots individual bars. I also get an error when i use hvplot.bar(i.e., dt_melt.hvplot.bar) so i have to use kind ='bar' with stacked =…
Sodjan
  • 1
  • 1
0
votes
0 answers

template.serveable() not working as expected in Python panel

I have the four CSV files stored in local. Each corresponds to some store details which has ItemNumber, ItemName, ItemBrand, and ItemCost. I am using a Python panel to display the CSV files in a browser after converting the CSV as an interactive…
0
votes
0 answers

hvplot line plot y axis values all over the place and not in increasing order

I am trying to create an interactive dashboard with panel in jupiter notebook which i have been able to with just one kink. The y axis is not in increasing order. More or less the graph is plotting a (x,y) coordinate instead of a line plot. Please…
Sodjan
  • 1
  • 1
0
votes
0 answers

HvPlot Bokeh - Violin plot behaving strangely in log scale

I have data that I want to plot as a violin plot. For flexibility reasons and compatability, I am using HvPlot with Bokeh extension However the output of the plot seems very weird in my opinion. Here is the code: import hvplot.pandas import pandas…
Murnawful
  • 135
  • 1
  • 12
0
votes
0 answers

empty graphs using panel in python

i get empty graphs and i dont know the reasons for this. may the data types or something else likw the code itself. type string director string country string rating string Create a RadioButtonGroup widget called…
0
votes
0 answers

Panel Dashboard Created in Google Colab and Viewed via ngrok Doesn't Display Content

I used the following code to create a dashboard in a google colab notebook: !pip install --upgrade hvplot !pip install --upgrade pyngrok !pip install --upgrade pyngrok tornado !pip install --upgrade bokeh !pip install --upgrade holoviews import…
j42
  • 31
  • 3