hookeai.ioput.plots.plot_surface_xyz_data¶
- plot_surface_xyz_data(x_mesh, y_mesh, z_mesh, colormap='viridis', x_lims=(None, None), y_lims=(None, None), z_lims=(None, None), title=None, x_label=None, y_label=None, z_label=None, 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 surface data in xyz axes.
- Parameters:
x_mesh (numpy.ndarray(2d)) – Mesh grid x-coordinates.
y_mesh (numpy.ndarray(2d)) – Mesh grid y-coordinates.
z_mesh (numpy.ndarray(2d)) – Mesh grid z-coordinates.
colormap (str, default='viridis') – Surface plot colormap.
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_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=(30, 30, 0)) – 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.