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

HoloView Scatter groupby with plot width and height option

import holoviews as hv renderer = hv.renderer('bokeh') scatter = hv.Scatter(df,kdims=['X','Y'],vdims=['A','B']).opts(plot=dict(width=1200,height=900)) renderer.save(scatter,'out') I get the out.html with the correct width and height. When I add…
Ercan
  • 1
  • 3
0
votes
1 answer

Geoviews points: changing colormap with high and low options

I recently looked at this question on manually setting the limits of a holoviews colorbar, but after changing the range on one of my vdims, it didn't change the high and low limits of the colorbar. Is there a way to pass a Bokeh LinearColorMapper…
Pallen
  • 131
  • 8
0
votes
0 answers

Categorical axis in Holoviews Curve leads to error

I have this data df = pd.read_csv('https://docs.google.com/spreadsheets/d/e/2PACX-1vQxY-rTQNBbMWtRI2p8m_gj0TvmkHt3_CqNkhRILq6s5xL3mGX-IXtZt9pej-ae3ZNN1EnAP_iC0unx/pub?output=csv', index=False) df.head() Id Year Period Cumulative YearPeriod …
bowlby
  • 649
  • 1
  • 8
  • 18
0
votes
1 answer

Issue Controlling Size of Holoviews + Datashader with Matplotlib Backend

I'm currently trying to use holoviews+datashader with the matplotlib backend. The data I'm using has very different x and y ranges and the result is that the datashader plots are stretched unhelpfully. The opts and output keywords I've tried using…
laurennc
  • 13
  • 7
0
votes
1 answer

Bokeh + Datashader + Bokeh - Capture Mouse Double Tap

I'm implementing a ScatterPlot for Big Data using Bokeh, DataShader and HoloViews. The ScatterPlot part itself is pretty much done but there is one requirement I'm having issues with: I need to be able to capture the data coordinates where the user…
0
votes
1 answer

holoview.extension('bokeh') - cannot import extension

I wanted to test HoloViews, but I encounter several errors. I installed it twice (different sets as suggested here). I used !pip install holoviews and !pip install 'holoviews[recommended]'. While installing I got: Requirement already satisfied:…
0
votes
1 answer

In Hollowviews, how do I get grid lines to line up with tick marks?

When I change the xticks in hollowviews, the grid lines sill line up with the default xticks. How can I get the grid to line up with my custom xticks? import holoviews as hv import numpy as np hv.extension('bokeh') points = [(0.1*i, np.sin(0.1*i))…
Brian Keats
  • 131
  • 1
  • 11
0
votes
2 answers

How to draw graphs with vertices and edges of different sizes using the holoviews library?

How to draw a graph with vertices and edges of different sizes? I'm using ipython and holoviews library. For instance, Edges input start,ends 1,4 2,4 3,5 3,6 2,6 Nodes…
Alan Valejo
  • 1,305
  • 3
  • 24
  • 44
0
votes
0 answers

HoloViews and Grouped Bar Chart

The last example in http://holoviews.org/reference/elements/bokeh/Bars.html doesn't work. --------------------------------------------------------------------------- TypeError Traceback (most recent call…
Bruno
  • 1,329
  • 2
  • 15
  • 35
0
votes
1 answer

HoloViews Area Overlay Axes and Labels

I'm trying to overlay Scatter and Area, but the latter is causing the axes and their labels to disappear. import pandas as pd import holoviews as hv hv.extension('bokeh') from bokeh.models import HoverTool data = dict(A=["A1", "A1", "A1", "A1"],…
Bruno
  • 1,329
  • 2
  • 15
  • 35
0
votes
0 answers

Visualization of large combination of groups using pandas

I have a data frame with a structure similar to dt, ing_net, egs_net, ing_ip, egs_ip, avg_pkt, sum_time 2017-01-01, A2, A1, 10.100.0.0, 22.54.23.0, 12.1, 123 2017-01-01, B2, A1, 10.100.1.0, 22.54.23.0, 12.1, 982 2017-01-01, B2, A2, 10.0.1.0,…
Ivan
  • 19,560
  • 31
  • 97
  • 141
0
votes
1 answer

Holoview histogram with datetime column in pandas dataframe

I have a data frame with a datetime index. I'm trying to generate a histogram using the Holoview Histogram function: df dt, avg_val 2015-07-07, 20.3 2015-07-08, 20.4 2015-07-09, 10.3 ... df.index DatetimeIndex(['2015-07-07', '2015-07-08',…
Ivan
  • 19,560
  • 31
  • 97
  • 141
0
votes
1 answer

Drop down menu for column visualization in Holoviews

I have a dataframe with time index and some columns, similar to dt, col1, col2, col3 12, 0.9, 0.3, 0.1 13, 0.9, 0.3, 0.2 14, 2.9, 0.4, 0.1 15, 0.1, 0.3, 0.7 and I can create a Holoviews Curve wihtout a problem for each column. Is it possible to…
Ivan
  • 19,560
  • 31
  • 97
  • 141
0
votes
2 answers

Bokeh or HoloViews multiple depended dropdowns

I have a data set with 3 of the columns having categorical values. I want to create 3 drop downs in Bokeh or HoloViews in which the first drop down selection determines the values of the list in the other 2 drop downs. Can anyone point me to any of…
opalbert
  • 69
  • 6
0
votes
1 answer

Bar chart tooltip in Bokeh or Holoviews

I would like to include tooltips with my bar chart in either Bokeh or Holoviews. However, instead of getting the data showing the tooltip it is just giving me ???. I have tried both Bokeh and Holoviews and experience the same issue. I know this was…
igodfried
  • 877
  • 9
  • 22