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

Skip to content

Commit bde83d4

Browse files
committed
DOC MEP12 - converted lines, bars and markers to SG/MEP12 compatible
1 parent 4c5fca7 commit bde83d4

File tree

11 files changed

+42
-14
lines changed

11 files changed

+42
-14
lines changed

doc/users/screenshots.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ command, which includes customizations such as error bars:
103103
It's also simple to create stacked bars
104104
(`bar_stacked.py <../examples/pylab_examples/bar_stacked.html>`_),
105105
or horizontal bar charts
106-
(`barh_demo.py <../examples/lines_bars_and_markers/barh_demo.html>`_).
106+
(`plot_barh.py <../examples/lines_bars_and_markers/plot_barh.html>`_).
107107

108108
.. _screenshots_pie_demo:
109109

@@ -166,7 +166,7 @@ Fill demo
166166
The :func:`~matplotlib.pyplot.fill` command lets you
167167
plot filled curves and polygons:
168168

169-
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
169+
.. plot:: mpl_examples/lines_bars_and_markers/plot_fill.py
170170

171171
Thanks to Andrew Straw for adding this function.
172172

examples/lines_bars_and_markers/barh_demo.py renamed to examples/lines_bars_and_markers/plot_barh.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""
2-
Simple demo of a horizontal bar chart.
2+
====================
3+
Horizontal bar chart
4+
====================
5+
6+
This example showcases a simple horizontal bar chart.
37
"""
48
import matplotlib.pyplot as plt
59
import numpy as np

examples/lines_bars_and_markers/fill_demo.py renamed to examples/lines_bars_and_markers/plot_fill.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""
2-
Simple demo of the fill function.
2+
==================
3+
A simple Fill plot
4+
==================
5+
6+
This example showcases the most basic fill plot a user can do with matplotlib.
37
"""
48
import numpy as np
59
import matplotlib.pyplot as plt

examples/lines_bars_and_markers/fill_demo_features.py renamed to examples/lines_bars_and_markers/plot_fill_features.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""
2-
Demo of the fill function with a few features.
2+
========================
3+
A more complex fill demo
4+
========================
35
46
In addition to the basic fill plot, this demo shows a few optional features:
57

examples/lines_bars_and_markers/line_demo_dash_control.py renamed to examples/lines_bars_and_markers/plot_line_dash_control.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
"""
2-
Demo of a simple plot with a custom dashed line.
2+
=======================================
3+
A simple plot with a custom dashed line
4+
=======================================
35
46
A Line object's ``set_dashes`` method allows you to specify dashes with
57
a series of on/off lengths (in points).

examples/lines_bars_and_markers/line_styles_reference.py renamed to examples/lines_bars_and_markers/plot_line_styles_reference.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
====================
3+
Line-style reference
4+
====================
5+
26
Reference for line-styles included with Matplotlib.
37
"""
48
import numpy as np

examples/lines_bars_and_markers/linestyles.py renamed to examples/lines_bars_and_markers/plot_linestyles.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
"""
2-
Different linestyles copying those of Tikz/PGF
2+
==========
3+
Linestyles
4+
==========
5+
6+
This examples showcases different linestyles copying those of Tikz/PGF.
37
"""
48
import numpy as np
59
import matplotlib.pyplot as plt

examples/lines_bars_and_markers/marker_fillstyle_reference.py renamed to examples/lines_bars_and_markers/plot_marker_fillstyle_reference.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
=====================
3+
Marker filling-styles
4+
=====================
5+
26
Reference for marker fill-styles included with Matplotlib.
37
"""
48
import numpy as np

examples/lines_bars_and_markers/marker_reference.py renamed to examples/lines_bars_and_markers/plot_marker_reference.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""
2+
================================
3+
Filled and unfilled-marker types
4+
================================
5+
26
Reference for filled- and unfilled-marker types included with Matplotlib.
37
"""
48
from six import iteritems

examples/tests/backend_driver.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
from __future__ import print_function, division
21
"""
32
This is used to drive many of the examples across the backends, for
43
regression testing, and comparing backend efficiency.
@@ -18,6 +17,7 @@
1817
switches with a --.
1918
"""
2019

20+
from __future__ import print_function, division
2121
import os
2222
import time
2323
import sys
@@ -51,11 +51,11 @@
5151
files = dict()
5252

5353
files['lines'] = [
54-
'barh_demo.py',
55-
'fill_demo.py',
56-
'fill_demo_features.py',
57-
'line_demo_dash_control.py',
58-
'line_styles_reference.py',
54+
'plot_barh.py',
55+
'plot_fill.py',
56+
'plot_fill_features.py',
57+
'plot_line_dash_control.py',
58+
'plot_line_styles_reference.py',
5959
'scatter_with_legend.py'
6060
]
6161

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4679,7 +4679,7 @@ def fill(self, *args, **kwargs):
46794679
46804680
Examples
46814681
--------
4682-
.. plot:: mpl_examples/lines_bars_and_markers/fill_demo.py
4682+
.. plot:: mpl_examples/lines_bars_and_markers/plot_fill.py
46834683
46844684
46854685
"""

0 commit comments

Comments
 (0)