Questions tagged [holoviz]

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

108 questions
1
vote
1 answer

HoloViews - NdOverlay - Legend

I have a hv.NdOverlay plot of multiple holoviews.Curve objects. The Curve objects belong to a group (in this case either group 'A' or group 'B'). How do I set up the hv.NdOverlay plot to show a legend which shows the two groups? Code example…
Dirk Schulz
  • 87
  • 1
  • 7
1
vote
1 answer

Plot doesnot change with drop down select

I am trying to build an interactive plot for dashboard. The data is in pandas dataframe state_df. ty=['Confirmed','Bedridden','Recovered'] def type_tt(need_type): need=[] need.append(need_type) …
Vineet
  • 123
  • 5
1
vote
1 answer

How to create custom hover tool with value mapping

I am trying to create a custom hover tool using which takes the y-value of the plot and maps the value to different value. The code I could come up with so far to achieve this functionality is from bokeh.models import HoverTool import holoviews as…
RTM
  • 759
  • 2
  • 9
  • 22
1
vote
1 answer

Is there a way to re-position the slider/dropdowns in dynamic map using Holoviews?

I have a dynamic map containing many tif files, when I create the dynamic map it creates a time slider shown to the right of the image (which is what I want). The only thing is I wish to be able to reposition this slider to be above my image and…
1
vote
0 answers

Horizontal bars with start and end positions using hvplot or holoviews

Is there a simple way to plot horizontal bars that have different starting positions? The closest example I found in the reference galery is implemented as segments : http://holoviews.org/reference/elements/bokeh/Segments.html
Raja
  • 69
  • 1
  • 7
1
vote
1 answer

How to Successfully Plot a Choropleth Using gv.Polygons Instead of gv.Shape

Update 20/02/20 after further testing: I have 2 other shapefiles (one for UK by Postcode Area and one by Parl Constituency). When using gv.Shape with these I do not need to set the projection used to plot successfully, unlike with the one…
mmTmmR
  • 573
  • 2
  • 8
  • 20
1
vote
1 answer

How to resize Tab name area in Pyviz Panel

I'm trying to create a tab layout using Pyviz-Panel (example code below) in a Jupyter notebook. I'd like to keep the size of individual tab names the same. However, tab.width changes/sets the size of the overall window for the Tabs set. Even…
1
vote
1 answer

hvplot histogram: DataError: None of the available storage backends were able to support the supplied data format

import pandas as pd import numpy as np import random import copy import feather import plotly.graph_objects as go import plotly.express as px import panel as pn import holoviews as hv import geoviews as gv import geoviews.feature as gf import…
mmTmmR
  • 573
  • 2
  • 8
  • 20
1
vote
0 answers

Customization of panel.pane.Audio element

is there a way to customize the panel.pane.Audio element? I've tried to pass arguments like width or height like: pn_audio = pn.pane.Audio(audio_data, sample_rate=sps, width=800) but with no effect after starting as bokeh app. Here is some usable…
Th3tom3kK
  • 11
  • 2
1
vote
1 answer

Lineplot with markers in holoviews (or hvplot)

I know how to make a lineplot with holoviews / hvplot. But how can I add markers of the datapoints to my line plot? The plot should look something like this: Here's some sample code: # import libraries import numpy as np import pandas as pd import…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
1
vote
1 answer

Y-axis is not updated on dropdown selection when I use datashader in hvplot

When I make a normal hvplot with a groupby it creates a DynamicMap where the y-axis changes when I select a different value in my dropdown. This is the behavior I want. However when I set datashade=True (with large data) the y-axis stays fixed,…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
1
vote
1 answer

Why is my plot updated by panel (twice) when I change a button setting that shouldn't trigger any updates? (Panel Holoviz)

I made a class to explore and train models. When I change the value of dropdown 'choose_model_type' in the code example below, I would expect nothing to change in my dashboard, since there are no @param.depends('choose_model_type', watch=True) in my…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
1
vote
1 answer

Use button to trigger action in Panel with Parameterized Class and when button action is finished have another dependency updated (Holoviz)

I am building a dashboard with Panel Holoviz using a Parameterized Class . In this Class I would like a button that, when pushed starts training a model, and when the model is finished training, it needs to show a graph based on that model. How do I…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
1
vote
1 answer

How does one show the cdf from histogram data using holoviews?

I'm using holoviews with bokeh backend for interactive visualizations. I have a histogram with edges and frequency data. What is an elegant way of overlaying my histogram with the cumulative distribution (cdf) curve? I tried using the cumsum option…
1
vote
1 answer

Get a different (non default) widget when using param in parameterized class (holoviz param panel)

I use a parameterized class to build my Panel dashboard. I would like to use a CrossSelector but this selector does not seem to be available when looking at the options that library Param gives. It only seems to have a ListSelector. How do i get…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96