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

How can I overlay text labels on a geographic hvplot points plot?

I'm trying to add labels to a hvplot that shows points on a tiled map. My GeoDataFrame gdf looks like this: id geometry 8911 POINT (5.79557 53.20121) 8912 POINT (5.76973 53.18031) 8913 POINT (5.78159 53.20088) 8914 POINT…
Saaru Lindestøkke
  • 2,067
  • 1
  • 25
  • 51
0
votes
0 answers

No such file or directory error when loading hvplot sample data

I run the following hvplot code, from hvplot.sample_data import us_crime columns = ['Burglary rate', 'Larceny-theft rate', 'Robbery rate', 'Violent Crime rate'] us_crime.plot.violin(y=columns, group_label='Type of crime', value_label='Rate per…
zjffdu
  • 25,496
  • 45
  • 109
  • 159
0
votes
1 answer

Plotting Monthly data using groupby in dask dataset

I have a large CSV file that it is opened with Dask. import numpy as np import pandas as pd import hvplot.pandas import hvplot.dask import intake data = '../file.csv' ddf = intake.open_csv(data).to_dask() ddf.head() Datetime latitude …
HMadadi
  • 391
  • 5
  • 22
0
votes
1 answer

How to zoom Orthographic projection with geoviews?

I know with matplotlib i can zoom on a orthographic projection with something like that : import cartopy.crs as ccrs import matplotlib.pyplot as plt fig = plt.figure() ax = fig.add_subplot(1, 1, 1, projection=ccrs.Orthographic(-40,…
LudwigVonKoopa
  • 208
  • 4
  • 13
0
votes
1 answer

vs code, holoviews, hvplot, pyviz [SyntaxError: Unexpected token '?' at runCodeHere (... ] [Visual Studio Code]

Very frustrated*. Code works on jupyter lab, but not in Visual Studio Code. I’ve created clean new environments, installed, removed, reinstalled [hours gone-by]. i’ve installed as per instructions (in clean environments) [eg., conda install -c…
0
votes
1 answer

Bokeh-rendering bug of Holoviews layout

I am having troubles understanding why the following holoviews object structure cannot be rendered using bokeh: :NdLayout [dim1] :HoloMap [dim2] :Overlay .Scatter.I :Scatter [a] (b) .Scatter.II :Scatter [a] …
Maxime Beau
  • 688
  • 10
  • 6
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

geoviews dataset converts lat/lon into small decimals when overlaying a holoviews tile source

I have a geoviews data set that I finally got to work somewhat. It is a set of Lats, Lons, and velocities of GPS stations, with interpolations between them. The values are on a regular grid. I followed the example at …
Nwpulver
  • 45
  • 5
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
0 answers

How can I have the plottetd points stay the same size when zooming in with holoviews?

I am plotting points on a map with holoviews in python and I want to have the plotted points stay the same size even if I zoom in. I am using the bokeh extension. I have found this post solving the problem for bokeh, here is a link. But I have not…
sehan2
  • 1,700
  • 1
  • 10
  • 23
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
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
0
votes
1 answer

How do I plot points with a size corresponding to some index in hvplots?

I'm trying to plot points in an x-y plane, and have their size reflect a third dimension, z. This seems perfectly possible using hvplots, as I have found this code on their website showing how to do it: np.random.seed(10) data =…
Tom
  • 109
  • 1
  • 9
0
votes
1 answer

synchronize selection of > 1 chart

How do I synchronize the selection in the 2 charts below? Also, how do I get the bounds of the box selection? import holoviews as hv import hvplot.pandas from bokeh.sampledata.autompg import…
user1860166
  • 208
  • 2
  • 5
1 2 3
12
13