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
25
votes
4 answers

Change pandas plotting backend to get interactive plots instead of matplotlib static plots

When I use pandas df.plot() it has matplotlib as a default plotting backend. But this creates static plots. I would like interactive plots, so I have to change the pandas plotting background. How do I do change the plotting backend of pandas to…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
14
votes
1 answer

How do I manually set the limits of a holoview's colorbar?

When I try to input my own ticker... In an earlier cell... ticker = FixedTicker(ticks=range(0, 10)) In the following cell... %%opts HeatMap [colorbar=True colorbar_opts={'ticker': ticker}] I get... TypeError [Call…
Andrew
  • 507
  • 5
  • 16
11
votes
1 answer

How do i automatically update a dropdown selection widget when another selection widget is changed? (Python panel pyviz)

I have a Select widget that should give a different list of options whenever another Select widget is changed, so it updates whenever this other Select widget changes. How do I this in the example code below? _countries = { 'Africa': ['Ghana',…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
11
votes
2 answers

How to draw readable, preferably interactive, network graphs with python?

I'm trying to draw a graph of any network running my script. I use scapy to collect packets and would like to have a node per computer communicating, and an edge per connection. The issue is I can't find a way to visualize the graph well enough on…
yo1122
  • 311
  • 4
  • 17
11
votes
2 answers

Holoview with bokeh does not show plots

I'm trying to create an environment in which I develop Python code with PyCharm while at the same time creating interactive charts using holoviews and bokeh. I followed steps in Holoview Introduction and it works in Jupyter notebook - the charts…
10
votes
3 answers

Holoviews charts sharing axis when combined and outputted

I'm using Holoviews to construct a dashboard of charts. Some of these charts have percentages in the y axis where as others have sums/counts etc. When I try to output all the charts I have created to a html file, all the charts change their y axis…
Amen_90
  • 310
  • 2
  • 9
9
votes
1 answer

Change legend position using holoviews / hvplot

Hvplot has default the position of the legend on the right outside of the plot. How can I change this default legend position? import numpy as np import pandas as pd import hvplot import hvplot.pandas import holoviews as hv data =…
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
9
votes
3 answers

Setting x and y labels with holoviews

I would like to change the labels on the x and y axis on a figure from holoviews to be something other than the internal variable name. It seems the typical way to affect the axis labels is to change the variable names themselves to the label. This…
Caleb
  • 3,839
  • 7
  • 26
  • 35
8
votes
1 answer

How to control the legend position of a Holoviews Holomap figure?

I am trying to create a Holomap figure in holoviews that includes a legend at the top of the plot. The configuration option "legend_position" works fine for a non-holomap figure ("example1.html" below), but not for the holomap ("example2.html"…
magum
  • 597
  • 1
  • 5
  • 12
7
votes
3 answers

How to view opts for Holoviews with Bokeh in Python

Been using holoview to generate some neat plots. I wanna see what options I have for things like hv.Curve, when I use opts. There almost no documentation. The help page for holoview is not helpful. In it it says "For full documentation and the…
Jay Gudger
  • 71
  • 1
  • 3
7
votes
2 answers

Create a grid of plots with holoviews/hvplot and set the max number of columns

I'd like to plot several data into a grid using holoviews/hvplot, based on one dimension, which contains several unique data points. Considering this example: import seaborn as sns import hvplot.pandas iris = sns.load_dataset('iris') plot =…
MichaelA
  • 1,866
  • 2
  • 23
  • 38
7
votes
1 answer

how to add a constant line to hvplot

How to add a horizontal line to a hvplot ? Holoviews has .HLine and .VLine but not sure how to access it via pandas.hvplot or hvplot here is a sample dataframe and plotting script. import pandas as pd import hvplot.pandas df =…
muon
  • 12,821
  • 11
  • 69
  • 88
7
votes
1 answer

How do i rotate x labels or y labels? (hvplot or holoviews)

I've created the following plot with hvplot and want to rotate the xlabels in this plot: import numpy as np import pandas as pd import hvplot.pandas import holoviews as hv my_plot = pd.DataFrame(np.random.normal(size=[50, 2])).hvplot()
Sander van den Oord
  • 10,986
  • 5
  • 51
  • 96
7
votes
1 answer

Changing extents or axis limits on complex Holoviews figures

I see examples on how to edit the extents (aka axis limits) on single objects like Images or Histograms in holoviews such as this answer on stack exchange for histogram extents. What about if you want to apply this to something more complicated like…
Caleb
  • 3,839
  • 7
  • 26
  • 35
6
votes
0 answers

Holoviews change full background color

Very simple task but I haven't found a solution; I've made a Point plot with holoviews and I want to save the plot with a fully black background, the bgcolor only changes the inner area color, not the outside, which remains white. This is the…
Xhoan Doe
  • 81
  • 1
1
2 3
44 45