Questions tagged [holoviz]

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

108 questions
11
votes
1 answer

How do i automatically update a dropdown selection widget when another selection widget is changed? (Python panel pyviz)

I have a Select widget that should give a different list of options whenever another Select widget is changed, so it updates whenever this other Select widget changes. How do I this in the example code below? _countries = { 'Africa': ['Ghana',…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
10
votes
1 answer

Show extra columns when hovering in a scatter plot with hvplot

I'm trying to add a label or hover column to the points in a scatter plot, but to no avail. For use as example data: import pandas as pd import holoviews as hv import hvplot.pandas df = pd.read_csv('http://assets.holoviews.org/macro.csv',…
MichaelA
  • 1,866
  • 2
  • 23
  • 38
10
votes
3 answers

Holoviews charts sharing axis when combined and outputted

I'm using Holoviews to construct a dashboard of charts. Some of these charts have percentages in the y axis where as others have sums/counts etc. When I try to output all the charts I have created to a html file, all the charts change their y axis…
Amen_90
  • 310
  • 2
  • 9
9
votes
1 answer

How to disable scientific notation in hvPlot plots?

I have just started using hvPlot today, as part of Panel. I am having a difficult time figuring out how to disable scientific notation in my plots. For example here is a simple bar plot. The axis and the tootltip are in scientific notation. How can…
SCool
  • 3,104
  • 4
  • 21
  • 49
9
votes
1 answer

Change legend position using holoviews / hvplot

Hvplot has default the position of the legend on the right outside of the plot. How can I change this default legend position? import numpy as np import pandas as pd import hvplot import hvplot.pandas import holoviews as hv data =…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
7
votes
2 answers

Create a grid of plots with holoviews/hvplot and set the max number of columns

I'd like to plot several data into a grid using holoviews/hvplot, based on one dimension, which contains several unique data points. Considering this example: import seaborn as sns import hvplot.pandas iris = sns.load_dataset('iris') plot =…
MichaelA
  • 1,866
  • 2
  • 23
  • 38
7
votes
1 answer

How do i rotate x labels or y labels? (hvplot or holoviews)

I've created the following plot with hvplot and want to rotate the xlabels in this plot: import numpy as np import pandas as pd import hvplot.pandas import holoviews as hv my_plot = pd.DataFrame(np.random.normal(size=[50, 2])).hvplot()
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
5
votes
2 answers

Change the order of bars in a grouped barplot with hvplot/holoviews

I try to create a grouped bar plot but can't figure out how to influence the order of the barplot. Given these example data: import pandas as pd import hvplot.pandas df = pd.DataFrame({ "lu": [200, 100, 10], "le": [220, 80, 130], …
MichaelA
  • 1,866
  • 2
  • 23
  • 38
5
votes
2 answers

How to get a widget "handler" in HoloViews

When creating a plot (QuadMesh) with HoloViews based on xArray data, any missing dimensions will automatically create widgets such as sliders to facilitate data exploration. For example: hv_ds = hv.Dataset(data) plot = hv_ds.to(hv.QuadMesh,…
5
votes
1 answer

Streaming from a pandas DataFrame Using Streamz

The streamz and hvplot packages work together to provide support for plotting streaming data using pandas dataframes. For example, the streamz package has a convenience utility for creating a random streaming dataframe: import hvplot.streamz from…
psychemedia
  • 5,690
  • 7
  • 52
  • 84
4
votes
2 answers

Use Holoviz Panel Dropdown value to query dataframe

I am trying to use a Holoviz Panel dropdown widget value to query a dataframe. The dataframe however does not reflect the change in the dropdown value. I added a markdown widget to check if the change in the dropdown value is being captured - It…
sri40
  • 41
  • 2
4
votes
1 answer

Difference between hvplot and holoplot

So for a while now I have been migrating from Matplotlib to holoviews for my plotting needs, and mostly enjoying what I have experienced. Then i notice hvplot, which seems to make the holviews workflow way easier, by tying it closer together with…
user2194172
  • 99
  • 1
  • 5
4
votes
1 answer

How to display text output from function in Panel Pyviz widgets?

This seems like a basic question but I've tried for a while and not found a solution with Pyviz Panel: I'm trying to trigger functions with a click of a button, catch the outputs of functions and print them on the screen at desired locations. The…
4
votes
1 answer

Trigger event on mouseup instead of continuosly with panel slider widget

How can a function watch for value changes of a panel.widgets.IntSlider, but only trigger when the mouse is released rather than continuously as the slider is dragged around? I have tried callback_policy='mouseup' and decorated the function with…
joelostblom
  • 43,590
  • 17
  • 150
  • 159
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
1
2 3 4 5 6 7 8