Questions tagged [holoviews]

HoloViews is a Python library that makes analyzing and visualizing scientific or engineering data much simpler, more intuitive, and more easily reproducible.

HoloViews is a Python library that makes analyzing and visualizing scientific or engineering data much simpler, more intuitive, and more easily reproducible. Without HoloViews, there are typically many steps required before you can see your data, whether you use a GUI interactively or write a function or script to build up a plot. HoloViews instead lets you store your data in an annotated format that is instantly visualizable, with immediate access to both the numeric data and its visualization. For instance, if you wrap a two-dimensional dataset like a fractal in a HoloViews Image object named fractal , you can just type fractal to view it as an image in an IPython/Jupyter Notebook . Most importantly, combining it with other objects is now easy -- you can e.g. view it annotated with a horizontal line and a histogram, next to a slice of it from the indicated cross-section, all without writing any plotting code.

Features

Overview

  • Lets you build data structures that both contain and visualize your data.
  • Includes a rich library of composable elements that can be overlaid, nested, and positioned with ease.
  • Supports rapid data exploration that naturally develops into a fully reproducible workflow .
  • You can create complex animated or interactive visualizations with minimal code.
  • Rich semantics for indexing and slicing of data in arbitrarily high-dimensional spaces .
  • Every parameter of every object includes easy-to-access documentation.
  • All features available in vanilla Python 2 or 3 , with minimal dependencies.
  • All examples on the website are tested automatically each night, using the latest version of the code.

Support for maintainable, reproducible research

  • Supports a truly reproducible workflow by minimizing the code needed for analysis and visualization.
  • Already used in a variety of research projects, from conception to final publication.
  • All HoloViews objects can be pickled and unpickled, with no plotting-library dependencies.
  • Provides comparison utilities for testing, so you know when your results have changed and why.
  • Core data structures only depend on the numpy and param libraries.
  • Provides export and archival facilities for keeping track of your work throughout the lifetime of a project.

Analysis and data access features

  • Allows you to annotate your data with dimensions, units, labels and data ranges.
  • Easily slice and access regions of your data, no matter how high the dimensionality.
  • Apply any suitable function to collapse your data or reduce dimensionality.
  • Helpful textual representation to inform you how every level of your data may be accessed.
  • Includes small library of common operations for any scientific or engineering data.
  • Highly extensible: add new operations to easily apply the data transformations you need.

Visualization features

  • Useful default settings make it easy to inspect data, with minimal code.
  • Powerful normalization system to make understanding your data across plots easy.
  • Build complex animations or interactive visualizations in seconds instead of hours or days.
  • Refine the visualization of your data interactively and incrementally.
  • Separation of concerns: all visualization settings are kept separate from your data objects.
  • Support for interactive tooltips/panning/zooming/linked-brushing, via the optional bokeh or mpld3 backends.

Jupyter/IPython Notebook support

  • Support for both IPython 2 and 3 and for the Jupyter project.
  • Automatic tab-completion everywhere.
  • Exportable sliders and scrubber widgets.
  • Automatic display of animated formats in the notebook or for export, including gif, webm, and mp4.
  • Useful IPython magics for configuring global display options and for customizing objects.
  • Automatic archival and export of notebooks , including extracting figures as SVG, generating a static HTML copy of your results for reference, and storing your optional metadata like version control information.

Integration with third-party libraries

  • Flexible interface to both the pandas and Seaborn libraries
  • Immediately visualize pandas data as any HoloViews object.
  • Seamlessly combine and animate your Seaborn plots in HoloViews rich, compositional data-structures.

Official website: http://holoviews.org/

667 questions
0
votes
1 answer

Deploy Bokeh Plot into Server

I have one bokeh plot plot.ipynb i want to deploy this plot into my server , so that i can do dynamic data updation into my plot in my own server deployment . Can you please tell me what is the best way/easy way to do deployment of my plot into my…
MSA msa
  • 83
  • 1
  • 10
0
votes
1 answer

Can you specify point size when using rasterize in holoviews

