Skip to content

Commit 5c6f2a1

Browse files
committed
Merge pull request matplotlib#2242 from endolith/patch-3
DOC:Use monospace for --
2 parents 7a9f234 + fed76d5 commit 5c6f2a1

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

doc/users/pyplot_tutorial.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -104,25 +104,25 @@ clip_on [True | False]
104104
clip_path a Path instance and a Transform instance, a Patch
105105
color or c any matplotlib color
106106
contains the hit testing function
107-
dash_capstyle ['butt' | 'round' | 'projecting']
108-
dash_joinstyle ['miter' | 'round' | 'bevel']
107+
dash_capstyle [``'butt'`` | ``'round'`` | ``'projecting'``]
108+
dash_joinstyle [``'miter'`` | ``'round'`` | ``'bevel'``]
109109
dashes sequence of on/off ink in points
110110
data (np.array xdata, np.array ydata)
111111
figure a matplotlib.figure.Figure instance
112112
label any string
113-
linestyle or ls [ '-' | '--' | '-.' | ':' | 'steps' | ...]
113+
linestyle or ls [ ``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` | ``'steps'`` | ...]
114114
linewidth or lw float value in points
115115
lod [True | False]
116-
marker [ '+' | ',' | '.' | '1' | '2' | '3' | '4'
116+
marker [ ``'+'`` | ``','`` | ``'.'`` | ``'1'`` | ``'2'`` | ``'3'`` | ``'4'`` ]
117117
markeredgecolor or mec any matplotlib color
118118
markeredgewidth or mew float value in points
119119
markerfacecolor or mfc any matplotlib color
120120
markersize or ms float
121-
markevery None | integer | (startind, stride)
121+
markevery [ None | integer | (startind, stride) ]
122122
picker used in interactive line selection
123123
pickradius the line pick selection radius
124-
solid_capstyle ['butt' | 'round' | 'projecting']
125-
solid_joinstyle ['miter' | 'round' | 'bevel']
124+
solid_capstyle [``'butt'`` | ``'round'`` | ``'projecting'``]
125+
solid_joinstyle [``'miter'`` | ``'round'`` | ``'bevel'``]
126126
transform a matplotlib.transforms.Transform instance
127127
visible [True | False]
128128
xdata np.array

doc/users/text_props.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,29 +13,29 @@ Property Value Type
1313
========================== ==============================================================================
1414
alpha float
1515
backgroundcolor any matplotlib color
16-
bbox rectangle prop dict plus key 'pad' which is a pad in points
16+
bbox rectangle prop dict plus key ``'pad'`` which is a pad in points
1717
clip_box a matplotlib.transform.Bbox instance
1818
clip_on [True | False]
1919
clip_path a Path instance and a Transform instance, a Patch
2020
color any matplotlib color
21-
family [ 'serif' | 'sans-serif' | 'cursive' | 'fantasy' | 'monospace' ]
21+
family [ ``'serif'`` | ``'sans-serif'`` | ``'cursive'`` | ``'fantasy'`` | ``'monospace'`` ]
2222
fontproperties a matplotlib.font_manager.FontProperties instance
23-
horizontalalignment or ha [ 'center' | 'right' | 'left' ]
23+
horizontalalignment or ha [ ``'center'`` | ``'right'`` | ``'left'`` ]
2424
label any string
2525
linespacing float
26-
multialignment ['left' | 'right' | 'center' ]
27-
name or fontname string eg, ['Sans' | 'Courier' | 'Helvetica' ...]
26+
multialignment [``'left'`` | ``'right'`` | ``'center'`` ]
27+
name or fontname string eg, [``'Sans'`` | ``'Courier'`` | ``'Helvetica'`` ...]
2828
picker [None|float|boolean|callable]
2929
position (x,y)
30-
rotation [ angle in degrees 'vertical' | 'horizontal'
31-
size or fontsize [ size in points | relative size eg 'smaller', 'x-large' ]
32-
style or fontstyle [ 'normal' | 'italic' | 'oblique']
30+
rotation [ angle in degrees ``'vertical'`` | ``'horizontal'``
31+
size or fontsize [ size in points | relative size eg ``'smaller'``, ``'x-large'`` ]
32+
style or fontstyle [ ``'normal'`` | ``'italic'`` | ``'oblique'``]
3333
text string or anything printable with '%s' conversion
3434
transform a matplotlib.transform transformation instance
35-
variant [ 'normal' | 'small-caps' ]
36-
verticalalignment or va [ 'center' | 'top' | 'bottom' | 'baseline' ]
35+
variant [ ``'normal'`` | ``'small-caps'`` ]
36+
verticalalignment or va [ ``'center'`` | ``'top'`` | ``'bottom'`` | ``'baseline'`` ]
3737
visible [True | False]
38-
weight or fontweight [ 'normal' | 'bold' | 'heavy' | 'light' | 'ultrabold' | 'ultralight']
38+
weight or fontweight [ ``'normal'`` | ``'bold'`` | ``'heavy'`` | ``'light'`` | ``'ultrabold'`` | ``'ultralight'``]
3939
x float
4040
y float
4141
zorder any number

0 commit comments

Comments
 (0)