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

2010-03-22 Thread Jörgen Stenarson
Fernando Perez skrev 2010-03-22 01:10: > On Sat, Mar 20, 2010 at 4:00 PM, Jae-Joon Lee wrote: >> On Sat, Mar 20, 2010 at 5:05 AM, Fernando Perez wrote: >>> I wonder if it's possible to put things like a draw_if_interactive() >>> call at the end of the OO methods... I realize that pyplot was the >

Re: [matplotlib-devel] Doc changes

2008-12-18 Thread Jörgen Stenarson
John Hunter skrev: > > That would be nice, because it would make it easier for users and > developers to contribute to the docs and test their changes. Right > now there is something of a barrier to entry for people who want to > contribute to the docs. > > JDH What about building the docs on wi

Re: [matplotlib-devel] empty mathtext "$$" in labels generates an exception

2008-06-03 Thread Jörgen Stenarson
Tony Yu skrev: > > On Jun 3, 2008, at 4:18 PM, Jörgen Stenarson wrote: >> using an empty mathtext "$$" in labels generates an exception. See >> example and traceback below. > > My guess is that this is a LaTeX error. If you enter $$ in a normal > LaTeX docum

[matplotlib-devel] empty mathtext "$$" in labels generates an exception

2008-06-03 Thread Jörgen Stenarson
Hi, using an empty mathtext "$$" in labels generates an exception. See example and traceback below. /Jörgen from pylab import * from numpy import * x=arange(0,2*pi,0.1) plot(x,sin(x)) title(r"$$") show() Exception in Tkinter callback Traceback (most recent call last): File "C:\python25\l

[matplotlib-devel] figure size changes when calling pylab.show

2008-02-14 Thread Jörgen Stenarson
Hi, i have found a strange behaviour of the figure size. At least for some cases it looks like the figure size is changed by a small amount after calling pylab.show. The attached script saves the same figure before and after calling savefig. The figure saved after the call to show is a diffe

Re: [matplotlib-devel] tick alignment in pdf backend

2008-02-01 Thread Jörgen Stenarson
Michael Droettboom skrev: > Thanks. Fixed in SVN r4929. > That was quick. Thanks. /Jörgen - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse

[matplotlib-devel] Tk-window doesn't show full figure

2008-02-01 Thread Jörgen Stenarson
Hi, One annoyance with the TkAgg plotwindow is that it doesn't show the full plotarea. Comparing the plot result saved to png in visible-area-tk.png to the screen shot of the tkagg window in visible-area-tk-window.png you can see that there is a grey border covering some of the area at the edg

[matplotlib-devel] figsize anomaly in pdf

2008-02-01 Thread Jörgen Stenarson
Hi, using the attached script to generate one pdf and one png of the same figure. I get a 800x600 pixel png which is expected for a 8x6in figure at 100 dpi. But for the pdf I get 11.11x8.33in as determined from the document properties dialog in acrobat reader. Looking at the file information

Re: [matplotlib-devel] axis limits bug with twinx?

2008-01-30 Thread Jörgen Stenarson
Michael Droettboom skrev: > For some reason, when axis() is called, the "emit" flag (which > determines whether to update all of the shared axes) was being set to > False by default. There may be a good reason for this that I'm not > aware of, but it seems reasonably harmless, and doesn't break

Re: [matplotlib-devel] marker in a plot crashes pdf backend

2008-01-30 Thread Jörgen Stenarson
Michael Droettboom skrev: > Ok. I'll change this in SVN. > It works for me now as well. /Jörgen - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/g

Re: [matplotlib-devel] marker in a plot crashes pdf backend

2008-01-29 Thread Jörgen Stenarson
Michael Droettboom skrev: Interesting. I can't reproduce this with Python-2.5 on Linux. What version of numpy do you have installed? Can you send your matplotlibrc file? I tried upgrading numpy to the latest svn version but I still see the same problem. My matplotlibrc file is just the d

[matplotlib-devel] axis limits bug with twinx?