Is it possible to specify a size for the points generated by the rasterize function in holoviews? Similar to that of spread when using datashade
rindis
  • 869
  • 11
  • 25
0
votes
1 answer

Change pan of DynamicMap with callback

I have timeseries data which I want to display day by day using holoviews in a bokeh server. My code boils down to: import pandas as pd import numpy as np import holoviews as hv hv.extension("bokeh", "matplotlib") renderer =…
Benjamin
  • 1,348
  • 2
  • 12
  • 25
0
votes
1 answer

Geoviews - Plot heat map using tabular data

I have point data in the following tabular format (3 columns, any number of rows): | Latitude | Longitude | Temperature | How can I interpolate values to get a heat map like this: Instead of point data like this:
CodeWarrior
  • 1,239
  • 1
  • 14
  • 19
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

Set title to a simple Holoviews plot (python)

I have a simple Holoviews plot, in this case a scatter or points plot, but it has no title. How do I add a title to this plot? # import libraries import numpy as np import holoviews as hv from holoviews import opts hv.extension('bokeh') # create…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
0
votes
1 answer

Widget in HeatMap with Holoviews

I want add a widget in my HeatMap with Holoviews. For istance, I have: z, a, b = np.histogram2d(df['a'], df['b']) hv.Image((a, b, z), ['a', 'b'], 'Count') and I want a widget that let me change a third variable (like "Symbol" in the follow…
Tota
  • 11
  • 4
0
votes
1 answer

How to use RangetoolLink with holoviews in an Overlayed plot

I am trying to use the holoviews Rangetool link in a holoviews Overlayed plot. But unable to achieve the range linking to work. Is it possible to achieve this.? Based on these links example 1 and example 2 I tried the options with an overlayed plot…
Abhilash Chandran
  • 6,803
  • 3
  • 32
  • 50
0
votes
1 answer

Prevent the colormap to be rescaled when using datashader to rerender an image as it is zoomed in

I want to use datashader's automatic downsampling and rerendering upon zoom to display large images. Reading the docs and forums for holoviews, bokeh, and datashader, it is my understanding that it is preferable to do this via Holoviews instead of…
joelostblom
  • 43,590
  • 17
  • 150
  • 159
0
votes
0 answers

issue with rendering output as gif using matplotlib on windows

i want to use render the holoviews output as gif on windows. I am facing this issue as below and now i waited a long time for the output but nothing is showing up : WARNING:root:Points05279: Setting non-parameter attribute width=500 using a…
0
votes
1 answer

Why is my reference line (HLine) not showing up in Holoviews plot?

Have the following code to test out reference line: import holoviews as hv from holoviews import dim, opts hv.extension('bokeh', 'matplotlib') hv.output(size=300) testMap = hv.HoloMap({i: hv.Curve([1, 2+i, 3,4-i,5,6+i,7,8-i,9,10+i],…
Tester_Y
  • 367
  • 4
  • 18
0
votes
1 answer

How to plot huge dask dataframe box plot preferably holoviews?

How to plot huge Dask Dataframe box plot? I need to plot DASK dataframe, I do: import holoviews as hv from holoviews import opts hv.extension('bokeh', 'matplotlib') d = dd.read_parquet(dataset_dir+'/train/date*/*.parquet', engine='pyarrow',…
VadimCh
  • 71
  • 1
  • 9
0
votes
1 answer

How to convert Holoviews graph to Bokeh 'model' in order to utilize more Bokeh features such as bokeh.models.GraphRenderer and node_renderer?

I'm trying to create a directed graph using networkx and bokeh, however, I also want to show the arrows for each out-edge. I found that the Holoviews library has the ability to add a 'directed=true' parameter to its graph constructor. However, I…
0
votes
1 answer

How to access bokeh (figure) parameters

I would like to change the default tools that holoviews gives after plotting something using bokeh as backend. From what I have read so far I can do this using Hooks but I haven't figure how. The instruction using bokeh should be something like…
lsdR94
  • 35
  • 1
  • 5
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