silx.sx
: Using silx from Python Interpreter¶
This is a convenient package to use from Python or IPython interpreter. It loads the main features of silx and provides high-level functions.
>>> from silx import sx
When used in an interpreter is sets-up Qt and loads some silx widgets. In a jupyter / IPython notebook, to set-up Qt and loads silx widgets, you must then call:
>>> sx.enable_gui()
When used in IPython, it also runs %pylab
,
thus importing numpy and
matplotlib.
Plot functions¶
The following functions plot curves and images with silx widgets:
plot()
for curvesimshow()
for imagesscatter()
for scatter plot
The ginput()
function handles user selection on those widgets.
Note
Those functions are not available from a notebook.
plot()
¶
imshow()
¶
scatter()
¶
ginput()
¶
3D plot functions¶
The following functions plot 3D data with silx widgets (it requires OpenGL):
contour3d()
for isosurfaces (and cut plane) in a 3D scalar fieldpoints3d()
for 2D/3D scatter plots
Note
Those functions are not available from a notebook.
contour3d()
¶
points3d()
¶
Widgets¶
The widgets of the silx.gui.plot
package are also exposed in this package.
See silx.gui.plot
for documentation.
Input/Output¶
The content of the silx.io
package is also exposed in this package.
See silx.io
for documentation.