Re: [matplotlib-devel] performance (speed) of logarithmic plots

2010-03-19 Thread Gökhan Sever
On Thu, Mar 18, 2010 at 6:21 PM, Andrew Hawryluk wrote: > I've observed a significant difference in the time required by different > plotting functions. With a plot of 5000 random data points (all > positive, non-zero), plt.semilogx takes 3.5 times as long as plt.plot. > (Data for the case of savi

Re: [matplotlib-devel] performance (speed) of logarithmic plots

2010-03-19 Thread Andrew Hawryluk
> Hello, > How did you get the cumtime listing? The output of the run doesn't produce a > cumulative sum table as you showed here. > Gökhan No, it doesn't. The output of the run is four huge cProfile listings, one for each plotting command tested. I manually searched the data for long cumtime's

Re: [matplotlib-devel] performance (speed) of logarithmic plots

2010-03-19 Thread Michael Droettboom
This is indeed a very interesting result and I am able to reproduce similar ratios for total running time. However, I think the semilogx result is somewhat of a red herring. If you change the order of the tests in your script, you'll notice that the first "*log*" plot always takes the longest

[matplotlib-devel] Elusive bug plotting masked arrays

2010-03-19 Thread David J. Raymond
I am trying to plot two 1-D masked arrays against each other in a line plot and an extraneous straight line appears on the plot. This phenomenon only occurs sporadically and with certain data sets. I have noticed a similar phenomenon with masked arrow arrays, but that is much harder to track down

Re: [matplotlib-devel] Elusive bug plotting masked arrays

2010-03-19 Thread Jeff Whitaker
On 3/19/10 11:10 AM, David J. Raymond wrote: I am trying to plot two 1-D masked arrays against each other in a line plot and an extraneous straight line appears on the plot. This phenomenon only occurs sporadically and with certain data sets. I have noticed a similar phenomenon with masked arro

Re: [matplotlib-devel] An easier way to create figure and group of axes; useful?

2010-03-19 Thread Christopher Barker
Fernando Perez wrote: > I personally think that > this should be the way to use mpl in general when scripting, and the > way I want to teach, + Inf ! I've wanted to do this for years (make a easier way to do scripting the OO way), but I only get around to a tiny fraction of the things I want to

Re: [matplotlib-devel] Elusive bug plotting masked arrays

2010-03-19 Thread Michael Droettboom
I can't reproduce anything like a bug, either. What backend are you using? Have you tried turning path.simplify on or off? (Makes no difference here, just seems a likely candidate). Mike Jeff Whitaker wrote: > On 3/19/10 11:10 AM, David J. Raymond wrote: >> I am trying to plot two 1-D masked

[matplotlib-devel] mplot3d view_init minor patch

2010-03-19 Thread Ben Axelrod
Here is a minor patch for the mplot3d.view_init() function. It: 1. comments this method so that users know that they can use it to programatically rotate or re-set the axes. 2. adds some new functionality so that if no parameters are passed in, the default values (what was specified in the A

Re: [matplotlib-devel] Elusive bug plotting masked arrays

2010-03-19 Thread Eric Firing
David J. Raymond wrote: > I am using python 2.5.5 and the gtk background (as far as I can tell). > Turning off path.simplify gets rid of the extraneous line. I am > attaching pngs with path.simplify both on and off. I am also > attaching the full coastline file that produced the original problem.