2008-01-29 Thread Jörgen Stenarson
Hi, I have problem setting the axis limits when using a twinx plot. I assume it should be possible to set both x-axis limits after a pylab.twinx() call by issuing only one call to pylab.axis. The attached tries to plot the same figure in two different ways the first way ends up with differen

[matplotlib-devel] marker in a plot crashes pdf backend

2008-01-29 Thread Jörgen Stenarson
Hi, I think there is a bug in the pdf backend (png-files save ok) that makes plots crash when they contain a marker. The attached script crashes on the last savefig. I have also attached a traceback. I run matplotlib-svn-4904 on windows with python 2.4 /Jörgen Traceback (most recent call

Re: [matplotlib-devel] Fontcache problem on windows

2008-01-23 Thread Jörgen Stenarson
Michael Droettboom skrev: > Interesting. > > Perhaps anything that throws an exception in the FT2Font constructor > (which a bad font or a missing font would both do), is throwing off the > reference count for the object and failing that assertion, rather than > passing the exception back to Py

Re: [matplotlib-devel] Fontcache problem on windows

2008-01-23 Thread Jörgen Stenarson
Michael Droettboom skrev: It's possible -- the version of freetype in the win32_static.tar.gz package is 2.1.7. I have 2.1.9 on my (working) Linux box. Perhaps something between those point releases fixes this bug. But it could be a lot of other things, too. I'm going to file a bug for thi

Re: [matplotlib-devel] Fontcache problem on windows

2008-01-22 Thread Jörgen Stenarson
Michael Droettboom skrev: > Thanks. Unfortunately, I'm not able to reproduce any problems with the > font on Linux (see attached). I suspect the problem may be > Windows-specific, but I have no way of knowing at the moment. I'll have > to try this at home (no Windows at work), or maybe one of

Re: [matplotlib-devel] Fontcache problem on windows

2008-01-22 Thread Jörgen Stenarson
Michael Droettboom skrev: > Is the font freely available, and if so, can you provide a link? I'd > like to find a workaround if possible -- one shouldn't have to remove > fonts just to run matplotlib. > You can download it from

Re: [matplotlib-devel] Fontcache problem on windows

2008-01-21 Thread Jörgen Stenarson
Michael Droettboom skrev: > I haven't seen this issue. It may just be a dirty compilation problem. > Often distutils doesn't rebuild enough. Try removing the build > directory and then build/install. > > If that's not the case, we'll need to track down which font is tripping > it up. Set "

[matplotlib-devel] Fontcache problem on windows

2008-01-21 Thread Jörgen Stenarson
Hi today after upgrading to the latest svn (r4880 compiled with mingw) and deleting fontManager.cache I got the following message and a crash c:\python\>python Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for mor

Re: [matplotlib-devel] refcount bug

2007-10-11 Thread Jörgen Stenarson
John Hunter skrev: > On 10/11/07, Michael Droettboom <[EMAIL PROTECTED]> wrote: >> An an extra data point, the attached script runs for over 1000 >> iterations on Linux. By no means am I suggesting that as a fix ;) >> ...just a data point for someone on Windows that this is probably >> Windows-spe

Re: [matplotlib-devel] refcount bug

2007-10-11 Thread Jörgen Stenarson
...just a data point for someone on Windows that this is probably > Windows-specific. > > Cheers, > Mike > > Jörgen Stenarson wrote: >> Hi, >> >> I have a problem with matplotlib crashing with a ref count assertion >> error. I see this problem intermitten

[matplotlib-devel] refcount bug

2007-10-10 Thread Jörgen Stenarson
Hi, I have a problem with matplotlib crashing with a ref count assertion error. I see this problem intermittently both when using ipython using %run to execute plot scripts many times and when embedding a plot in a Tk application. In both cases I use TkAgg as a backend I have compiled matplotl

[matplotlib-devel] pylab.axis(ymin=-1) crashes with exception

2007-02-09 Thread Jörgen Stenarson
hi the recent announcment of matplotlib 0.9 made me look through my notes on bugs I've found. With 0.87.7 pylab.axis does not support setting of axislimits, I have attached a crash report. I think the problem is a change in the handling of kwargs in set_*lim in axes.py. /Jörgen In [1]: x=aran