Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f238c58

Browse files
authored
Merge pull request #8306 from NelleV/MEP_3d
DOC added titles to the rest of the 3D plots
2 parents 8b6f634 + fa30e20 commit f238c58

10 files changed

+40
-4
lines changed

examples/mplot3d/contour3d_demo.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
'''
2-
Demonstrates plotting contour (level) curves in 3D.
1+
"""
2+
==================================================
3+
Demonstrates plotting contour (level) curves in 3D
4+
==================================================
35
46
This is like a contour plot in 2D except that the f(x,y)=c curve is plotted
57
on the plane z=c.
6-
'''
8+
"""
79

810
from mpl_toolkits.mplot3d import axes3d
911
import matplotlib.pyplot as plt

examples/mplot3d/contour3d_demo2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
'''
2-
Demonstrates plotting contour (level) curves in 3D using the extend3d option.
2+
============================================================================
3+
Demonstrates plotting contour (level) curves in 3D using the extend3d option
4+
============================================================================
35
46
This modification of the contour3d_demo example uses extend3d=True to
57
extend the curves vertically into 'ribbons'.

examples/mplot3d/contour3d_demo3.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
'''
2+
========================================
3+
Projecting contour profiles onto a graph
4+
========================================
5+
26
Demonstrates displaying a 3D surface while also projecting contour 'profiles'
37
onto the 'walls' of the graph.
48

examples/mplot3d/contourf3d_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
'''
2+
===============
3+
Filled contours
4+
===============
5+
26
contourf differs from contour in that it creates filled contours, ie.
37
a discrete number of colours are used to shade the domain.
48

examples/mplot3d/contourf3d_demo2.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
'''
2+
======================================
3+
Projecting filled contour onto a graph
4+
======================================
5+
26
Demonstrates displaying a 3D surface while also projecting filled contour
37
'profiles' onto the 'walls' of the graph.
48

examples/mplot3d/custom_shaded_3d_surface.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
=======================================
3+
Custom hillshading in a 3D surface plot
4+
=======================================
5+
26
Demonstrates using custom hillshading in a 3D surface plot.
37
"""
48

examples/mplot3d/lines3d_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
'''
2+
===================
3+
3D parametric curve
4+
===================
5+
26
Demonstrating plotting a parametric curve in 3D.
37
'''
48

examples/mplot3d/lorenz_attractor.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
'''
2+
====================
3+
The Lorenz Attractor
4+
====================
5+
26
Plot of the Lorenz Attractor based on Edward Lorenz's 1963 "Deterministic
37
Nonperiodic Flow" publication.
48
http://journals.ametsoc.org/doi/abs/10.1175/1520-0469%281963%29020%3C0130%3ADNF%3E2.0.CO%3B2

examples/mplot3d/mixed_subplots_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
==================
3+
2D and 3D subplots
4+
==================
5+
26
Demonstrate the mixing of 2d and 3d subplots.
37
"""
48

examples/mplot3d/offset_demo.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
'''
2+
===================
3+
Offset text display
4+
===================
5+
26
This example demonstrates mplot3d's offset text display.
37
As one rotates the 3D figure, the offsets should remain oriented the
48
same way as the axis label, and should also be located "away"

0 commit comments

Comments
 (0)