def test_wireframe(self): surface(show=True, azim=-122, elev=35, alpha=0, lighting=False, antialiased=False, shade=False, edge_color="red", edges_to_rgba=False, line_width=0.5, rstride=12, cstride=12)
def test_surface(self): surface(show=True, azim=-122, elev=35, alpha=1, lighting=False, antialiased=False, shade=False, edge_color="black", edges_to_rgba=True, line_width=0.5, rstride=1, cstride=1)
def test_demo(self): fig = figure((18, 8), backend=backend) ax1 = plt.subplot2grid((2, 6), (0, 0), colspan=2, rowspan=2, projection='3d', facecolor="#fff6e6") ax2 = plt.subplot2grid((2, 6), (0, 3), rowspan=1, aspect=1) ax3 = plt.subplot2grid((2, 6), (1, 3), rowspan=1, aspect=1) ax4 = plt.subplot2grid((2, 6), (0, 5), rowspan=1, aspect=1) ax5 = plt.subplot2grid((2, 6), (1, 5), rowspan=1, aspect=1) surface(fig=fig, ax=ax1, title="Demo", title_size=70, title_weight="bold", title_font="Pump Triline", title_color="#e69300", plot_label="Surface", background_color_plot="#fff6e6", edge_color="lightgrey", edges_to_rgba=True, azim=-160, elev=43) fill_area(fig=fig, ax=ax2, plot_label="Fill", aspect=1, grid=False) quiver(fig=fig, ax=ax3, plot_label="Quiver", grid=False) heatmap(fig=fig, ax=ax4, title="No label", plot_label="Heatmap", grid=False) streamline(fig=fig, ax=ax5, line_density=1, title="No label", plot_label="Streamline", grid=False) custom_canvas2(fig=fig, ax=ax2, background_color_figure="#fff6e6", legend=True, legend_loc=(0.6725, 0.425), resize_axes=False) if show: plt.show()
def test_three_d(self): from mpl_plotter.three_d import line, scatter, surface line(show=True) scatter(show=True) surface(show=True) # Wireframe surface(show=True, alpha=0, line_width=0.5, edge_color="red", cstride=12, rstride=12)
def test_surface(self): surface(show=show, backend=backend, azim=-122, elev=35, alpha=1, demo_pad_plot=True, lighting=False, antialiased=False, shade=False, edge_color="black", edges_to_rgba=True, line_width=0.5, rstride=1, cstride=1, blend_edges=True, pane_fill="red")
""" Antonio Lopez Rivera, 2020 """ from mpl_plotter.three_d import surface surface(show=True, alpha=0, edge_color="white", line_width=0.5, show_axes=False, grid=False, azim=-133, elev=43, rstride=8, cstride=100, figsize=(7, 7), background_color_figure="black", background_color_plot="black")
from mpl_plotter.three_d import surface import numpy as np x = np.linspace(0, 20 * np.pi, 100) y = np.sin(x) x, y = np.meshgrid(x, y) z = np.cos(x + y) surface(x=x, y=y, z=z, show=True, z_bounds=[-5, 5])