Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c2e06b commit ca27821Copy full SHA for ca27821
MANIFEST.in
@@ -15,6 +15,7 @@ include lib/matplotlib/mpl-data/fonts/pdfcorefonts/*
15
include lib/matplotlib/mpl-data/fonts/afm/*
16
recursive-include license LICENSE*
17
recursive-include examples *
18
+recursive-include doc *
19
recursive-include src *.cpp *.c *.h
20
recursive-include CXX *.cxx *.hxx *.c *.h
21
recursive-include agg24 *
doc/make.py
@@ -20,8 +20,7 @@ def sf():
def sfpdf():
22
'push a copy to the sf site'
23
-
24
- #os.system('cd build/latex; scp Matplotlib.pdf [email protected]:/home/groups/m/ma/matplotlib/htdocs/doc/')
+ os.system('cd build/latex; scp Matplotlib.pdf [email protected]:/home/groups/m/ma/matplotlib/htdocs/doc/')
25
26
def figs():
27
os.system('cd users/figures/ && python make.py')
examples/animation/dynamic_demo_wx.py
examples/user_interfaces/embedding_in_wx4.py
@@ -8,11 +8,6 @@
8
9
import matplotlib
10
11
-# uncomment the following to use wx rather than wxagg
12
-#matplotlib.use('WX')
13
-#from matplotlib.backends.backend_wx import FigureCanvasWx as FigureCanvas
14
-# comment out the following to use wx rather than wxagg
matplotlib.use('WXAgg')
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
from matplotlib.backends.backend_wxagg import NavigationToolbar2WxAgg
lib/matplotlib/__init__.py
@@ -89,7 +89,7 @@
89
"""
90
from __future__ import generators
91
92
-__version__ = '0.98.1'
+__version__ = '0.98.2'
93
__revision__ = '$Revision$'
94
__date__ = '$Date$'
95
lib/matplotlib/artist.py
@@ -690,37 +690,43 @@ def pprint_getters(self):
690
return lines
691
692
693
-def getp(o, *args):
+def getp(o, property=None):
694
695
- .. TODO: What are 's' and 'h' arguments described below?
+ Return the value of handle property. property is an optional string
696
+ for the property you want to return
697
- Return the value of handle property s
698
+ Example usage::
699
- h is an instance of a class, eg a Line2D or an Axes or Text.
700
- if s is 'somename', this function returns
+ getp(o) # get all the object properties
701
+ getp(o, 'linestyle') # get the linestyle property
702
+
703
704
+ o is a :class:`Artist` instance, eg
705
+ :class:`~matplotllib.lines.Line2D` or an instance of a
706
+ :class:`~matplotlib.axes.Axes` or :class:`matplotlib.text.Text`.
707
+ If the *property* is 'somename', this function returns
708
709
o.get_somename()
710
711
getp can be used to query all the gettable properties with getp(o)
712
Many properties have aliases for shorter typing, eg 'lw' is an
713
alias for 'linewidth'. In the output, aliases and full property
- names will be listed as:
714
+ names will be listed as::
715
716
property or alias = value
717
- e.g.:
718
+ e.g.::
719
720
linewidth or lw = 2
721
722
723
insp = ArtistInspector(o)
724
- if len(args)==0:
725
+ if property is None:
726
print '\n'.join(insp.pprint_getters())
727
return
728
- name = args[0]
- func = getattr(o, 'get_' + name)
729
+ func = getattr(o, 'get_' + property)
730
return func()
731
732
def get(o, *args, **kwargs):
lib/matplotlib/scale.py
@@ -178,9 +178,7 @@ def __init__(self, axis, **kwargs):
178
*subsx*/*subsy*:
179
Where to place the subticks between each major tick.
180
Should be a sequence of integers. For example, in a log10
181
- scale::
182
183
- [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
+ scale: ``[0, 1, 2, 3, 4, 5, 6, 7, 8, 9]``
184
185
will place 10 logarithmically spaced minor ticks between
186
each major tick.
@@ -291,9 +289,7 @@ def __init__(self, axis, **kwargs):
291
289
292
290
293
294
295
296
297
298
299
0 commit comments