Questions tagged [holoviz]

More info at: http://holoviz.org/

108 questions
0
votes
2 answers

HoloViz, Panel. DateRangeSlider or DateSlider: how can I change the step to hours instead of days?

With the following code: pn.extension(sizing_mode='stretch_width') start=df.index[0] end = df.index[-1] time_slider = pn.widgets.DateRangeSlider(value=(start,end), name='Fecha', start=start, end=end, format="%d/%m/%y %H:%M:%S") time_slider I get…
0
votes
1 answer

Horizontal scroll bar in Holoviews

I have made an interactive visualization using Holoviews and would like to have a horizontal scroll on the bottom of the plot. I currently use a slider that can control the number of columns in the plot, but I prefer to have a horizontal scroll bar…
Sasa
  • 87
  • 8
0
votes
0 answers

How do I use `add_next_tick_callback` for a Panel-wrapped Bokeh figure?

I have a Bokeh figure in a notebook (VS Code), which I would like to update when the x_range is changed. To enable callbacks from JS to Python, I wrap the figure in a Panel panel: from bokeh.plotting import figure, curdoc import panel as…
A. Donda
  • 8,381
  • 2
  • 20
  • 49
0
votes
1 answer

Geoviews Plots Displays Incorrect Longitude & Latitude / Displays Them in the Wrong Format

I have a Point with a longitude = -0.050122 and latitude = 52.699185. When I plot this in Geoviews, this Point is incorrectly displayed: pin = gv.Points(gdf_pin,vdims=["avg_cust_dist_trav_km","avg_cust_dist_trav_miles"] …
mmTmmR
  • 573
  • 2
  • 8
  • 20
0
votes
2 answers

ModuleNotFoundError: No module named 'matplotlib' - Deploying Issue of Jupyter Project on Heroku

I want to achieve a deployment of a jupyter notebook project on heroku. It is basically an interactive notebook what I want to deploy. However, during deployment, I face two errors when I trace the log file. First one is ModuleNotFoundError: No…
Enis Arik
  • 665
  • 10
  • 24
0
votes
0 answers

TypeError: Cannot cast array data from dtype('int64') to dtype('int32') according to the rule 'safe' with hvPlot and datashade

I've try using this tutorial https://holoviz.org/tutorial/Basic_Plotting.html to use datashade in hvPlot, but with personnal data. I can show my plot with df.hvplot.scatter(x='col1', y='col2', datashade=False) for n number of line, but when I try to…
0
votes
1 answer

Scatterplot Matrix - Match Colours of Scatterplots and Histograms

I am trying to do some EDA on the sklearn breast cancer dataset. I can successfully create a scatterplot matrix with a legend using the hack outlined here: https://github.com/holoviz/hvplot/issues/210 hv.extension("bokeh") matrix =…
mmTmmR
  • 573
  • 2
  • 8
  • 20
0
votes
2 answers

Holoviz Panel: Not able to embed CheckBoxGroup

I can't get the Holoviz Panel ChechBoxGroup Widget to work when it is embedded. I can select the options but the output is not updated. However, if using the RadioBoxGroup with my code it all works as intended. However I need that feature to select…
Marzee
  • 1
0
votes
1 answer

geoviews/geopandas/shapely problem displaying polygons from a shapefile

I am trying to overlay a shapefile representing the range of Coast Redwoods onto some other data I'm processing in geoviews. I can successfully plot the data using cartopy and matplotlib. GeoPandas reads the shapefile, but passing the GeoDataFrame…
0
votes
1 answer

Holoviews active tools configuration and datashader layout

Suppose having the following code: # Layout creation y1 = hv.Curve((dt, data['Noise 1']), 'Date', 'y(t)', label='Noise 1') y2 = hv.Curve((dt, data['Noise 2']), 'Date', 'y(t)', label='Noise 2') layout = y1 + y2 # Grid style layout gridstyle = { …
0
votes
1 answer

gv.Polygons DataError When Using OSGB Projection

I have 2 shapefiles for the UK: In [3]: # SHAPEFILE 1: ...: # WESTMINISTER PARLIAMENTARY CONSTITUENCY UK SHAPEFILE ...: shapefile1 = "../Westminster_Parliamentary_Constituencies_De ...:…
mmTmmR
  • 573
  • 2
  • 8
  • 20
0
votes
1 answer

Vertical line is not shown on my HoloViews scatter plot because it's outside the x-range of my scatterplot

I have a scatter plot and want to add a vertical line to it as a marker. However the scatter plot has x-range 0 to 2, but my vertical line is at x-range 6, so it's falling outside of the x-range of my scatter plot and not shown automatically. What…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
0
votes
1 answer

Why is Holoviz Panel showing text instead of seaborn plot?

I want to create a Holoviz Panel dashboard in a Jupyter Notebook, containing a seaborn strip plot. I can get the dashboard to display matplotlib plots successfully but the seaborn plot is not displayed - just some text…
code_to_joy
  • 569
  • 1
  • 9
  • 27
0
votes
2 answers

Install the latest git versions of holoviews, hvplot, panel, datashader and param

The libraries of the Holoviz ecosystem are continuously updated. Using pip, how do I install the latest git versions of: Holoviews Hvplot Panel Datashader Param
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
0
votes
1 answer

Aggregation column category not found - when I set datashader = True with Hvplot

I'm using Hvplot to create 2 scatterplots based on the category the data falls in. Since there are so many datapoints, I'm using datashade. My plot works fine when I don't use datashade. However when I set datashade=True in my code below I get the…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96