DataViewerFrame: Widget to display any kind of data

This module contains a DataViewer with a view selector.

class silx.gui.data.DataViewerFrame.DataViewerFrame(parent=None)[source]

A DataViewer with a view selector.

../../../_images/DataViewerFrame.png

This widget provides the same API as DataViewer. Therefore, for more documentation, take a look at the documentation of the class DataViewer.

import numpy
data = numpy.random.rand(500,500)
viewer = DataViewerFrame()
viewer.setData(data)
viewer.setVisible(True)
displayedViewChanged

Emitted when the displayed view changes

dataChanged

Emitted when the data changes

currentAvailableViews()[source]

Returns the list of available views for the current data

Return type:List[DataView]
setData(data)[source]

Set the data to view.

It mostly can be a h5py.Dataset or a numpy.ndarray. Other kind of objects will be displayed as text rendering.

Parameters:data (numpy.ndarray) – The data.
data()[source]

Returns the data

setDisplayMode(modeId)[source]

Set the displayed view using display mode.

Change the displayed view according to the requested mode.

Parameters:modeId (int) –

Display mode, one of

  • EMPTY_MODE: display nothing
  • PLOT1D_MODE: display the data as a curve
  • PLOT2D_MODE: display the data as an image
  • TEXT_MODE: display the data as a text
  • ARRAY_MODE: display the data as a table

Previous topic

ArrayTableWidget: Browsing Numpy arrays

Next topic

DataViewer: Widget to display any kind of data

This Page