Questions tagged [pyviz]

PyViz is an initiative for making Python-based visualization tools work well together - includes holoviews, geoviews, datashader, hvplot, panel, colorcet, param and imagen.

75 questions
1
vote
1 answer

hvplot - how to colour point data by categorical variable and aggregate with `ds.count_cat(.)`

I am trying to recreate the datashader census categorical examples with hvplot. import cartopy.crs as ccrs import datashader as ds import dask.dataframe as dd import hvplot.dask ddf =…
andyandy
  • 1,384
  • 2
  • 15
  • 25
1
vote
1 answer

How to pass values of a single widget to multiple instances of one object in Panel/Bokeh

I build a dashboard to plot parts of a dataset, and it works when I declare every single component. As oall my plots are similar, with only changes being the title and the key to select the dataset to plot, I tried to use a class to describe my…
len75
  • 23
  • 3
1
vote
1 answer

How to display holoviews table with many columns completely

I have some DataFrames with many columns. When I try to visualize them with holoviews.Table, only the first columns are displayed. For test purposes I created a DataFrame with 50 columns. import pandas as pd import panel as pn import holoviews as…
mdk
  • 398
  • 2
  • 8
1
vote
1 answer

Panel widgets do not update plot

I'm trying to use panel widgets inside a class in order to change a plot. The example below outputs the plot once, but when I select a different variable from the widget it doesn't update the plot. import pandas as pd import param import holoviews…
1
vote
2 answers

Specifying the default value in widgets generated by pyviz hvplot

I've got a 4D dataset and hvplot is nicely generating widgets for the dimensions I've specified in the groupby: import xarray as xr ds = xr.open_dataset('http://gamone.whoi.edu/thredds/dodsC/coawst_4/use/fmrc/coawst_4_use_best.ncd') rho_vars =…
Rich Signell
  • 14,842
  • 4
  • 49
  • 77
0
votes
0 answers

Interactive use of Datashader with matplotlib, 1.8 billion point array

I am working with geophysical data so now I have a 400k*512 "pixel" dataset that basically is "scans" times "samples". The data exists as np array of the dimension mentioned above. I need to visualize it interactively with zoom and all. I found…
0
votes
1 answer

Create python network graph from 3 dataframe columns unweighted using networkx and pyvis

Im working to create a python network graph utilizing the 3 pandas dataframe string columns - unweighted (python networks and pyviz) I would like to link (nodes) the projects to country, and projects to company. my table/dataframe is as…
0
votes
0 answers

Chaging edge colors in Pyviz with a networkX graph

I have data in a networkX graph where every edge has a "Type", using pyviz I want to change the color of the edge according to the category. Here is a sample code, I first set a color map: color_map=nx.get_edge_attributes(G,'Type') for key in…
0
votes
0 answers

How to integrate dropdown to a dropdown in Panel

I am trying to implement a dropdown widget which houses other dropdowns as shown in the image below; I am able to generate a dropdown using the Select widget, however, I am facing issues with integrating further dropdowns in one dropdown.
nikhil int
  • 181
  • 2
  • 14
0
votes
2 answers

How to convert datashader canvas.points to GeoTiff?

I am interested on generating GeoTiff images given a set of scattered points, the dataset is normally between 500K points up to 2M points. I have been using datashader and geoviews to generate static images of the data and that works fine. However,…
Jonatan Aponte
  • 429
  • 1
  • 5
  • 10
0
votes
1 answer

Holoviews - how to set legend click_policy for decimated points

I'm trying to set click_policy to 'hide' in legend_opts for the object resulted from applying holoviews.operation.decimate on a set of hv.Points, but it doesn't seem to have the desired effect. Now I'm using the muted_alpha option on the underlying…
bbudescu
  • 313
  • 1
  • 3
  • 9
0
votes
1 answer

How to set colormap midpoint in holoviews heatmap

I'm plotting a heatmap with holoviews using the Plotly backend. import holoviews as hv hv.HeatMap([(0,0,-10),(0,1,-9),(1,0,0),(1,1,2)]).opts(cmap="RdBu") I'd like to set the colormap midpoint to 0 to make the diverging colormap meaningful. In…
Gere
  • 12,075
  • 18
  • 62
  • 94
0
votes
1 answer

How can I set other edges invisible when I click on a node in pyvis.network // networkx?

Data: Currently I am working on a quite big network. Therefore I am sending a picture of a part of nodes and edges. pos = nx.nx_agraph.graphviz_layout(G, prog="twopi") Xs=[a[0] for a in pos.values()] Ys=[a[1] for a in pos.values()] from…
Hakan Akgün
  • 872
  • 5
  • 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

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 = { …