From 328032e2317e3ac4859196bbf12bdb71795302fe Mon Sep 17 00:00:00 2001 From: Alexandre Marie Date: Tue, 21 Jul 2020 14:45:14 +0200 Subject: New upstream version 0.13.0+dfsg --- doc/source/conf.py | 1 + doc/source/install.rst | 10 +- .../modules/gui/data/img/ArrayTableWidget.png | Bin 21097 -> 42383 bytes doc/source/modules/gui/data/img/DataViewer.png | Bin 20225 -> 38670 bytes doc/source/modules/gui/hdf5/getting_started.rst | 2 +- doc/source/modules/gui/icons.rst | 54 ++++++++++ doc/source/modules/gui/plot/getting_started.rst | 16 +-- .../modules/gui/plot/img/BasicGridStatsWidget.png | Bin 5702 -> 12081 bytes .../modules/gui/plot/img/BasicStatsWidget.png | Bin 6575 -> 8699 bytes .../modules/gui/plot/img/CurveLegendsWidget.png | Bin 30043 -> 0 bytes doc/source/modules/gui/plot/img/LimitsToolBar.png | Bin 21499 -> 21697 bytes doc/source/modules/gui/plot/img/linearColorbar.png | Bin 6585 -> 0 bytes doc/source/modules/gui/plot/img/logColorbar.png | Bin 5240 -> 11461 bytes doc/source/modules/gui/plot/index.rst | 2 +- doc/source/modules/gui/plot/tools.rst | 120 --------------------- .../gui/plot/tools/img/CurveLegendsWidget.png | Bin 0 -> 30043 bytes .../modules/gui/plot/tools/img/linearColorbar.png | Bin 0 -> 6585 bytes doc/source/modules/gui/plot/tools/index.rst | 118 ++++++++++++++++++++ doc/source/modules/gui/plot/tools/profile.rst | 84 +++++++++++++++ .../modules/gui/widgets/img/FrameBrowser.png | Bin 2161 -> 3186 bytes .../widgets/img/HorizontalSliderWithBrowser.png | Bin 2278 -> 2884 bytes .../modules/gui/widgets/img/PeriodicCombo.png | Bin 1878 -> 2607 bytes .../modules/gui/widgets/img/PeriodicList.png | Bin 17621 -> 25731 bytes .../modules/gui/widgets/img/PeriodicTable.png | Bin 25540 -> 33564 bytes doc/source/modules/gui/widgets/img/RangeSlider.png | Bin 1024 -> 1028 bytes doc/source/modules/gui/widgets/img/TableWidget.png | Bin 3156 -> 3789 bytes .../gui/widgets/img/ThreadPoolPushButton.png | Bin 1577 -> 2151 bytes .../modules/gui/widgets/img/WaitingPushButton.png | Bin 941 -> 1068 bytes doc/source/overview.rst | 6 +- doc/source/sample_code/img/customSilxView.png | Bin 0 -> 93797 bytes doc/source/sample_code/img/imageStack.png | Bin 0 -> 347747 bytes doc/source/sample_code/img/plotProfile.png | Bin 0 -> 86902 bytes doc/source/sample_code/index.rst | 35 +++++- doc/source/troubleshooting.rst | 2 +- doc/source/virtualenv.rst | 97 ++++------------- 35 files changed, 322 insertions(+), 225 deletions(-) delete mode 100644 doc/source/modules/gui/plot/img/CurveLegendsWidget.png delete mode 100644 doc/source/modules/gui/plot/img/linearColorbar.png delete mode 100644 doc/source/modules/gui/plot/tools.rst create mode 100644 doc/source/modules/gui/plot/tools/img/CurveLegendsWidget.png create mode 100644 doc/source/modules/gui/plot/tools/img/linearColorbar.png create mode 100644 doc/source/modules/gui/plot/tools/index.rst create mode 100644 doc/source/modules/gui/plot/tools/profile.rst create mode 100644 doc/source/sample_code/img/customSilxView.png create mode 100644 doc/source/sample_code/img/imageStack.png create mode 100644 doc/source/sample_code/img/plotProfile.png (limited to 'doc/source') diff --git a/doc/source/conf.py b/doc/source/conf.py index 86dbccf..7e173f3 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -75,6 +75,7 @@ extensions = [ 'sphinx.ext.mathjax', 'sphinx.ext.viewcode', 'sphinx.ext.doctest', + 'sphinx.ext.inheritance_diagram', 'sphinxext-archive', 'snapshotqt_directive', 'nbsphinx' diff --git a/doc/source/install.rst b/doc/source/install.rst index 8e5220b..8ed5136 100644 --- a/doc/source/install.rst +++ b/doc/source/install.rst @@ -10,11 +10,11 @@ This table summarizes the support matrix of silx: +------------+--------------+---------------------+ | System | Python vers. | Qt and its bindings | +------------+--------------+---------------------+ -| `Windows`_ | 3.5, 3.6-3.7 | PyQt5.6+, PySide2 | +| `Windows`_ | 3.5-3.8 | PyQt5.6+, PySide2 | +------------+--------------+---------------------+ -| `MacOS`_ | 2.7, 3.5-3.7 | PyQt5.6+, PySide2 | +| `MacOS`_ | 3.5-3.8 | PyQt5.6+, PySide2 | +------------+--------------+---------------------+ -| `Linux`_ | 2.7, 3.4-3.7 | PyQt5.3+, PySide2 | +| `Linux`_ | 3.5-3.8 | PyQt5.3+, PySide2 | +------------+--------------+---------------------+ For the description of *silx* dependencies, see the Dependencies_ section. @@ -211,8 +211,8 @@ prompt. MacOS ----- -While Apple ships Python 2.7 by default on their operating systems, we recommend -using Python 3.5 or newer to ease the installation of the Qt library. +Apple ships Python 2.7 by default on their operating systems. +You must install Python 3.5 or newer to install silx. Then, install *silx* with ``pip``, see `Installing with pip`_:: diff --git a/doc/source/modules/gui/data/img/ArrayTableWidget.png b/doc/source/modules/gui/data/img/ArrayTableWidget.png index 6ae9114..c879427 100644 Binary files a/doc/source/modules/gui/data/img/ArrayTableWidget.png and b/doc/source/modules/gui/data/img/ArrayTableWidget.png differ diff --git a/doc/source/modules/gui/data/img/DataViewer.png b/doc/source/modules/gui/data/img/DataViewer.png index c2185d3..a1fabb9 100644 Binary files a/doc/source/modules/gui/data/img/DataViewer.png and b/doc/source/modules/gui/data/img/DataViewer.png differ diff --git a/doc/source/modules/gui/hdf5/getting_started.rst b/doc/source/modules/gui/hdf5/getting_started.rst index 1a81a0a..6951247 100644 --- a/doc/source/modules/gui/hdf5/getting_started.rst +++ b/doc/source/modules/gui/hdf5/getting_started.rst @@ -86,7 +86,7 @@ We can use directly h5py Files, Groups and Datasets. .. code-block:: python import h5py - h5 = h5py.File("test.h5") + h5 = h5py.File("test.h5", mode="r") # We can use file model.insertH5pyObject(h5) diff --git a/doc/source/modules/gui/icons.rst b/doc/source/modules/gui/icons.rst index ba7d89b..8a939ea 100644 --- a/doc/source/modules/gui/icons.rst +++ b/doc/source/modules/gui/icons.rst @@ -29,10 +29,18 @@ Available icons - 3d-plane-pan * - |3d-plane| - 3d-plane + * - |add-range-horizontal| + - add-range-horizontal * - |add-shape-arc| - add-shape-arc + * - |add-shape-circle| + - add-shape-circle + * - |add-shape-cross| + - add-shape-cross * - |add-shape-diagonal| - add-shape-diagonal + * - |add-shape-ellipse| + - add-shape-ellipse * - |add-shape-horizontal| - add-shape-horizontal * - |add-shape-point| @@ -61,6 +69,16 @@ Available icons - colormap-histogram * - |colormap-none| - colormap-none + * - |colormap-norm-arcsinh| + - colormap-norm-arcsinh + * - |colormap-norm-gamma| + - colormap-norm-gamma + * - |colormap-norm-linear| + - colormap-norm-linear + * - |colormap-norm-log| + - colormap-norm-log + * - |colormap-norm-sqrt| + - colormap-norm-sqrt * - |colormap-range| - colormap-range * - |colormap| @@ -173,6 +191,12 @@ Available icons - last * - |layer-nx| - layer-nx + * - |mask-clear-all| + - mask-clear-all + * - |mask-clear| + - mask-clear + * - |mask-invert| + - mask-invert * - |math-amplitude| - math-amplitude * - |math-average| @@ -289,6 +313,10 @@ Available icons - shape-circle-solid * - |shape-circle| - shape-circle + * - |shape-cross| + - shape-cross + * - |shape-diagonal-directed| + - shape-diagonal-directed * - |shape-diagonal| - shape-diagonal * - |shape-ellipse-solid| @@ -307,6 +335,12 @@ Available icons - shape-vertical * - |silx| - silx + * - |slice-cross| + - slice-cross + * - |slice-horizontal| + - slice-horizontal + * - |slice-vertical| + - slice-vertical * - |sliders-off| - sliders-off * - |sliders-on| @@ -325,6 +359,8 @@ Available icons - tree-collapse-all * - |tree-expand-all| - tree-expand-all + * - |tree-sort| + - tree-sort * - |view-1d| - view-1d * - |view-2d-stack| @@ -365,8 +401,12 @@ Available icons .. |3d-plane-normal-z| image:: ../../../../silx/resources/gui/icons/3d-plane-normal-z.png .. |3d-plane-pan| image:: ../../../../silx/resources/gui/icons/3d-plane-pan.png .. |3d-plane| image:: ../../../../silx/resources/gui/icons/3d-plane.png +.. |add-range-horizontal| image:: ../../../../silx/resources/gui/icons/add-range-horizontal.png .. |add-shape-arc| image:: ../../../../silx/resources/gui/icons/add-shape-arc.png +.. |add-shape-circle| image:: ../../../../silx/resources/gui/icons/add-shape-circle.png +.. |add-shape-cross| image:: ../../../../silx/resources/gui/icons/add-shape-cross.png .. |add-shape-diagonal| image:: ../../../../silx/resources/gui/icons/add-shape-diagonal.png +.. |add-shape-ellipse| image:: ../../../../silx/resources/gui/icons/add-shape-ellipse.png .. |add-shape-horizontal| image:: ../../../../silx/resources/gui/icons/add-shape-horizontal.png .. |add-shape-point| image:: ../../../../silx/resources/gui/icons/add-shape-point.png .. |add-shape-polygon| image:: ../../../../silx/resources/gui/icons/add-shape-polygon.png @@ -381,6 +421,11 @@ Available icons .. |colorbar| image:: ../../../../silx/resources/gui/icons/colorbar.png .. |colormap-histogram| image:: ../../../../silx/resources/gui/icons/colormap-histogram.png .. |colormap-none| image:: ../../../../silx/resources/gui/icons/colormap-none.png +.. |colormap-norm-arcsinh| image:: ../../../../silx/resources/gui/icons/colormap-norm-arcsinh.png +.. |colormap-norm-gamma| image:: ../../../../silx/resources/gui/icons/colormap-norm-gamma.png +.. |colormap-norm-linear| image:: ../../../../silx/resources/gui/icons/colormap-norm-linear.png +.. |colormap-norm-log| image:: ../../../../silx/resources/gui/icons/colormap-norm-log.png +.. |colormap-norm-sqrt| image:: ../../../../silx/resources/gui/icons/colormap-norm-sqrt.png .. |colormap-range| image:: ../../../../silx/resources/gui/icons/colormap-range.png .. |colormap| image:: ../../../../silx/resources/gui/icons/colormap.png .. |compare-align-auto| image:: ../../../../silx/resources/gui/icons/compare-align-auto.png @@ -437,6 +482,9 @@ Available icons .. |item-object| image:: ../../../../silx/resources/gui/icons/item-object.png .. |last| image:: ../../../../silx/resources/gui/icons/last.png .. |layer-nx| image:: ../../../../silx/resources/gui/icons/layer-nx.png +.. |mask-clear-all| image:: ../../../../silx/resources/gui/icons/mask-clear-all.png +.. |mask-clear| image:: ../../../../silx/resources/gui/icons/mask-clear.png +.. |mask-invert| image:: ../../../../silx/resources/gui/icons/mask-invert.png .. |math-amplitude| image:: ../../../../silx/resources/gui/icons/math-amplitude.png .. |math-average| image:: ../../../../silx/resources/gui/icons/math-average.png .. |math-derive| image:: ../../../../silx/resources/gui/icons/math-derive.png @@ -495,6 +543,8 @@ Available icons .. |selected| image:: ../../../../silx/resources/gui/icons/selected.png .. |shape-circle-solid| image:: ../../../../silx/resources/gui/icons/shape-circle-solid.png .. |shape-circle| image:: ../../../../silx/resources/gui/icons/shape-circle.png +.. |shape-cross| image:: ../../../../silx/resources/gui/icons/shape-cross.png +.. |shape-diagonal-directed| image:: ../../../../silx/resources/gui/icons/shape-diagonal-directed.png .. |shape-diagonal| image:: ../../../../silx/resources/gui/icons/shape-diagonal.png .. |shape-ellipse-solid| image:: ../../../../silx/resources/gui/icons/shape-ellipse-solid.png .. |shape-ellipse| image:: ../../../../silx/resources/gui/icons/shape-ellipse.png @@ -504,6 +554,9 @@ Available icons .. |shape-square| image:: ../../../../silx/resources/gui/icons/shape-square.png .. |shape-vertical| image:: ../../../../silx/resources/gui/icons/shape-vertical.png .. |silx| image:: ../../../../silx/resources/gui/icons/silx.png +.. |slice-cross| image:: ../../../../silx/resources/gui/icons/slice-cross.png +.. |slice-horizontal| image:: ../../../../silx/resources/gui/icons/slice-horizontal.png +.. |slice-vertical| image:: ../../../../silx/resources/gui/icons/slice-vertical.png .. |sliders-off| image:: ../../../../silx/resources/gui/icons/sliders-off.png .. |sliders-on| image:: ../../../../silx/resources/gui/icons/sliders-on.png .. |spec| image:: ../../../../silx/resources/gui/icons/spec.png @@ -513,6 +566,7 @@ Available icons .. |stats-whole-items| image:: ../../../../silx/resources/gui/icons/stats-whole-items.png .. |tree-collapse-all| image:: ../../../../silx/resources/gui/icons/tree-collapse-all.png .. |tree-expand-all| image:: ../../../../silx/resources/gui/icons/tree-expand-all.png +.. |tree-sort| image:: ../../../../silx/resources/gui/icons/tree-sort.png .. |view-1d| image:: ../../../../silx/resources/gui/icons/view-1d.png .. |view-2d-stack| image:: ../../../../silx/resources/gui/icons/view-2d-stack.png .. |view-2d| image:: ../../../../silx/resources/gui/icons/view-2d.png diff --git a/doc/source/modules/gui/plot/getting_started.rst b/doc/source/modules/gui/plot/getting_started.rst index 899d262..c105395 100644 --- a/doc/source/modules/gui/plot/getting_started.rst +++ b/doc/source/modules/gui/plot/getting_started.rst @@ -20,7 +20,7 @@ For a complete description of the API, see :mod:`silx.gui.plot`. Use :mod:`silx.gui.plot` from (I)Python console ----------------------------------------------- -We recommend to use (I)Python 3.x and PyQt5. +We recommend to use (I)Python >=3.5 and PyQt5. From a Python or IPython interpreter, the simplest way is to import the :mod:`silx.sx` module: @@ -48,10 +48,6 @@ the way silx loads Qt and the way IPython is doing it through the ``--gui`` opti `%pylab `_ magics. In this case, IPython magics that initialize Qt might not work after importing modules from silx.gui. -When using Python2.7 and PyQt4, there is another incompatibility to deal with as -silx requires PyQt4 API version 2 (See note below for explanation). -In this case, start IPython with the ``QT_API`` environment variable set to ``pyqt``. - On Linux and MacOS X, run from the command line:: QT_API=pyqt ipython @@ -61,16 +57,6 @@ On Windows, run from the command line:: set QT_API=pyqt&&ipython -.. note:: PyQt4 used from Python 2.x provides 2 incompatible versions of QString and QVariant: - - - version 1, the legacy version which is also the default, and - - version 2, a more pythonic one, which is the only one supported by *silx*. - - All other configurations (i.e., PyQt4 on Python 3.x, PySide2, PyQt5, IPython QtConsole widget) uses version 2. - - For more information, see `IPython, PyQt and PySide `_. - - Plot functions ++++++++++++++ diff --git a/doc/source/modules/gui/plot/img/BasicGridStatsWidget.png b/doc/source/modules/gui/plot/img/BasicGridStatsWidget.png index 53ddc0e..bc675f0 100644 Binary files a/doc/source/modules/gui/plot/img/BasicGridStatsWidget.png and b/doc/source/modules/gui/plot/img/BasicGridStatsWidget.png differ diff --git a/doc/source/modules/gui/plot/img/BasicStatsWidget.png b/doc/source/modules/gui/plot/img/BasicStatsWidget.png index c9ed2cd..b0d815d 100644 Binary files a/doc/source/modules/gui/plot/img/BasicStatsWidget.png and b/doc/source/modules/gui/plot/img/BasicStatsWidget.png differ diff --git a/doc/source/modules/gui/plot/img/CurveLegendsWidget.png b/doc/source/modules/gui/plot/img/CurveLegendsWidget.png deleted file mode 100644 index e7fa9f8..0000000 Binary files a/doc/source/modules/gui/plot/img/CurveLegendsWidget.png and /dev/null differ diff --git a/doc/source/modules/gui/plot/img/LimitsToolBar.png b/doc/source/modules/gui/plot/img/LimitsToolBar.png index 54b6c2b..ede66c8 100644 Binary files a/doc/source/modules/gui/plot/img/LimitsToolBar.png and b/doc/source/modules/gui/plot/img/LimitsToolBar.png differ diff --git a/doc/source/modules/gui/plot/img/linearColorbar.png b/doc/source/modules/gui/plot/img/linearColorbar.png deleted file mode 100644 index 26621ce..0000000 Binary files a/doc/source/modules/gui/plot/img/linearColorbar.png and /dev/null differ diff --git a/doc/source/modules/gui/plot/img/logColorbar.png b/doc/source/modules/gui/plot/img/logColorbar.png index c677a9b..cde1ad9 100644 Binary files a/doc/source/modules/gui/plot/img/logColorbar.png and b/doc/source/modules/gui/plot/img/logColorbar.png differ diff --git a/doc/source/modules/gui/plot/index.rst b/doc/source/modules/gui/plot/index.rst index 01cb29b..b6c2000 100644 --- a/doc/source/modules/gui/plot/index.rst +++ b/doc/source/modules/gui/plot/index.rst @@ -54,7 +54,7 @@ Additionnal plot tool widgets: actions/index.rst plottoolbuttons.rst - tools.rst + tools/index.rst profile.rst roi.rst printpreviewtoolbutton.rst diff --git a/doc/source/modules/gui/plot/tools.rst b/doc/source/modules/gui/plot/tools.rst deleted file mode 100644 index d7c96b5..0000000 --- a/doc/source/modules/gui/plot/tools.rst +++ /dev/null @@ -1,120 +0,0 @@ -:mod:`~silx.gui.plot.tools`: Tool widgets for PlotWidget -======================================================== - -.. currentmodule:: silx.gui.plot.tools - -.. automodule:: silx.gui.plot.tools - -:class:`PositionInfo` class ---------------------------- - -.. autoclass:: PositionInfo - :show-inheritance: - :members: - -:class:`LimitsToolBar` class ----------------------------- - -.. autoclass:: LimitsToolBar - :show-inheritance: - :members: - -:class:`InteractiveModeToolBar` class -------------------------------------- - -.. autoclass:: InteractiveModeToolBar - :show-inheritance: - :members: - -:class:`OutputToolBar` class ----------------------------- - -.. autoclass:: OutputToolBar - :show-inheritance: - :members: - -:class:`ImageToolBar` class ----------------------------- - -.. autoclass:: ImageToolBar - :show-inheritance: - :members: - -:class:`CurveToolBar` class ----------------------------- - -.. autoclass:: CurveToolBar - :show-inheritance: - :members: - -:class:`ScatterToolBar` class ------------------------------ - -.. autoclass:: ScatterToolBar - :show-inheritance: - :members: - -:mod:`~silx.gui.plot.tools.CurveLegendsWidget` ----------------------------------------------- - -.. automodule:: silx.gui.plot.tools.CurveLegendsWidget - -.. image:: img/CurveLegendsWidget.png - :align: center - -.. autoclass:: silx.gui.plot.tools.CurveLegendsWidget.CurveLegendsWidget - :show-inheritance: - :members: - -:mod:`~silx.gui.plot.tools.roi`: Region of interest ---------------------------------------------------- - -.. automodule:: silx.gui.plot.tools.roi - -.. currentmodule:: silx.gui.plot.tools.roi - -:class:`RegionOfInterestManager` class -++++++++++++++++++++++++++++++++++++++ - -.. autoclass:: RegionOfInterestManager - :members: - -:class:`InteractiveRegionOfInterestManager` class -+++++++++++++++++++++++++++++++++++++++++++++++++ - -.. autoclass:: InteractiveRegionOfInterestManager - :members: - -:class:`RegionOfInterestTableWidget` class -++++++++++++++++++++++++++++++++++++++++++ - -.. autoclass:: RegionOfInterestTableWidget - :members: - -:mod:`~silx.gui.plot.tools.profile`: Profile Tools --------------------------------------------------- - -.. automodule:: silx.gui.plot.tools.profile - -.. currentmodule:: silx.gui.plot.tools.profile - -:class:`ScatterProfileToolBar` -++++++++++++++++++++++++++++++ - -.. autoclass:: ScatterProfileToolBar - :members: sigProfileChanged, getProfilePoints, getProfileValues, getProfileTitle, getPlotWidget, isDefaultProfileWindowEnabled, setDefaultProfileWindowEnabled, getDefaultProfileWindow, getColor, setColor, clearProfile, getNPoints, setNPoints - -.. currentmodule:: silx.gui.plot - -:mod:`ColorBar`: ColorBar Widget -================================ - -.. currentmodule:: silx.gui.plot.ColorBar - -.. automodule:: silx.gui.plot.ColorBar - -:class:`ColorBarWidget` class ------------------------------ - -.. autoclass:: ColorBarWidget - :members: diff --git a/doc/source/modules/gui/plot/tools/img/CurveLegendsWidget.png b/doc/source/modules/gui/plot/tools/img/CurveLegendsWidget.png new file mode 100644 index 0000000..e7fa9f8 Binary files /dev/null and b/doc/source/modules/gui/plot/tools/img/CurveLegendsWidget.png differ diff --git a/doc/source/modules/gui/plot/tools/img/linearColorbar.png b/doc/source/modules/gui/plot/tools/img/linearColorbar.png new file mode 100644 index 0000000..26621ce Binary files /dev/null and b/doc/source/modules/gui/plot/tools/img/linearColorbar.png differ diff --git a/doc/source/modules/gui/plot/tools/index.rst b/doc/source/modules/gui/plot/tools/index.rst new file mode 100644 index 0000000..c75aea5 --- /dev/null +++ b/doc/source/modules/gui/plot/tools/index.rst @@ -0,0 +1,118 @@ +.. currentmodule:: silx.gui.plot.tools + +:mod:`~silx.gui.plot.tools`: Tool widgets for PlotWidget +======================================================== + +.. automodule:: silx.gui.plot.tools + +Tools API +--------- + +Tools are divided into the following sub-modules: + +.. toctree:: + :maxdepth: 1 + + profile.rst + +Other tools API +--------------- + +:class:`PositionInfo` class +--------------------------- + +.. autoclass:: PositionInfo + :show-inheritance: + :members: + +:class:`LimitsToolBar` class +---------------------------- + +.. autoclass:: LimitsToolBar + :show-inheritance: + :members: + +:class:`InteractiveModeToolBar` class +------------------------------------- + +.. autoclass:: InteractiveModeToolBar + :show-inheritance: + :members: + +:class:`OutputToolBar` class +---------------------------- + +.. autoclass:: OutputToolBar + :show-inheritance: + :members: + +:class:`ImageToolBar` class +---------------------------- + +.. autoclass:: ImageToolBar + :show-inheritance: + :members: + +:class:`CurveToolBar` class +---------------------------- + +.. autoclass:: CurveToolBar + :show-inheritance: + :members: + +:class:`ScatterToolBar` class +----------------------------- + +.. autoclass:: ScatterToolBar + :show-inheritance: + :members: + +:mod:`~silx.gui.plot.tools.CurveLegendsWidget` +---------------------------------------------- + +.. automodule:: silx.gui.plot.tools.CurveLegendsWidget + +.. image:: img/CurveLegendsWidget.png + :align: center + +.. autoclass:: silx.gui.plot.tools.CurveLegendsWidget.CurveLegendsWidget + :show-inheritance: + :members: + +:mod:`~silx.gui.plot.tools.roi`: Region of interest +--------------------------------------------------- + +.. automodule:: silx.gui.plot.tools.roi + +.. currentmodule:: silx.gui.plot.tools.roi + +:class:`RegionOfInterestManager` class +++++++++++++++++++++++++++++++++++++++ + +.. autoclass:: RegionOfInterestManager + :members: + +:class:`InteractiveRegionOfInterestManager` class ++++++++++++++++++++++++++++++++++++++++++++++++++ + +.. autoclass:: InteractiveRegionOfInterestManager + :members: + +:class:`RegionOfInterestTableWidget` class +++++++++++++++++++++++++++++++++++++++++++ + +.. autoclass:: RegionOfInterestTableWidget + :members: + +:mod:`ColorBar`: ColorBar Widget +================================ + +.. currentmodule:: silx.gui.plot.ColorBar + +.. automodule:: silx.gui.plot.ColorBar + +:class:`ColorBarWidget` class +----------------------------- + +.. autoclass:: ColorBarWidget + :members: diff --git a/doc/source/modules/gui/plot/tools/profile.rst b/doc/source/modules/gui/plot/tools/profile.rst new file mode 100644 index 0000000..32d8a26 --- /dev/null +++ b/doc/source/modules/gui/plot/tools/profile.rst @@ -0,0 +1,84 @@ +.. currentmodule:: silx.gui.plot.tools.profile + +:mod:`~silx.gui.plot.tools.profile`: Profile tool for PlotWidget +================================================================ + +.. automodule:: silx.gui.plot.tools.profile + +The profile package is divided into several sub-modules. + +:mod:`~silx.gui.plot.tools.profile.manager` module +-------------------------------------------------- + +.. automodule:: silx.gui.plot.tools.profile.manager + +:class:`ProfileManager` class ++++++++++++++++++++++++++++++ + +.. autoclass:: ProfileManager + :show-inheritance: + :members: + +:class:`ProfileWindow` class +++++++++++++++++++++++++++++ + +.. autoclass:: ProfileWindow + :show-inheritance: + :members: + +:mod:`~silx.gui.plot.tools.profile.editors` module +-------------------------------------------------- + +.. automodule:: silx.gui.plot.tools.profile.editors + +:class:`ProfileRoiEditorAction` class ++++++++++++++++++++++++++++++++++++++ + +.. autoclass:: ProfileRoiEditorAction + :show-inheritance: + :members: + +:mod:`~silx.gui.plot.tools.profile.core` module +----------------------------------------------- + +.. automodule:: silx.gui.plot.tools.profile.core + +:class:`ProfileRoiMixIn` class +++++++++++++++++++++++++++++++ + +.. autoclass:: ProfileRoiMixIn + :show-inheritance: + :members: + +:class:`CurveProfileData` class ++++++++++++++++++++++++++++++++ + +.. autoclass:: CurveProfileData + :show-inheritance: + :members: + + +:class:`ImageProfileData` class ++++++++++++++++++++++++++++++++ + +.. autoclass:: ImageProfileData + :show-inheritance: + :members: + +:mod:`~silx.gui.plot.tools.profile.ScatterProfileToolBar` module +---------------------------------------------------------------- + +.. automodule:: silx.gui.plot.tools.profile.ScatterProfileToolBar + +:class:`ScatterProfileToolBar` +++++++++++++++++++++++++++++++ + +.. autoclass:: ScatterProfileToolBar + :show-inheritance: + :members: + +:mod:`~silx.gui.plot.tools.profile.rois` module +----------------------------------------------- + +.. automodule:: silx.gui.plot.tools.profile.rois + diff --git a/doc/source/modules/gui/widgets/img/FrameBrowser.png b/doc/source/modules/gui/widgets/img/FrameBrowser.png index 3843e70..17b355a 100644 Binary files a/doc/source/modules/gui/widgets/img/FrameBrowser.png and b/doc/source/modules/gui/widgets/img/FrameBrowser.png differ diff --git a/doc/source/modules/gui/widgets/img/HorizontalSliderWithBrowser.png b/doc/source/modules/gui/widgets/img/HorizontalSliderWithBrowser.png index 8cfdb25..96edd3c 100644 Binary files a/doc/source/modules/gui/widgets/img/HorizontalSliderWithBrowser.png and b/doc/source/modules/gui/widgets/img/HorizontalSliderWithBrowser.png differ diff --git a/doc/source/modules/gui/widgets/img/PeriodicCombo.png b/doc/source/modules/gui/widgets/img/PeriodicCombo.png index 4a93e86..644e502 100644 Binary files a/doc/source/modules/gui/widgets/img/PeriodicCombo.png and b/doc/source/modules/gui/widgets/img/PeriodicCombo.png differ diff --git a/doc/source/modules/gui/widgets/img/PeriodicList.png b/doc/source/modules/gui/widgets/img/PeriodicList.png index 42f432e..5ec741f 100644 Binary files a/doc/source/modules/gui/widgets/img/PeriodicList.png and b/doc/source/modules/gui/widgets/img/PeriodicList.png differ diff --git a/doc/source/modules/gui/widgets/img/PeriodicTable.png b/doc/source/modules/gui/widgets/img/PeriodicTable.png index ce52262..a521bd7 100644 Binary files a/doc/source/modules/gui/widgets/img/PeriodicTable.png and b/doc/source/modules/gui/widgets/img/PeriodicTable.png differ diff --git a/doc/source/modules/gui/widgets/img/RangeSlider.png b/doc/source/modules/gui/widgets/img/RangeSlider.png index f552fb3..e7a1011 100644 Binary files a/doc/source/modules/gui/widgets/img/RangeSlider.png and b/doc/source/modules/gui/widgets/img/RangeSlider.png differ diff --git a/doc/source/modules/gui/widgets/img/TableWidget.png b/doc/source/modules/gui/widgets/img/TableWidget.png index b6a4965..de78687 100644 Binary files a/doc/source/modules/gui/widgets/img/TableWidget.png and b/doc/source/modules/gui/widgets/img/TableWidget.png differ diff --git a/doc/source/modules/gui/widgets/img/ThreadPoolPushButton.png b/doc/source/modules/gui/widgets/img/ThreadPoolPushButton.png index 18a7416..5bdebee 100644 Binary files a/doc/source/modules/gui/widgets/img/ThreadPoolPushButton.png and b/doc/source/modules/gui/widgets/img/ThreadPoolPushButton.png differ diff --git a/doc/source/modules/gui/widgets/img/WaitingPushButton.png b/doc/source/modules/gui/widgets/img/WaitingPushButton.png index 4fd3e3c..9bab0fa 100644 Binary files a/doc/source/modules/gui/widgets/img/WaitingPushButton.png and b/doc/source/modules/gui/widgets/img/WaitingPushButton.png differ diff --git a/doc/source/overview.rst b/doc/source/overview.rst index 9e4fc28..93db23a 100644 --- a/doc/source/overview.rst +++ b/doc/source/overview.rst @@ -9,17 +9,17 @@ ManyLinux1. Debian packages of released versions are made available in the following places: - `Wheels and source code on PyPi `_ -- `Debian 8 packages `_ +- `Debian 9 packages `_ - `Documentation on silx.org `_ - :doc:`changelog` Nightly builds -------------- -Debian 8 packages and documentation are automatically generated from the tip of +Debian 9 packages and documentation are automatically generated from the tip of the project's repository on a daily basis: -- `Debian 8 packages `_ +- `Debian 9 packages `_ - `Documentation `_ Project diff --git a/doc/source/sample_code/img/customSilxView.png b/doc/source/sample_code/img/customSilxView.png new file mode 100644 index 0000000..5ffa457 Binary files /dev/null and b/doc/source/sample_code/img/customSilxView.png differ diff --git a/doc/source/sample_code/img/imageStack.png b/doc/source/sample_code/img/imageStack.png new file mode 100644 index 0000000..ac23703 Binary files /dev/null and b/doc/source/sample_code/img/imageStack.png differ diff --git a/doc/source/sample_code/img/plotProfile.png b/doc/source/sample_code/img/plotProfile.png new file mode 100644 index 0000000..2a74338 Binary files /dev/null and b/doc/source/sample_code/img/plotProfile.png differ diff --git a/doc/source/sample_code/index.rst b/doc/source/sample_code/index.rst index 082579b..15bd4c7 100644 --- a/doc/source/sample_code/index.rst +++ b/doc/source/sample_code/index.rst @@ -151,6 +151,15 @@ Widgets --debug Set logging system in debug mode --testdata Use synthetic images to test the application --use-opengl-plot Use OpenGL for plots (instead of matplotlib) + * - :download:`imageStack.py <../../../examples/imageStack.py>` + - .. image:: img/imageStack.png + :width: 150px + - Simple example for using the ImageStack. + + In this example we want to display images from different source: .h5, .edf + and .npy files. + + To do so we simple reimplement the thread managing the loading of data. :class:`silx.gui.plot.actions.PlotAction` @@ -274,6 +283,11 @@ Sample code that adds specific tools or functions to :class:`~silx.gui.plot.Plot .. note:: for now the possible types manged by the Stats are ('curve', 'image', 'scatter' and 'histogram') + * - :download:`plotProfile.py <../../../examples/plotProfile.py>` + - .. image:: img/plotProfile.png + :width: 150px + - Example illustrating the different profile tools. + :class:`~silx.gui.plot.PlotWidget` features ........................................... @@ -346,7 +360,11 @@ Sample code that illustrates some functionalities of :class:`~silx.gui.plot.Plot * - :download:`dropZones.py <../../../examples/dropZones.py>` - .. image:: img/dropZones.png :width: 150px - - Example of drop zone supporting application/x-silx-uri + - Example of drop zone supporting application/x-silx-uri. + + This example illustrates the support of drag&drop of silx URLs. + It provides 2 URLs (corresponding to 2 datasets) that can be dragged to + either a :class:`PlotWidget` or a QLable displaying the URL information. * - :download:`exampleBaseline.py <../../../examples/exampleBaseline.py>` - .. image:: img/exampleBaseline.png :width: 150px @@ -453,3 +471,18 @@ Sample code that illustrates some functionalities of :class:`~silx.gui.plot.Plot .. note:: This module has an optional dependency with sci-kit image library. You might need to install it if you don't already have it. + +:mod:`silx.app` sample code ++++++++++++++++++++++++++++ + +.. list-table:: + :widths: 1 1 4 + :header-rows: 1 + + * - Source + - Screenshot + - Description + * - :download:`customSilxView.py <../../../examples/customSilxView.py>` + - .. image:: img/customSilxView.png + :width: 150px + - Sample code illustrating how to custom silx view into another application. diff --git a/doc/source/troubleshooting.rst b/doc/source/troubleshooting.rst index 95917eb..43cdea2 100644 --- a/doc/source/troubleshooting.rst +++ b/doc/source/troubleshooting.rst @@ -12,7 +12,7 @@ Some widgets in :mod:`silx.gui` are using OpenGL2.1: When running applications based on OpenGL2.1 through ssh, there are a few situations that can prevent the display of OpenGL widgets: - Make sure to use ``ssh -X`` to enable X11 forwarding. -- OpenGL is disabled with X11 forwarding (the default on Debian 8 and 9). See `Enabling OpenGL forwarding`_. +- OpenGL is disabled with X11 forwarding (the default on Debian). See `Enabling OpenGL forwarding`_. - Unless the operating system is using `libglvnd `_ (available from Debian 9 backports onward), both the server and the client computers must have the same kind of GPU drivers diff --git a/doc/source/virtualenv.rst b/doc/source/virtualenv.rst index 3d86617..ccdd9b6 100644 --- a/doc/source/virtualenv.rst +++ b/doc/source/virtualenv.rst @@ -12,30 +12,12 @@ Prerequisites This guide assumes that your system meets the following requirements: - - a version of python compatible with *silx* is installed (python 2.7 or python >= 3.5) + - a version of python compatible with *silx* is installed (Python >= 3.5) - the *pip* installer for python packages is installed - - the Qt and PyQt libraries are installed (optional, required for using ``silx.gui``) Installation procedure ---------------------- - -Install vitrualenv -****************** - -.. code-block:: bash - - pip install virtualenv --user - -.. note:: - - This step is not required for recent version of Python 3. - Virtual environments are created using a builtin standard library, - ``venv``. - On Debian platforms, you might need to install the ``python3-venv`` - package. - - Create a virtualenv ******************* @@ -51,20 +33,12 @@ a virtual environment named ``silx_venv`` cd mkdir -p venvs cd venvs - virtualenv silx_venv - + python -m venv silx_venv A virtualenv contains a copy of your default python interpreter with a few tools to install packages (pip, setuptools). -To use a different python interpreter, you can specify it on the command line. -For example, to use python 3.4: - -.. code-block:: bash - - virtualenv -p /usr/bin/python3.4 silx_venv - -But for python 3 you should use the builtin ``venv`` module: +Virtual environments are created using a builtin standard library, ``venv`` (Python3 only): .. code-block:: bash @@ -72,11 +46,20 @@ But for python 3 you should use the builtin ``venv`` module: .. note:: + On Debian platforms, you might need to install the ``python3-venv`` package. + If you don't need to start with a clean environment and you don't want to install each required library one by one, you can use a command line option to create a virtualenv with access to all system packages: ``--system-site-packages`` +To use a different python interpreter, use it to create the virtual environment. +For example, to use python 3.5: + +.. code-block:: bash + + /usr/bin/python3.5 -m venv silx_venv + Activate a virtualenv ********************* @@ -128,64 +111,28 @@ install *silx*: .. since 0.5, numpy is now automatically installed when doing `pip install silx` -Install optional dependencies -***************************** - -The following command installs libraries that are needed by various modules -of *silx*: - -.. code-block:: bash - - pip install matplotlib fabio h5py - -The next command installs libraries that are used by the python modules -handling parallel computing: - -.. code-block:: bash - - pip install pyopencl mako - - -Install pyqt +Install silx ************ -If your python version is 3.5 or newer, installing PyQt5 and all required packages -is as simple as typing: - -.. code-block:: bash - - pip install PyQt5 - -For previous versions of python, there are no PyQt wheels available, so the installation -is not as simple. - -The simplest way, assuming that PyQt is installed on your system, is to use that -system package directly. For this, you need to add a symbolic link to your virtualenv. - -If you want to use PyQt5 installed in ``/usr/lib/python2.7/dist-packages/``, type: +To install silx with minimal dependencies, run: .. code-block:: bash - ln -s /usr/lib/python2.7/dist-packages/PyQt5 silx_venv/lib/python2.7/site-packages/ - ln -s /usr/lib/python2.7/dist-packages/sip.so silx_venv/lib/python2.7/site-packages/ - + pip install silx -Install silx -************ +To install silx with all dependencies, run: .. code-block:: bash - pip install silx - + pip install silx[full] -To test *silx*, open an interactive python console. If you managed to install PyQt5 or PySide2 -in your virtualenv, type: +To test *silx*, open an interactive python console: .. code-block:: bash python -If you don't have PyQt, use: +If you don't have PyQt5 or PySide2, run: .. code-block:: bash @@ -195,9 +142,3 @@ Run the test suite using: >>> import silx.test >>> silx.test.run_tests() - - - - - - -- cgit v1.2.3