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 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146
|
.. _examples:
Examples
========
The test launcher
-----------------
A lot of examples are available in the `plotpy.tests` test module ::
from plotpy.tests import run
run()
The two lines above execute the `test launcher`:
.. image:: ../images/screenshots/__init__.png
Curve plotting
--------------
Basic curve plotting
~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/items/test_curve.py
:start-after: guitest:
.. image:: ../images/screenshots/plot.png
.. _tests-computations:
Computations on curves
~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/features/test_computations.py
:start-after: guitest:
.. image:: ../images/screenshots/computations.png
Curve fitting
-------------
.. literalinclude:: ../../plotpy/tests/features/test_fit.py
:start-after: guitest:
.. image:: ../images/screenshots/fit.png
Image visualization
-------------------
Image contrast adjustment
~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/features/test_contrast.py
:start-after: guitest:
.. image:: ../images/screenshots/contrast.png
Image cross-sections
~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/tools/test_cross_section.py
:start-after: guitest:
.. image:: ../images/screenshots/cross_section.png
Transformable images
~~~~~~~~~~~~~~~~~~~~
Affine transforms example on 3000x3000 images (real-time transforms):
.. literalinclude:: ../../plotpy/tests/items/test_transform.py
:start-after: guitest:
.. image:: ../images/screenshots/transform.png
Image rectangular filter
~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/features/test_imagefilter.py
:start-after: guitest:
.. image:: ../images/screenshots/imagefilter.png
Histograms
----------
2-D histogram
~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/items/test_hist2d.py
:start-after: guitest:
.. image:: ../images/screenshots/hist2d.png
Other examples
--------------
Dot Array Demo
~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/widgets/test_dotarraydemo.py
:start-after: guitest:
.. image:: ../images/screenshots/dotarraydemo.png
Image plot tools
~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/tools/test_image_plot_tools.py
:start-after: guitest:
.. image:: ../images/screenshots/image_plot_tools.png
Real-time Mandelbrot plotting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/items/test_mandelbrot.py
:start-after: guitest:
.. image:: ../images/screenshots/mandelbrot.png
Simple application
~~~~~~~~~~~~~~~~~~
.. literalinclude:: ../../plotpy/tests/widgets/test_simple_window.py
:start-after: guitest:
.. image:: ../images/screenshots/simple_window.png
|