From: <jo...@us...> - 2009-04-26 10:29:37
|
Revision: 7066 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7066&view=rev Author: jouni Date: 2009-04-26 10:29:30 +0000 (Sun, 26 Apr 2009) Log Message: ----------- Mention rotate kwarg in xticks and yticks docstrings Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/pyplot.py Modified: trunk/matplotlib/lib/matplotlib/pyplot.py =================================================================== --- trunk/matplotlib/lib/matplotlib/pyplot.py 2009-04-24 22:44:34 UTC (rev 7065) +++ trunk/matplotlib/lib/matplotlib/pyplot.py 2009-04-26 10:29:30 UTC (rev 7066) @@ -983,7 +983,9 @@ xticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') ) The keyword args, if any, are :class:`~matplotlib.text.Text` - properties. + properties. For example, to rotate long labels:: + + xticks( arange(12), calendar.month_name[1:13], rotation=17 ) """ ax = gca() @@ -1019,7 +1021,9 @@ yticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') ) The keyword args, if any, are :class:`~matplotlib.text.Text` - properties. + properties. For example, to rotate long labels:: + + yticks( arange(12), calendar.month_name[1:13], rotation=45 ) """ ax = gca() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |