Re: [Matplotlib-users] Best way to modify plot / subplot

2011-02-28 Thread Goyo
David, the preferred way to custom plots seems to be passing an Axes instance to the plotting function. Some tricks allow use of pylab/pyplot style: def custom_plot(x, y, axes=None): ... if axes is None: axes = pyplot.gca() axes.plot(x, y) What you don't get this way is the a

Re: [Matplotlib-users] Best way to modify plot / subplot

2011-02-28 Thread Benjamin Root
On Sun, Feb 27, 2011 at 4:49 PM, David Andrews wrote: > Hi All, > > I'm looking for some suggestions about two problems: > > 1) I'm converting some figure generating code from IDL into > Python/matplotlib. Image attached showing this figure. > IDL being a functional programming language for the