|
From: Benjamin R. <ben...@ou...> - 2011-06-04 20:58:10
|
On Saturday, June 4, 2011, Eric Firing <ef...@ha...> wrote: > On 06/04/2011 06:05 AM, Benjamin Root wrote: >> On Sat, Jun 4, 2011 at 9:09 AM, Phil Elson <phi...@ho... >> <mailto:phi...@ho...>> wrote: >> >> >> The first line of code on the page >> http://matplotlib.sourceforge.net/devel/add_new_projection.html suggests >> that it is possible to give the projection directly to >> mpl.pyplot.plot but >> this does not work for me. >> >> Should this functionality exist? I am aware that the pyplot.plot >> function is >> autogenerated by boilerplate.py, but I am a little weary of >> modifying that. >> >> Any help gratefully received. >> >> >> Hmm, this doesn't seem 100% logically correct. I think the only case >> where this would work correctly is if the plot command would also >> trigger the creation of a new axes object. If the axes object already >> exists, then I seriously doubt this would work as advertised. Is that >> the case with your code? >> >> Ben Root > > Ben, > > The first paragraph of that doc page needs repair. Trivially, there are > two references to set_xscale. The problem pointed out above is more > serious. plot() has no facility for handling a projection kwarg, and I > don't think it would make sense to try to add one. pyplot functions > that accept the projection kwarg are axes, subplot, and subplots. > > Do you want to fix the paragraph, or should I? > I can take a look at it tonight. > Independently, I want to redo the FAQ discussion of draw(), show(), and > interactive versus non-interactive mode. It is possible that this topic > needs more attention elsewhere as well, but I want to start with the FAQ. > > Eric > Agreed, these are some fundamental functions and probably be set apart in a "getting started" section, maybe? Ben Root |