@@ -383,11 +383,12 @@ def add_axes(self, *args, **kwargs):
383383 """
384384 Add an a axes with axes rect [left, bottom, width, height] where all
385385 quantities are in fractions of figure width and height. kwargs are
386- legal Axes kwargs plus"polar" which sets whether to create a polar axes
386+ legal Axes kwargs plus "polar" which sets whether to create a polar axes
387387
388- add_axes((l,b,w,h))
389- add_axes((l,b,w,h), frameon=False, axisbg='g')
390- add_axes((l,b,w,h), polar=True)
388+ rect = l,b,w,h
389+ add_axes(rect)
390+ add_axes(rect, frameon=False, axisbg='g')
391+ add_axes(rect, polar=True)
391392 add_axes(ax) # add an Axes instance
392393
393394
@@ -396,11 +397,11 @@ def add_axes(self, *args, **kwargs):
396397 behavior, eg you want to force the creation of a new axes, you must
397398 use a unique set of args and kwargs. The artist "label" attribute has
398399 been exposed for this purpose. Eg, if you want two axes that are
399- otherwise identical to be added to the axes , make sure you give them
400+ otherwise identical to be added to the figure , make sure you give them
400401 unique labels:
401402
402- add_axes((l,b,w,h), label='1 ')
403- add_axes((l,b,w,h), label='2 ')
403+ add_axes(rect, label='axes1 ')
404+ add_axes(rect, label='axes2 ')
404405
405406 The Axes instance will be returned
406407 """
@@ -496,7 +497,7 @@ def clear(self):
496497
497498 def draw (self , renderer ):
498499 """
499- Render the figure using RendererGD instance renderer
500+ Render the figure using Renderer instance renderer
500501 """
501502 # draw the figure bounding box, perhaps none for white figure
502503 #print 'figure draw'
0 commit comments