summaryrefslogtreecommitdiff
path: root/doc/source
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source')
-rw-r--r--doc/source/conf.py1
-rw-r--r--doc/source/install.rst10
-rw-r--r--doc/source/modules/gui/data/img/ArrayTableWidget.pngbin21097 -> 42383 bytes
-rw-r--r--doc/source/modules/gui/data/img/DataViewer.pngbin20225 -> 38670 bytes
-rw-r--r--doc/source/modules/gui/hdf5/getting_started.rst2
-rw-r--r--doc/source/modules/gui/icons.rst54
-rw-r--r--doc/source/modules/gui/plot/getting_started.rst16
-rw-r--r--doc/source/modules/gui/plot/img/BasicGridStatsWidget.pngbin5702 -> 12081 bytes
-rw-r--r--doc/source/modules/gui/plot/img/BasicStatsWidget.pngbin6575 -> 8699 bytes
-rw-r--r--doc/source/modules/gui/plot/img/LimitsToolBar.pngbin21499 -> 21697 bytes
-rw-r--r--doc/source/modules/gui/plot/img/logColorbar.pngbin5240 -> 11461 bytes
-rw-r--r--doc/source/modules/gui/plot/index.rst2
-rw-r--r--doc/source/modules/gui/plot/tools/img/CurveLegendsWidget.png (renamed from doc/source/modules/gui/plot/img/CurveLegendsWidget.png)bin30043 -> 30043 bytes
-rw-r--r--doc/source/modules/gui/plot/tools/img/linearColorbar.png (renamed from doc/source/modules/gui/plot/img/linearColorbar.png)bin6585 -> 6585 bytes
-rw-r--r--doc/source/modules/gui/plot/tools/index.rst (renamed from doc/source/modules/gui/plot/tools.rst)32
-rw-r--r--doc/source/modules/gui/plot/tools/profile.rst84
-rw-r--r--doc/source/modules/gui/widgets/img/FrameBrowser.pngbin2161 -> 3186 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/HorizontalSliderWithBrowser.pngbin2278 -> 2884 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/PeriodicCombo.pngbin1878 -> 2607 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/PeriodicList.pngbin17621 -> 25731 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/PeriodicTable.pngbin25540 -> 33564 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/RangeSlider.pngbin1024 -> 1028 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/TableWidget.pngbin3156 -> 3789 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/ThreadPoolPushButton.pngbin1577 -> 2151 bytes
-rw-r--r--doc/source/modules/gui/widgets/img/WaitingPushButton.pngbin941 -> 1068 bytes
-rw-r--r--doc/source/overview.rst6
-rw-r--r--doc/source/sample_code/img/customSilxView.pngbin0 -> 93797 bytes
-rw-r--r--doc/source/sample_code/img/imageStack.pngbin0 -> 347747 bytes
-rw-r--r--doc/source/sample_code/img/plotProfile.pngbin0 -> 86902 bytes
-rw-r--r--doc/source/sample_code/index.rst35
-rw-r--r--doc/source/troubleshooting.rst2
-rw-r--r--doc/source/virtualenv.rst97
32 files changed, 219 insertions, 122 deletions
diff --git a/doc/source/conf.py b/doc/source/conf.py
index 18bfce2..86e7bfa 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
--- a/doc/source/modules/gui/data/img/ArrayTableWidget.png
+++ b/doc/source/modules/gui/data/img/ArrayTableWidget.png
Binary files 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
--- a/doc/source/modules/gui/data/img/DataViewer.png
+++ b/doc/source/modules/gui/data/img/DataViewer.png
Binary files 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 <http://ipython.org/ipython-doc/stable/interactive/magics.html#magic-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 <http://ipython.org/ipython-doc/stable/interactive/reference.html#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
--- a/doc/source/modules/gui/plot/img/BasicGridStatsWidget.png
+++ b/doc/source/modules/gui/plot/img/BasicGridStatsWidget.png
Binary files 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
--- a/doc/source/modules/gui/plot/img/BasicStatsWidget.png
+++ b/doc/source/modules/gui/plot/img/BasicStatsWidget.png
Binary files 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
--- a/doc/source/modules/gui/plot/img/LimitsToolBar.png
+++ b/doc/source/modules/gui/plot/img/LimitsToolBar.png
Binary files 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
--- a/doc/source/modules/gui/plot/img/logColorbar.png
+++ b/doc/source/modules/gui/plot/img/logColorbar.png
Binary files 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/img/CurveLegendsWidget.png b/doc/source/modules/gui/plot/tools/img/CurveLegendsWidget.png
index e7fa9f8..e7fa9f8 100644
--- a/doc/source/modules/gui/plot/img/CurveLegendsWidget.png
+++ b/doc/source/modules/gui/plot/tools/img/CurveLegendsWidget.png
Binary files differ
diff --git a/doc/source/modules/gui/plot/img/linearColorbar.png b/doc/source/modules/gui/plot/tools/img/linearColorbar.png
index 26621ce..26621ce 100644
--- a/doc/source/modules/gui/plot/img/linearColorbar.png
+++ b/doc/source/modules/gui/plot/tools/img/linearColorbar.png
Binary files differ
diff --git a/doc/source/modules/gui/plot/tools.rst b/doc/source/modules/gui/plot/tools/index.rst
index d7c96b5..c75aea5 100644
--- a/doc/source/modules/gui/plot/tools.rst
+++ b/doc/source/modules/gui/plot/tools/index.rst
@@ -1,10 +1,23 @@
+.. currentmodule:: silx.gui.plot.tools
+
:mod:`~silx.gui.plot.tools`: Tool widgets for PlotWidget
========================================================
-.. currentmodule:: silx.gui.plot.tools
-
.. 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
---------------------------
@@ -91,21 +104,6 @@
.. 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
================================
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
--- a/doc/source/modules/gui/widgets/img/FrameBrowser.png
+++ b/doc/source/modules/gui/widgets/img/FrameBrowser.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/HorizontalSliderWithBrowser.png
+++ b/doc/source/modules/gui/widgets/img/HorizontalSliderWithBrowser.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/PeriodicCombo.png
+++ b/doc/source/modules/gui/widgets/img/PeriodicCombo.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/PeriodicList.png
+++ b/doc/source/modules/gui/widgets/img/PeriodicList.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/PeriodicTable.png
+++ b/doc/source/modules/gui/widgets/img/PeriodicTable.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/RangeSlider.png
+++ b/doc/source/modules/gui/widgets/img/RangeSlider.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/TableWidget.png
+++ b/doc/source/modules/gui/widgets/img/TableWidget.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/ThreadPoolPushButton.png
+++ b/doc/source/modules/gui/widgets/img/ThreadPoolPushButton.png
Binary files 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
--- a/doc/source/modules/gui/widgets/img/WaitingPushButton.png
+++ b/doc/source/modules/gui/widgets/img/WaitingPushButton.png
Binary files 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 <https://pypi.python.org/pypi/silx>`_
-- `Debian 8 packages <http://www.silx.org/pub/debian/>`_
+- `Debian 9 packages <http://www.silx.org/pub/debian/>`_
- `Documentation on silx.org <http://www.silx.org/doc/silx/latest/>`_
- :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 <http://www.silx.org/pub/debian/>`_
+- `Debian 9 packages <http://www.silx.org/pub/debian/>`_
- `Documentation <http://www.silx.org/doc/silx/dev/>`_
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
--- /dev/null
+++ b/doc/source/sample_code/img/customSilxView.png
Binary files 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
--- /dev/null
+++ b/doc/source/sample_code/img/imageStack.png
Binary files 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
--- /dev/null
+++ b/doc/source/sample_code/img/plotProfile.png
Binary files 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 <https://github.com/NVIDIA/libglvnd/releases>`_
(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()
-
-
-
-
-
-