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
|
.. _plot:
Plot widgets
============
A :mod:`plotpy`-based plotting widget may be constructed using one of the following
methods:
* *Interactive mode*: when manipulating and visualizing data in an interactive
Python or IPython interpreter, the :py:mod`.pyplot` module provide
the easiest way to plot curves, show images and more. Syntax is similar
to MATLAB's, thus very easy to learn and to use interactively.
* *Script mode*: when manipulating and visualizing data using a script, the
:py:mod`.pyplot` module is still a good choice as long as you don't
need to customize the figure graphical user interface (GUI) layout.
However, if you want to add other widgets to the GUI, like menus, buttons
and so on, you should rather use plotting widget classes instead of
the `pyplot` helper functions.
There are two kinds of plotting widgets defined in :mod:`plotpy`:
* low-level plotting widget: :py:class:`.plot.base.BasePlot`
* high-level plotting widgets (ready-to-use widgets with integrated tools
and panels): :py:class:`.plot.PlotWidget` and corresponding dialog box
:py:class:`.plot.PlotDialog` and window
:py:class:`.plot.PlotWindow`
Plot widgets with integrated plot manager:
.. image:: ../../images/plot_widgets.png
.. seealso::
:ref:`items`
Plot items: curves, images, markers, etc.
:ref:`plot`
Ready-to-use curve and image plotting widgets and dialog boxes
.. toctree::
:maxdepth: 2
:caption: Contents:
overview
examples
reference
|