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

Skip to content

Commit 92cb629

Browse files
committed
tried to fix some api table formatting problems but these apparently were not the ones triggering the sphinx doc warnings. we need to figure out a way to make sphinx generate some context in its api warnings since the line numbers are not helpful
svn path=/trunk/matplotlib/; revision=5399
1 parent 005c365 commit 92cb629

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,6 +747,8 @@ def set_position(self, pos, which='both'):
747747
Optional keyword arguments:
748748
which:
749749
750+
========== ====================
751+
value description
750752
========== ====================
751753
'active' to change the first
752754
'original' to change the second
@@ -913,6 +915,8 @@ def set_aspect(self, aspect, adjustable=None, anchor=None):
913915
"""
914916
aspect:
915917
918+
======== ================================================
919+
value description
916920
======== ================================================
917921
'auto' automatic; fill position rectangle with data
918922
'normal' same as 'auto'; deprecated
@@ -924,13 +928,17 @@ def set_aspect(self, aspect, adjustable=None, anchor=None):
924928
925929
adjustable:
926930
931+
======== ============================
932+
value description
927933
======== ============================
928934
'box' change physical size of axes
929935
'datalim' change xlim or ylim
930936
======== ============================
931937
932938
anchor:
933939
940+
==== =====================
941+
value description
934942
==== =====================
935943
'C' centered
936944
'SW' lower left corner
@@ -971,7 +979,9 @@ def set_anchor(self, anchor):
971979
"""
972980
anchor:
973981
974-
==== ============
982+
===== ============
983+
value description
984+
===== ============
975985
'C' Center
976986
'SW' bottom left
977987
'S' bottom
@@ -981,7 +991,7 @@ def set_anchor(self, anchor):
981991
'N' top
982992
'NW' top left
983993
'W' left
984-
==== ============
994+
===== ============
985995
986996
"""
987997
if anchor in mtransforms.Bbox.coefs.keys() or len(anchor) == 2:

lib/matplotlib/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1024,7 +1024,7 @@ def __init__(self, s, xy,
10241024
in cartesian plots. Note that if you
10251025
are using a polar axes, you do not need
10261026
to specify polar for the coordinate
1027-
system since that is the native"data" coordinate
1027+
system since that is the native "data" coordinate
10281028
system.
10291029
================= ===================================================
10301030

0 commit comments

Comments
 (0)