MeasurementVisualization1D#

class abtem.visualize.MeasurementVisualization1D(measurements, ax=None, common_scale=True, explode=False, overlay=False, figsize=None, interact=False, **kwargs)[source]#

Bases: abtem.visualize.MeasurementVisualization

__init__(measurements, ax=None, common_scale=True, explode=False, overlay=False, figsize=None, interact=False, **kwargs)[source]#

Methods

__init__(measurements[, ax, common_scale, ...])

adjust_axes_position(rect)

adjust_figure_aspect()

animate([interval, blit, repeat, adjust_scale])

get_global_vmin_vmax([vmin, vmax])

rtype

tuple[float, float]

set_artists(**kwargs)

set_axes_padding([padding])

Set the padding between the axes in an AxesGrid.

set_column_titles([titles, pad, format, ...])

set_ensemble_indices([indices])

Set the indices into the ensemble dimensions to select the visualized ensemble members.

set_legends([loc])

set_panel_labels([labels, frameon, loc, ...])

set_row_titles([titles, shift, format, units])

Set the titles for the rows of the grid of axes.

set_xlabels([label])

set_xlim([xlim])

set_xunits([units])

Set the units for the x-axis.

set_ylabels([label])

set_ylim([ylim])

set_yunits([units])

Set the units for the y-axis.

update_artists()

update_panel_labels()

Attributes

artists

autoscale

axes

axes_types

fig

indices

measurements

ncols

nrows

widgets

set_axes_padding(padding=(0.0, 0.0))#

Set the padding between the axes in an AxesGrid.

Parameters

padding (float or tuple of float) – The padding along columns and rows.

set_ensemble_indices(indices=())#

Set the indices into the ensemble dimensions to select the visualized ensemble members. Interactive visualization are updated.

Parameters

indices (int or tuple of int) –

set_row_titles(titles=None, shift=0.0, format='.3g', units=None, **kwargs)#

Set the titles for the rows of the grid of axes.

Parameters
  • titles (str or list of str, optional) – If given as list, each item is given as a title for a row, the list must have the same length as the number of rows. If given as string the same title is given to all rows. If not given the titles are derived from the axes metadata.

  • shift (float, optional) – Horizontal shift of the title positions.

  • format (str, optional) – String formatting of titles derived from axes metadata.

  • units (str, optional) – The units used for titles derived from axes metadata.

set_xunits(units=None)#

Set the units for the x-axis.

Parameters

units (str) – The name of the units. Must be compatible with existing units.

set_yunits(units=None)#

Set the units for the y-axis.

Parameters

units (str) – The name of the units. Must be compatible with existing units.