File: introduction.rst

package info (click to toggle)
bqplot 0.12.32-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 18,072 kB
  • sloc: python: 2,573; makefile: 162; javascript: 150
file content (37 lines) | stat: -rw-r--r-- 1,226 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
.. _introduction:

Introduction
============

bqplot is a Grammar of Graphics-based interactive plotting framework for the Jupyter notebook.

.. image:: ../../wealth-of-nations.gif

In bqplot, every single attribute of the plot is an interactive widget. This allows the user to integrate any plot with IPython widgets to create a complex and feature rich GUI from just a few simple lines of Python code.

Goals
-----

 - provide a unified framework for 2-D visualizations with a pythonic API.
 - provide a sensible API for adding user interactions (panning, zooming, selection, etc)

Two APIs are provided

 - Users can build custom visualizations using the internal object model, which is inspired by the constructs of the Grammar of Graphics (figure, marks, axes, scales), and enrich their visualization with our Interaction Layer.
 - Or they can use the context-based API similar to Matplotlib's pyplot, which provides sensible default choices for most parameters.

Installation
------------

Using pip:

.. code:: bash

    pip install bqplot
    jupyter nbextension enable --py --sys-prefix bqplot  # can be skipped for notebook version 5.3 and above

Using conda

.. code:: bash

    conda install -c conda-forge bqplot