Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Andrew Kelly
On Fri, Apr 2, 2010 at 1:41 PM, Eric Firing wrote: > Andrew Kelly wrote: > >> import pytz only took 0.0 seconds. >> >> > > Sounds like it was already imported, so you were not really timing that > import. > > On linux (ubuntu 9.10, Lenovo T60 laptop) i

Re: [Matplotlib-users] speed up imports?

2010-04-02 Thread Andrew Kelly
ibrary), which opens ~500 files. How does the total time of "import pytz" > compare? > > Mike > > Andrew Kelly wrote: > >> I see. I was wondering why it spit out a binary file. >> >> test.out is attached... >> >> -Andy >> >> O

Re: [Matplotlib-users] speed up imports?

2010-04-01 Thread Andrew Kelly
Eric, I am running it on a windows 7 machine and a windows XP machine. Odd that it does this only on win32. -Andy On Thu, Apr 1, 2010 at 4:17 PM, Eric Firing wrote: > Andrew Kelly wrote: > >> Has anyone had any success in speeding up the mpl imports? >> >> "im

[Matplotlib-users] speed up imports?

2010-04-01 Thread Andrew Kelly
Has anyone had any success in speeding up the mpl imports? "import matplotlib.pyplot as plt" ( or "from matplotlib.figure import Figure") takes 6 full seconds to load. That seems excessive. Any ideas? -Andy -- Download

Re: [Matplotlib-users] Top/Right Tick Labels

2010-01-22 Thread Andrew Kelly
t 2:31 PM, Andrew Kelly wrote: > > Turning label2On = true turned on the labels as directed. However, the > > function label2.set_text("New Tick Label") does not update the > > actual text. I can set_size(), etc and it works, but set_text() does not > >

Re: [Matplotlib-users] Top/Right Tick Labels

2010-01-21 Thread Andrew Kelly
e-Joon Lee wrote: > On Thu, Jan 21, 2010 at 1:16 PM, Andrew Kelly wrote: > > (Part of my confusion stems from the fact that I can access the Tick > > instances on the Axis but when I call Tick.set_label2("New Label") the > label > > does not get dr

[Matplotlib-users] Top/Right Tick Labels

2010-01-21 Thread Andrew Kelly
Can someone point out how to simply label the ticks on the top and right of a plot? twinx() and twiny() are not necessary because I don't need independent scales and the mpl_toolkits.axes_grid.parasite_axes module is a bit too limiting for my purposes. (Part of my confusion stems from the fact th

Re: [Matplotlib-users] Unknown Path Error

2009-08-31 Thread Andrew Kelly
tripping over the Artist.contains() function call when used with line2D. On Mon, Aug 31, 2009 at 1:28 PM, Michael Droettboom wrote: > Can you provide a standalone example that reproduces this error? > > Cheers, > Mike > > Andrew Kelly wrote: > >> I recently re-instal

[Matplotlib-users] Unknown Path Error

2009-08-31 Thread Andrew Kelly
I recently re-installed matplotlib (0.99) on my vista machine and my code that worked yesterday (no changes) no longer runs because of the following matplotlib error: File "C:\Python25\Lib\site-packages\matplotlib\lines.py", line 286, in contains path, affine = self._transformed_path.get_tra

[Matplotlib-users] Align Text (Relative)

2009-08-13 Thread Andrew Kelly
I am currently using the annotate() method for my data points and I was curious if there is a way to center a line of text relative to a line of text below it. I am currently using two annotate() function calls in a row (I need the text to be different colors) but I need the first one to act as a

[Matplotlib-users] Dog Ear?

2009-04-15 Thread Andrew Kelly
Hello,I am relatively new to matplotlib but I get the basics. What I need to do though is a slightly customized graph area. There are two plots on the same graph - a parabola and a straight line (with a negative slope) north east of the parabola. This graph has grid lines. Simple enough, but no