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

x-axis spacing in holoviews

Im currently plotting a bar graph and a curve with float intervals as months, displayed as 2012.083333, 2012.16666667 etc. etc. on the x-axis. Im plotting a 4 year interval and want to increase the spacing between the months and cant find a solution…
Take Pos
  • 15
  • 5
0
votes
1 answer

Holoviews graph visualization: setting position based on attribute

When plotting a network in Holoviews, how can I set the position of the nodes based on an attribute? I have a network with timestamps for each node, and would like to position the nodes based on the associated time.
sharx
  • 11
  • 3
0
votes
2 answers

Bokeh error while importing Mod "from holoext.bokeh import Mod"

I want to be able to add functionalities like intelligent sizing, zoom-in/out, to the holoviews toolbar for neat plots. But I am not able to import Mod and get this error below: from holoext.bokeh import Mod ImportError …
Bhavya Geethika
  • 379
  • 1
  • 2
  • 9
0
votes
1 answer

Holoviews: separate figures with same coloring and scaling

Let's say that I have two Raster objects (or any other Holoviews object really). I can easily visualize one with appropriate color scaling, and I can do a layout to get both figures with the same scaling and coloring. What if I want to do two…
Bonnevie
  • 187
  • 9
0
votes
1 answer

Visualizing time-series interactively in Ipython notebook

I have a 2D matrix where the rows are different (Long, Lat) values and columns are different dates. The entry in the matrix can contain nan values specifying that data for that date is not available. I want to plot (Long, Lat) values on a world Map…
rombi
  • 199
  • 3
  • 22
0
votes
1 answer

Holoviews: Format legend and colors of Spread and Curve Overlay

Given a tidy Pandas column with 4 or more columns, I want an otherwise very straightforward plot: two of the columns should be the x-y axes of a single figure, and one of the columns should index an Overlay of N Curve objects based on the x-y…
Bonnevie
  • 187
  • 9
0
votes
0 answers

Holoviews Histogram no longer plots correctly, yielding strange graph

I took the example from the Holoviews website and plotted the following histogram np.random.seed(1) data = np.random.randn(10000) frequencies, edges = np.histogram(data, 20) print('Values: %s, Edges: %s' % (frequencies.shape[0],…
Pallen
  • 131
  • 8
0
votes
1 answer

holoviews/bokeh gridline issue

I am attempting to make a heat map with holoviews (currently using the bokeh backend). I have a data frame ('dep_df') with 3 columns: X, Y, type. X and Y are the dimension labels, and type is a categorical variables b/n 0 and n (where n is an…
mik
  • 110
  • 8
0
votes
1 answer

How to set random_state in networkx graph with holoviews/bokeh?

I would like to generate reproducible plots. With networkx is possible to pass the random state to the layout. That is to ensure the plot is the same. When doing the same with holoviews I am getting an error. %pylab inline import pandas as…
Soerendip
  • 7,684
  • 15
  • 61
  • 128
0
votes
0 answers

How to show inner axes all around a GridSpace/GridMatrix in Holoviews?

How to show the inner axes of a Holoviews GridSpace/GridMatrix all around the plot? shared_xaxis=True and shared_yaxis=True only show the inner axes at the left and bottom. See the sample code and picture below. %%opts GridSpace [shared_xaxis=True…
suyang
  • 13
  • 3
0
votes
2 answers

How to change color in networkx graph plotted with holoviews/bokeh?

How can I change the color of individual nodes in the following example? %pylab inline import pandas as pd import networkx as nx import holoviews as hv hv.extension('bokeh') G = nx.Graph() ndxs =…
Soerendip
  • 7,684
  • 15
  • 61
  • 128
0
votes
2 answers

How to plot networkx graph with holoviews/bokeh with same location of nodes and edges?

I want to plot a graph generated with networkx using holoview and bokeh. Networkx runs an optimization of the graph, it seems as part of the drawing. When I feed the graph to holoviews the graph looks quite different. I am not sure what happens. I…
Soerendip
  • 7,684
  • 15
  • 61
  • 128
0
votes
1 answer

Bokeh or Holoviews: BarChart by downsampling date time to months/years/etc

I have a pandas dataframe (wrapped in holoviews typically) that has three columns. Col1 is a datetime, Col2 are categorical strings (i.e. one of 'Cat', 'Dog', 'Bird'), and Col3 being an integer count. I'm trying to find a way to use the bokeh…
Tyler Russell
  • 653
  • 3
  • 10
  • 26
0
votes
0 answers

Dynamic plots in holoviews

I want to create a dynamic plot using holoviewS of amount given and balance remaining. Ideally a line or bar chart and I can select based on category The data(df) is as below ID Amount_Given Balance Interest Date_issues category…
0
votes
1 answer

How to make a 3d line in holoviews library?

I have two sets of 3d trajectory data that I need to plot. The first trajectory needs to be as a 3d scatter plot - which can be done using the Scatter3D functionality. The second trajectory needs to be a continuous line. Despite searching on the…
Thejasvi
  • 200
  • 1
  • 11