graphorge.ioput.plots.plot_xy2_data

plot_xy2_data(data_xy1, data_xy2, x_lims=(None, None), y1_lims=(None, None), y2_lims=(None, None), title=None, x_label=None, y1_label=None, y2_label=None, x_scale='linear', y1_scale='linear', y2_scale='linear', x_tick_format=None, y1_tick_format=None, y2_tick_format=None, is_latex=False)[source]

Plot data in xy axes with two y axes.

Parameters:
  • data_xy1 (numpy.ndarray(2d)) – Data array containing the plot data associated with the first y-axis stored columnwise as (x_i, y_i).

  • data_xy2 (numpy.ndarray(2d)) – Data array containing the plot data associated with the second y-axis stored columnwise as (x_i, y_i).

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

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

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

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

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

  • y1_label (str, default=None) – y1-axis label.

  • y2_label (str, default=None) – y2-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.

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

  • y2_scale (str {'linear', 'log'}, default='linear') – y2-axis scale. If None or invalid format, then default scale is set. Scale ‘log’ overrides any y2-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.

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

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

  • 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.