I think using the profiler is the best bet here. We've used that in the
past to track down things that take a long time to import quite
successfully. I'm not seeing any slowness here, so that is likely do to
an environmental difference on your machine, implying you'll really need
to run the
Resurrecting an old thread here
On Tue, Mar 29, 2011 at 3:23 PM, David Kremer da...@david-kremer.fr wrote:
I would recommend running the import in the Python profiler to determine
where most of the time is going. When I investigated this a few years
back, it was mainly due to loading
Hello everyone,
I would like to draw the attention on the slow startup of matplotlib.
Indeed, running matplotlib takes a long time.
I performed the following sequence :
```bash
#!/bin/bash
for i in * ; do python2 -c from temp import * ; plot_(\${i}\) ; done
```
with temp.py like this :
, March 28, 2011 9:36 AM
To: Matplotlib Users
Subject: [Matplotlib-users] matplotlib is slow
Hello everyone,
I would like to draw the attention on the slow startup of matplotlib.
Indeed, running matplotlib takes a long time.
I performed the following sequence :
```bash
#!/bin/bash
for i in * ; do
On Tuesday 04 December 2007 16:16:06 José Gómez-Dans wrote:
On Tuesday 04 December 2007 16:05:33 John Hunter wrote:
On Dec 4, 2007 10:00 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
Hmm, the plot thickens. How about embedding_in_gtk2.py -- this add the
toolbar
This does indeed slow
On Dec 5, 2007 8:58 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
Mmmm... I was just wondering whether compiling the new 0.91.1 version might
make the problem go away? I am currently running 0.90.1.
Unlikely, we haven't changed anything in that code. One thing you can
do, it is fairly labor
John,
On Tuesday 04 December 2007 03:25:15 John Hunter wrote:
On Dec 3, 2007 9:08 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is
being used (TkAgg cannot be set, as TkInter is not installed on the
system, I think. It
John,
On Tuesday 04 December 2007 14:07:36 you wrote:
Two more tests. WIll you set the debug level to
--verbose-debug-annoying and add a savefig command to your script, eg
savefig('myfig') with no extension (the backend will provide a default
extension with the -d flags below). Try running
On Dec 4, 2007 8:23 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
PS and Agg work fast enough, and produce meaningful PS and PNG output files
(as well as popping up a window with the plot)
Wait a minute, if you are getting a plot window when you pass -dPS or
-dAgg, something very odd is
On Dec 4, 2007 4:50 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
Thanks for your reply. I think it might well be a fonts problem. Here's the
test script, plus a comment where the big delay happens:
% cat test.py
from pylab import *
plot([1,2,3])
show()
Two more tests. WIll you set the
On Dec 4, 2007 9:19 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
On Tuesday 04 December 2007 15:13:21 you wrote:
OK, the delay comes before draw which is an important piece of
information. What happens if you run these two scripts. Do you get
the delay?
# script 1 (no plot)
from
On Tuesday 04 December 2007 15:31:04 John Hunter wrote:
What about these scripts
# just make a figure
from pylab import *
figure()
Takes a long time.
# just make a subplot
from pylab import *
subplot(111)
Takes a long time.
I'm trying to narrow down where the problem is occurring and
On Tuesday 04 December 2007 15:54:17 you wrote:
OK, it is in the gtk figure creation code. Get the matplotlib
examples directory and try running examples/embedding_in_gtk.py which
does not use pylab but instead does all the gtk stuff manually. See
if you can reproduce the error. If so,
On Dec 4, 2007 10:00 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
Interestingly enough, the embedding_in_gtk.py script works perfectly (takes
less than a second to run), so I am not able to reproduce the slowness!
Hmm, the plot thickens. How about embedding_in_gtk2.py -- this add the toolbar
On Dec 4, 2007 9:39 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
On Tuesday 04 December 2007 15:31:04 John Hunter wrote:
What about these scripts
# just make a figure
from pylab import *
figure()
Takes a long time.
OK, it is in the gtk figure creation code. Get the matplotlib
On Tuesday 04 December 2007 16:05:33 John Hunter wrote:
On Dec 4, 2007 10:00 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
Interestingly enough, the embedding_in_gtk.py script works perfectly
(takes less than a second to run), so I am not able to reproduce the
slowness!
Hmm, the plot
Hi,
I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is being
used (TkAgg cannot be set, as TkInter is not installed on the system, I
think. It throws a NO Module named Tkinter error).
At any rate, a test session is as follows:
import pylab
pylab.plot ( [1,2,3],[1,2,3],'-or')
On Dec 3, 2007 9:08 AM, José Gómez-Dans [EMAIL PROTECTED] wrote:
Hi,
I have compiled v.0.90.1 on RHEL 5. By default, the GTKAgg backend is being
used (TkAgg cannot be set, as TkInter is not installed on the system, I
think. It throws a NO Module named Tkinter error).
At any rate, a test
18 matches
Mail list logo