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

hvplot widgets not working in vscode (visual studio code)

Examples from https://hvplot.holoviz.org/user_guide/Widgets.html work fine in jupyter lab but vscode only displays them and interactive widgets dont update on drop down events. How to enable this in vscode
user15420598
  • 107
  • 7
0
votes
1 answer

Interactive Xarray dataset raster visualisation app using Panel and hvplot

I am trying to replicate the Glaciers Demo using an Xarray of geospatial data. I am able to create pretty much exactly what I want but I am trying to create a Panel app that allows the user to select the data_vars, each of which has different…
Curious
  • 383
  • 3
  • 13
0
votes
1 answer

HoloViews: create boxplots interactive

I'd like to create a Dashboard where the user can choose which data is shown in a Boxplot via chosing by button. All I could find where instructions for linear-interactive plots, unfortunately i am not able to find out how to make interactive…
0
votes
1 answer

ModuleNotFoundError: No module named 'hvplot.pandas'; 'hvplot' is not a package

Trying to use hvplot interactive plots. But unable to make it run. ModuleNotFoundError: No module named 'hvplot.pandas'; 'hvplot' is not a package using python 3.10.4 conda 4.13.0 panel 0.13.0 py310h06a4308_0 pyviz_comms…
sjd
  • 1,329
  • 4
  • 28
  • 48
0
votes
1 answer

Hvplot multiple columns filter

I am trying to plot a time-serie with a filter using hvplot. The only problems I have is that I want multiple columns in my filter. Here is the dataframe I have: date city Prod1 Prod2 Prod3 Prod4 01/07/2012 Limoges 24 45 …
Camue
  • 469
  • 7
  • 17
0
votes
0 answers

Python: Using hvplot.quadmesh for xarray data shows "blended" colors in a plot

I read in a NetCDF file with Xarray and plot it with hvplot.quadmesh. Any idea why the colors of the plot itself look like blended or shaded while the colorbar is shown with bright colors? How can I manipulate the plot to be shown in the color bars´…
Swawa
  • 143
  • 1
  • 9
0
votes
0 answers

xarray holoviews (hvplot.xarray) issue in Spyder

I have some .nc data that I use xarray to analyze. I wanted to overlay a shapefile on the plot and came across hv.plot which seems to have the interactive component I have been needing. However, when I tried to plot, it does not seem to work. Then I…
0
votes
0 answers

how to use plotly update_xaxes(exponentformat='SI') in option i.e .opts with interactive hvplot

I am using this example https://towardsdatascience.com/the-easiest-way-to-create-an-interactive-dashboard-in-python-77440f2511d1 but trying to use plotly method fig.update_xaxes(exponentformat='SI') to change the tickformat on x axis of the…
user15420598
  • 107
  • 7
0
votes
1 answer

Conditional Colours for Holoviews Heatmap

Just wondering how I can create a custom colour scheme based on conditions for a holoviews heatmap. I have created a column for colours that are based on conditions within the data. However, when I plot these the standard cmap appears but my colour…
Amen_1990
  • 51
  • 5
0
votes
0 answers

How to reduce time of drawing multiple hvplots over each other

I trying the following code to plot some hvplots over each other. feat_prep=rivers.hvplot(width=600,height=500,color='red')*\ roads.hvplot(width=600,height=500,color='yellow')*\ borders.hvplot(width=600,height=500,color='orange')*\ …
shambakey1
  • 37
  • 7
0
votes
1 answer

is there a way to plot multiple lines using hvplot.line from an xarray array

I have multiple ytraces data in an xarray array. data trace selection can be done by t=s_xr_all.sel(trace_index=slice(0,2,1),xy='y') # trace_index and xy are dimension names and above selects subset of 3 traces (lines) into…
user15420598
  • 107
  • 7
0
votes
1 answer

hvplot graphs with for loop

I am trying to create hvplot graphs with a for a loop but it seems not to working. for i in [2019,2020,2021]: CompanyYear= Company[Company['Year']==i] filtered.hvplot.bar(x='CompanyID', y='Sales', rot=90) I know that with matplotlib you…
j_90
  • 79
  • 1
  • 6
0
votes
1 answer

How to wrap/align long yaxis labels in Bokeh?

import hvplot.pandas from bokeh.sampledata.autompg import autompg_clean autompg_clean['origin']=autompg_clean.origin.map({'North America': 'North America '*5, 'Asia': 'Asia '*5, …
reckoner
  • 2,861
  • 3
  • 33
  • 43
0
votes
0 answers

how can I sort the x axis in hvplot according to its y value?

I want to sort the x-axis according to its y value i.e. if the x-axis is the product name and y-axis is the average of student who used it and I am using groupby cities so I can choose each city and visualize its hvplot so how can I sort? I don't…
Mohammed
  • 11
  • 2
0
votes
1 answer

Hvplot AttributeError: 'list' object has no attribute 'xy'

I have trouble making a interactive map with PySAL. I want to visualize the dutch 'gemeente' (Municipalities). You can download shape files from the dutch bureau of statistics:…
Simsa
  • 3
  • 3