Plots#

Pydidas uses ESRF’s silx toolkit for plotting, with some minor additional functionality. The individual plots are presented below:

Pydidas 2D plot#

The PydidasPlot2d is a subclassed silx Plot2d with additional features useful in pydidas.

../../../_images/standard_plot2d.png
  • The menu

    The menu bar allows access to all generic silx and additional pydidas functionality. The detailed menu icons and actions are described below in the menu entries description.

  • The image display

    This widget shows the image data. Depending on the zoom level, this is either the full image or a sub-region.

  • The colorbar

    The colorbar shows the reference for the used colormap to map data levels to colors.

  • The position information

    This widget displays the coordinates and data values of the data under the mouse cursor.

Two-dimensional plots are presented in a silx Plot2D widget. The toolbar options will be explained in detail below. Moving the mouse over the canvas will update the labels for x/y position and data value at the bottom of the canvas. Note that the x and y axis positions for each pixel are defined at the pixel center and the given values must be treated carefully with respect to the pixel shape, especially for coarse pixels.

Tip

Scaling of the results can be achieved by modifying the colormap settings.

Pydidas 1D plot#

The PydidasPlot1d is a subclassed silx Plot1d with additional features useful in pydidas.

../../../_images/standard_plot1d.png
  • The menu

    The menu bar allows access to all generic silx and additional pydidas functionality. The detailed menu icons and actions are described below in the menu entries description.

  • The plot display

    This plot shows the data. Depending on the zoom level, this is either the full image or a sub-region.

  • The position information

    This widget displays the coordinates and data values of the data under the mouse cursor.

Menu entries description#

Menu icon

Description

../../../_images/menu_zoom.png

Zoom mode: clicking with the mouse and dragging spans a new selection of the data to be visualized.

../../../_images/menu_pan.png

Panning mode: clicking with the mouse and dragging moves the data on the canvas.

../../../_images/menu_unzoom.png

Unzoom: Reset the display region to the full data.

../../../_images/menu_zoom_lock.png

or

../../../_images/menu_zoom_unlock.png

Lock the zoom at the current settings. The button will show the current lock state in its icon and description and a click will toggle between the locked and unlocked state. When the zoom is locked, the display region will not change when loading new data.

../../../_images/menu_x_autoscale.png

Activate autoscaling of the x-axis: If enabled, the x-axis will be matched to the data range upon activation or upon using the “Unzoom” button.

../../../_images/menu_y_autoscale.png

Activate autoscaling of the y-axis: If enabled, the y-axis will be matched to the data range upon activation or upon using the “Unzoom” button.

../../../_images/menu_x_log.png

Switch between a linear and a logarithmic x-axis.

../../../_images/menu_y_log.png

Switch between a linear and a logarithmic y-axis.

../../../_images/menu_grid.png

Toggle a grid in the main plotting canvas.

../../../_images/menu_style.png

Change the drawing style. Repeatedly using this button will cycle through lines, dots, and lines & dots styles for the curve.

../../../_images/menu_plot_type_generic.png

or

../../../_images/menu_plot_type_kratky.png

Change the plot style: Switch between a standard y vs. x or a Kratky-type plot. The Kratky-type plot uses y * x^2 for the y and x for the x-axis, respectively. This plot allows, for example, to correct for the q-dependence of the scattering intensity in small angle scattering.

../../../_images/menu_copy_to_clipboard.png

Copy the currently visible figure to the clipboard.

../../../_images/menu_save_to_file.png

Save the currently loaded full data to file, ignoring any zooming. This function will open a dialogue to select the file type and filename. Depending on the selected file type, the colormap and scaling will be retained (e.g. for png export) or ignored (e.g. tiff export).

../../../_images/menu_print.png

Print the currently visible figure. This will print the current canvas (and therefore only the data visible on the canvas).