graphorge.ioput.plots.plot_xyz_data

plot_xyz_data(data_xyz, data_labels=None, x_lims=(None, None), y_lims=(None, None), z_lims=(None, None), title=None, x_label=None, y_label=None, z_label=None, x_scale='linear', y_scale='linear', z_scale='linear', x_tick_format=None, y_tick_format=None, z_tick_format=None, view_angles_deg=(30, 30, 0), marker=None, markersize=None, is_latex=False)[source]

Plot data in xyz axes.

Parameters:
  • data_xyz (numpy.ndarray(2d)) – Data array where the plot data is stored columnwise such that the i-th data set (x_i, y_i, z_i) is stored in columns (3*i, 3*i + 1, 3*i + 2), respectively.

  • data_labels (list, default=None) – Labels of data sets (x_i, y_i, z_i) provided in data_xyz and sorted accordingly. If None, then no labels are displayed.

  • x_lims (tuple, default=(None, None)) – x-axis limits in data coordinates.

  • y_lims (tuple, default=(None, None)) – y-axis limits in data coordinates.

  • z_lims (tuple, default=(None, None)) – z-axis limits in data coordinates.

  • title (str, default=None) – Plot title.

  • x_label (str, default=None) – x-axis label.

  • y_label (str, default=None) – y-axis label.

  • z_label (str, default=None) – z-axis label.

  • x_scale (str {'linear', 'log'}, default='linear') – x-axis scale. If None or invalid format, then default scale is set. Scale ‘log’ overrides any x-axis ticks formatting.

  • y_scale (str {'linear', 'log'}, default='linear') – y-axis scale. If None or invalid format, then default scale is set. Scale ‘log’ overrides any y-axis ticks formatting.

  • z_scale (str {'linear', 'log'}, default='linear') – z-axis scale. If None or invalid format, then default scale is set. Scale ‘log’ overrides any y-axis ticks formatting.

  • x_tick_format ({'int', 'float', 'exp'}, default=None) – x-axis ticks formatting. If None or invalid format, then default formatting is set.

  • y_tick_format ({'int', 'float', 'exp'}, default=None) – y-axis ticks formatting. If None or invalid format, then default formatting is set.

  • z_tick_format ({'int', 'float', 'exp'}, default=None) – z-axis ticks formatting. If None or invalid format, then default formatting is set.

  • view_angles_deg (tuple[float], default=None) – Elevation (0), aximuth (1) and roll angles (2) that define the view angle of the 3D plot (defined in degrees).

  • marker (str, default=None) – Marker type.

  • markersize (float, default=None) – Marker size in points.

  • is_latex (bool, default=False) – If True, then render all strings in LaTeX. If LaTex is not available, then this option is silently set to False and all input strings are processed to remove $(…)$ enclosure.

Returns:

  • figure (Matplotlib Figure) – Figure.

  • axes (Matplotlib Axes) – Axes.