fontdict keyword argument to text() function

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.

Thanks,

Mike

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

···

On Mon, Jan 12, 2009 at 4:35 PM, Michael Hearne <mhearne@...924...> 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.