File: introduction.rst

package info (click to toggle)
python-pyqtgraph 0.14.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 8,168 kB
  • sloc: python: 54,831; makefile: 128; ansic: 40; sh: 2
file content (80 lines) | stat: -rw-r--r-- 3,291 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Introduction
============



What is pyqtgraph?
------------------

PyQtGraph is a graphics and user interface library for Python that provides
functionality commonly required in engineering and science applications. Its
primary goals are 1) to provide fast, interactive graphics for displaying data
(plots, video, etc.) and 2) to provide tools to aid in rapid application
development (for example, property trees such as used in Qt Designer).

PyQtGraph makes heavy use of the Qt GUI platform (via PyQt or PySide) for its
high-performance graphics and numpy for heavy number crunching. In particular,
pyqtgraph uses Qt's GraphicsView framework which is a highly capable graphics
system on its own; we bring optimized and simplified primitives to this
framework to allow data visualization with minimal effort.

It is known to run on Linux, Windows, and OSX


What can it do?
---------------

Amongst the core features of pyqtgraph are:

* Basic data visualization primitives: Images, line and scatter plots
* Fast enough for realtime update of video/plot data
* Interactive scaling/panning, averaging, FFTs, SVG/PNG export
* Widgets for marking/selecting plot regions
* Widgets for marking/selecting image region-of-interest and automatically
  slicing multi-dimensional image data
* Framework for building customized image region-of-interest widgets
* Docking system that replaces/complements Qt's dock system to allow more
  complex (and more predictable) docking arrangements
* ParameterTree widget for rapid prototyping of dynamic interfaces (Similar to
  the property trees in Qt Designer and many other applications)


.. _examples:

Examples
--------

PyQtGraph includes an extensive set of examples that can be accessed by
running either ``python -m pyqtgraph.examples`` or ::

    import pyqtgraph.examples
    pyqtgraph.examples.run()

This will start a launcher with a list of available examples. Select an item
from the list to view its source code and double-click an item to run the
example.


How does it compare to...
-------------------------

* matplotlib: For plotting, pyqtgraph is not nearly as complete/mature as
  matplotlib, but runs much faster. Matplotlib is more aimed toward making
  publication-quality graphics, whereas pyqtgraph is intended for use in data
  acquisition and analysis applications. Matplotlib is more intuitive for
  matlab programmers; pyqtgraph is more intuitive for python/qt programmers.
  Matplotlib (to my knowledge) does not include many of pyqtgraph's features
  such as image interaction, volumetric rendering, parameter trees,
  flowcharts, etc.

* pyqwt5: About as fast as pyqtgraph, but not quite as complete for plotting
  functionality. Image handling in pyqtgraph is much more complete (again, no
  ROI widgets in qwt). Also, pyqtgraph is written in pure python, so it is
  more portable than pyqwt, which often lags behind pyqt in development (I
  originally used pyqwt, but decided it was too much trouble to rely on it
  as a dependency in my projects). Like matplotlib, pyqwt (to my knowledge)
  does not include many of pyqtgraph's features such as image interaction,
  volumetric rendering, parameter trees, flowcharts, etc.

(My experience with these libraries is somewhat outdated; please correct me if
I am wrong here)