On Mon, Jan 12, 2009 at 4:35 PM, Michael Hearne <mhea...@usgs.gov> wrote: > Will fontdict continue to be a valid keyword argument for the text() > function? It seems to work now (in version 0.98.5.1), but the help on > this page: > > http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.text > > is ambiguous, as it lists two keyword arguments at the top > ("fontdict","withdash"), but then does NOT show either of those two > under the list of valid kwargs later on.
This is a very old property that we've never removed, but it predates support of kwargs for properties and there is no reason to use it. Just put your properties in a dict if you need to:: d = dict(fontsize=15, color='red') and pass them to text (or xlabel, etc) like:: text(1, 2, 'hi', **d) JDH ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users