Re: [Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-28 Thread Sandro Tosi
Hi Darren, On Fri, May 29, 2009 at 01:50, Darren Dale wrote: > On Thu, May 28, 2009 at 6:01 PM, Sandro Tosi wrote: >> >> Hi Darren, >> >> On Thu, May 28, 2009 at 19:16, Darren Dale wrote: >> > Try the attached script. >> >> Oh it works very great! thanks you very much! >> >> One thing I've done

Re: [Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-28 Thread Darren Dale
On Thu, May 28, 2009 at 6:01 PM, Sandro Tosi wrote: > Hi Darren, > > On Thu, May 28, 2009 at 19:16, Darren Dale wrote: > > Try the attached script. > > Oh it works very great! thanks you very much! > > One thing I've done is also remove > > import matplotlib > matplotlib.use('Qt4Agg') > > since

Re: [Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-28 Thread Sandro Tosi
Hi Darren, On Thu, May 28, 2009 at 19:16, Darren Dale wrote: > Try the attached script. Oh it works very great! thanks you very much! One thing I've done is also remove import matplotlib matplotlib.use('Qt4Agg') since we're already importing the qt4agg backend directly right after. One only

Re: [Matplotlib-users] computer modern

2009-05-28 Thread Michael Droettboom
The name of the Computer Modern Roman font that ships with matplotlib is "cmr10", so mpl.rc('font', family = 'serif', serif = 'cmr10') should work. Mike Nicolas Pourcelot wrote: > Hi, > > is there any way to use Computer Modern in any text in matplotlib ? > > In http://matplotlib.sourceforg

Re: [Matplotlib-users] mathtext : overrightarrow

2009-05-28 Thread Michael Droettboom
Nicolas Pourcelot wrote: > Thanks for your answer. > > > Michael Droettboom a écrit : >> Handling this like an accent is trivial, and handled with the patch >> below (which I will commit to SVN). > It is however not so much useful, since \vec does already the job. The rightarrow is longer than vec

Re: [Matplotlib-users] mathtext : overrightarrow

2009-05-28 Thread Nicolas Pourcelot
Thanks for your answer. Michael Droettboom a écrit : > Handling this like an accent is trivial, and handled with the patch > below (which I will commit to SVN). It is however not so much useful, since \vec does already the job. > Handling this in such a way that the length of the arrow changes

Re: [Matplotlib-users] Adapt animation_blit_qt4.py to a pure OO implementation (QT4 timerEvent)

2009-05-28 Thread Darren Dale
Hi Sandro, On Wed, May 27, 2009 at 7:14 PM, Sandro Tosi wrote: > Hi Darren, > thanks for replying > > On Wed, May 27, 2009 at 21:01, Darren Dale wrote: > > On Wed, May 27, 2009 at 9:11 AM, Sandro Tosi wrote: > >> > >> Hi all, > >> I'd like to adapt 'animation_blit_qt4.py' to a pure OO approach

Re: [Matplotlib-users] latest pylab matplotlib not working on OSX and python 2.6.2

2009-05-28 Thread Zorg 421
Oh, removing .matplotlib/matplotlibrc solved this issue. The content of matplotlibrc was really simple, though: -- font.size : 8.0 # # The figure subplot parameters. All dimensions are fraction of the # figure width or height # #figure.subplot.left: 0.125 # the left side of the subpl

Re: [Matplotlib-users] mathtext : overrightarrow

2009-05-28 Thread Michael Droettboom
Handling this like an accent is trivial, and handled with the patch below (which I will commit to SVN). Handling this in such a way that the length of the arrow changes based on the size of the underlying text is less straightforward and will take some time to implement. Cheers, Mike Index: l

[Matplotlib-users] mathtext : overrightarrow

2009-05-28 Thread Nicolas Pourcelot
Hi, is there any way to display a big arrow on a vector using mathtext, like "$\overrightarrow{AB}$" ? If not, is there any plan to implement it in a next release ? Thanks a lot, Nicolas P. -- Register Now for Creativ

[Matplotlib-users] Question about gridlines

2009-05-28 Thread pellegrini
Dear all, When writing: f = figure() ... gl = f.gca().get_xgridlines() I always get a list of gridlines independantly of the fact that they are actually drawn or not. Is there an attribute or a method that could inform me whether the gridlines are actually displayed or not ? I thougt that th

[Matplotlib-users] computer modern

2009-05-28 Thread Nicolas Pourcelot
Hi, is there any way to use Computer Modern in any text in matplotlib ? In http://matplotlib.sourceforge.net/users/customizing.html, I read the following : #font.serif : Bitstream Vera Serif, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No

Re: [Matplotlib-users] Strange resize behaviour for qt backend

2009-05-28 Thread Drain, Theodore R
Ole wrote: My interpretation of this is: - the FigureCanvas gets the first resize event and repaints itself (*) - during the repaint it gets the second resize event - since it is already in the repaint process, the second request is ignored (or queued) and returns immediately - this leads to the p

Re: [Matplotlib-users] Strange resize behaviour for qt backend

2009-05-28 Thread Darren Dale
On Thu, May 28, 2009 at 7:55 AM, Ole Streicher wrote: > Hi again, > > is there no idea on this topic? Does the update work for you as it > should? > I am really busy with other things, and can't offer suggestions unless you post a short, simple, standalone script that demonstrates the problem. D

Re: [Matplotlib-users] Strange resize behaviour for qt backend

2009-05-28 Thread Ole Streicher
Hi again, is there no idea on this topic? Does the update work for you as it should? I started to debugging it a bit by adding debug output to the moveEvent()/resizeEvent() functions. I seems that the resizeEvents (resp. moveEvents) come out of order. The following comes when one resizes the wind

Re: [Matplotlib-users] Printing in wx

2009-05-28 Thread Stefanie Lück
Hi Chris: Thanks for your answer! I try the printing_in_wx.py with Python 2.5, MPlot 0.8 and wxPython 2.8.7.1. and its just crashes after I want to print or preview (unfortunately without any error message) and closes Python. Here's an example of my program: # -*- coding: latin1 -*- import sys

[Matplotlib-users] Question about gridlines

2009-05-28 Thread Pellegrini Eric
Dear all, When writing: f = figure() ... gl = f.gca().get_xgridlines() I always get a list of gridlines independantly of the fact that they are actually drawn or not. Is there an attribute or a method that could inform me whether the gridlines are actually displayed or not ? I th