Skip to content

changes to MEP12/sphinx-gallery compliant #8233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions examples/mplot3d/2dcollections3d_demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
'''
Demonstrates using ax.plot's zdir keyword to plot 2D scatterplot data on
"""
=======================
Plot 2D data on 3D plot
=======================

Demonstrates using ax.plot's zdir keyword to plot 2D data on
selective axes of a 3D plot.
'''
"""

from mpl_toolkits.mplot3d import Axes3D
import numpy as np
Expand Down
8 changes: 6 additions & 2 deletions examples/mplot3d/bars3d_demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
'''
"""
========================================
Create 2D bar graphs in different planes
========================================

Demonstrates making a 3D plot which has 2D bar graphs projected onto
planes y=0, y=1, etc.
'''
"""

from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
Expand Down
8 changes: 6 additions & 2 deletions examples/mplot3d/hist3d_demo.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
'''
"""
==============================
Create 3D histogram of 2D data
==============================

Demo of a histogram for 2 dimensional data as a bar graph in 3D.
'''
"""

from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
Expand Down
9 changes: 7 additions & 2 deletions examples/mplot3d/pathpatch3d_demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
'''
"""
============================
Draw flat objects in 3D plot
============================

Demonstrate using pathpatch_2d_to_3d to 'draw' shapes and text on a 3D plot.
'''
"""

import numpy as np
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder how this example even ran without numpy…

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It did not, so the question is, why was it not picked up by the gallery?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That is super wierd…

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you open an issue to track this?

import matplotlib.pyplot as plt
from matplotlib.patches import Circle, PathPatch
# register Axes3D class with matplotlib by importing Axes3D
Expand Down
13 changes: 9 additions & 4 deletions examples/mplot3d/polys3d_demo.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
'''
Demonstrate how to create semi-transparent polygons which fill the space
under a line graph, creating a sort of 'jagged stained glass' effect.
'''
"""
=============================================
Generate polygons to fill under 3D line graph
=============================================

Demonstrate how to create polygons which fill the space under a line
graph. In this example polygons are semi-transparent, creating a sort
of 'jagged stained glass' effect.
"""

from mpl_toolkits.mplot3d import Axes3D
from matplotlib.collections import PolyCollection
Expand Down