John Hunter wrote:
[...]
I am in the process of changing your shiny new kwdocd machinery
slightly. I added artist.kwdoc so that
> artist.kwdocd['Line2D'] =
> '\n'.join(artist.ArtistInspector(Line2D).pprint_setters(leadingspace=12))
>
becomes
artist.kwdocd['Line2D'] = artist.kwdoc(Line2D)
> Then in any function accepting Line2D passthrough kwargs, eg
> matplotlib.axes.Axes.plot
>
> def plot(self, *args, **kwargs):
> """
> Some stuff omitted
>
> The kwargs are Line2D properties:
> %(Line2D)s
and the line above is changed to be indented the same as the rest of the
string (improves readability to my eye)
>
> kwargs scalex and scaley, if defined, are passed on
> to autoscale_view to determine whether the x and y axes are
> autoscaled; default True. See Axes.autoscale_view for more
> information
> """
> pass
because this
> plot.__doc__ = plot.__doc__ % artist.kwdocd
becomes
plot.__doc__ = dedent(plot.__doc__) % artist.kwdocd
where dedent is now in cbook.py
I can continue making the necessary changes if that is OK with you, but
I don't want our versions to get tangled up if you are still working on
this aspect, or if you don't like the strategy modification outlined
above. I committed dedent but not the other changes.
Eric
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel