pyleecan.Functions.Plot.plot_3D module¶
- plot_3D(Xdata, Ydata, Zdata, x_min=None, x_max=None, y_min=None, y_max=None, z_min=None, z_max=None, title='', xlabel='', ylabel='', zlabel='', xticks=None, yticks=None, fig=None, ax=None, is_logscale_x=False, is_logscale_y=False, is_logscale_z=False, is_disp_title=True, type_plot='stem', color_list=None, colormap=None, save_path=None, is_show_fig=None, win_title=None, is_switch_axes=False)[source]¶
Plots a 3D graph (“stem”, “surf” or “pcolor”)
- Parameters:
Xdata (ndarray) – array of x-axis values
Ydata (ndarray) – array of y-axis values
Zdata (ndarray) – array of z-axis values
colormap (colormap object) – colormap prescribed by user
x_min (float) – minimum value for the x-axis (no automated scaling in 3D)
x_max (float) – maximum value for the x-axis (no automated scaling in 3D)
y_min (float) – minimum value for the y-axis (no automated scaling in 3D)
y_max (float) – maximum value for the y-axis (no automated scaling in 3D)
z_min (float) – minimum value for the z-axis (no automated scaling in 3D)
z_max (float) – maximum value for the z-axis (no automated scaling in 3D)
title (str) – title of the graph
xlabel (str) – label for the x-axis
ylabel (str) – label for the y-axis
zlabel (str) – label for the z-axis
xticks (list) – list of ticks to use for the x-axis
fig (Matplotlib.figure.Figure) – existing figure to use if None create a new one
ax (Matplotlib.axes.Axes object) – ax on which to plot the data
is_logscale_x (bool) – boolean indicating if the x-axis must be set in logarithmic scale
is_logscale_y (bool) – boolean indicating if the y-axis must be set in logarithmic scale
is_logscale_z (bool) – boolean indicating if the z-axis must be set in logarithmic scale
is_disp_title (bool) – boolean indicating if the title must be displayed
type (str) – type of 3D graph : “stem”, “surf”, “pcolor” or “scatter”
save_path (str) – full path including folder, name and extension of the file to save if save_path is not None
is_show_fig (bool) – True to show figure after plot