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

Skip to content

Commit 31dd679

Browse files
committed
Fix reST formatting.
svn path=/trunk/matplotlib/; revision=6748
1 parent cc1d4dc commit 31dd679

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

lib/matplotlib/patches.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -249,12 +249,10 @@ def set_hatch(self, hatch):
249249
hatchings are done. If same letter repeats, it increases the
250250
density of hatching of that pattern.
251251
252-
CURRENT LIMITATIONS:
252+
Hatching is supported in the PostScript, PDF, SVG and Agg
253+
backends only.
253254
254-
1. Hatching is supported in the PostScript, PDF, SVG and Agg
255-
backends only.
256-
257-
ACCEPTS: [ '/' | '\\' | '|' | '-' | '+' | 'x' | 'o' | 'O' | '.' | ' *' ]
255+
ACCEPTS: [ '/' | '\\' | '|' | '-' | '+' | 'x' | 'o' | 'O' | '.' | '*' ]
258256
"""
259257
self._hatch = hatch
260258

@@ -1444,8 +1442,8 @@ def _pprint_styles(_styles, leadingspace=2):
14441442
else:
14451443
argstr = ",".join([("%s=%s" % (an, av)) for an, av in args])
14461444

1447-
#adding quotes for now to work around tex bug treating '-' as itemize
1448-
_table.append([cls.__name__, "'%s'"%name, argstr])
1445+
#adding ``quotes`` since - and | have special meaning in reST
1446+
_table.append([cls.__name__, "``%s``"%name, argstr])
14491447

14501448
return _pprint_table(_table)
14511449

0 commit comments

Comments
 (0)