From bc41fb364459f4da4e9ebd6e6329d50db5ca0dd3 Mon Sep 17 00:00:00 2001 From: amiraflak Date: Tue, 22 Aug 2023 00:03:44 +0000 Subject: [PATCH 1/2] style: match 3D plot types with others --- galleries/plot_types/3D/scatter3d_simple.py | 6 +++--- galleries/plot_types/3D/surface3d_simple.py | 2 +- galleries/plot_types/3D/trisurf3d_simple.py | 6 +++--- galleries/plot_types/3D/voxels_simple.py | 6 +++--- galleries/plot_types/3D/wire3d_simple.py | 6 +++--- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/galleries/plot_types/3D/scatter3d_simple.py b/galleries/plot_types/3D/scatter3d_simple.py index 023a46448ccf..27ffb6abf748 100644 --- a/galleries/plot_types/3D/scatter3d_simple.py +++ b/galleries/plot_types/3D/scatter3d_simple.py @@ -1,7 +1,7 @@ """ -============== -3D scatterplot -============== +=================== +scatter(xs, ys, zs) +=================== See `~mpl_toolkits.mplot3d.axes3d.Axes3D.scatter`. """ diff --git a/galleries/plot_types/3D/surface3d_simple.py b/galleries/plot_types/3D/surface3d_simple.py index b421469b821d..04f74d5edd14 100644 --- a/galleries/plot_types/3D/surface3d_simple.py +++ b/galleries/plot_types/3D/surface3d_simple.py @@ -1,6 +1,6 @@ """ ===================== -3D surface +plot_surface(X, Y, Z) ===================== See `~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_surface`. diff --git a/galleries/plot_types/3D/trisurf3d_simple.py b/galleries/plot_types/3D/trisurf3d_simple.py index 6bf3dc0835d5..6453e3053c44 100644 --- a/galleries/plot_types/3D/trisurf3d_simple.py +++ b/galleries/plot_types/3D/trisurf3d_simple.py @@ -1,7 +1,7 @@ """ -====================== -Triangular 3D surfaces -====================== +===================== +plot_trisurf(x, y, z) +===================== See `~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_trisurf`. """ diff --git a/galleries/plot_types/3D/voxels_simple.py b/galleries/plot_types/3D/voxels_simple.py index c3473e108969..05ce238b0935 100644 --- a/galleries/plot_types/3D/voxels_simple.py +++ b/galleries/plot_types/3D/voxels_simple.py @@ -1,7 +1,7 @@ """ -========================== -3D voxel / volumetric plot -========================== +========================= +voxels([x, y, z], filled) +========================= See `~mpl_toolkits.mplot3d.axes3d.Axes3D.voxels`. """ diff --git a/galleries/plot_types/3D/wire3d_simple.py b/galleries/plot_types/3D/wire3d_simple.py index 8ce1a460617e..1ab847f3ecf4 100644 --- a/galleries/plot_types/3D/wire3d_simple.py +++ b/galleries/plot_types/3D/wire3d_simple.py @@ -1,7 +1,7 @@ """ -================= -3D wireframe plot -================= +======================= +plot_wireframe(X, Y, Z) +======================= See `~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_wireframe`. """ From c912374c26c94cf6246c9f647467393c55159c8a Mon Sep 17 00:00:00 2001 From: amiraflak Date: Tue, 22 Aug 2023 15:45:54 +0000 Subject: [PATCH 2/2] fix: trailing whitespaces --- galleries/plot_types/3D/trisurf3d_simple.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/galleries/plot_types/3D/trisurf3d_simple.py b/galleries/plot_types/3D/trisurf3d_simple.py index 6453e3053c44..b32bd3ebc69a 100644 --- a/galleries/plot_types/3D/trisurf3d_simple.py +++ b/galleries/plot_types/3D/trisurf3d_simple.py @@ -1,7 +1,7 @@ """ ===================== plot_trisurf(x, y, z) -===================== +===================== See `~mpl_toolkits.mplot3d.axes3d.Axes3D.plot_trisurf`. """