[Matplotlib-users] NavigationToolbar2QT change height

2011-08-11 Thread RICHARD Georges-Emmanuel
First of all congratulation for the release 1.1.0 of matplotlib it's a wonderfull. since the version 0.90 I started to use it, I keep enjoy it everyday. I work with PyQT4 and PySide. I try to modify the height of the NavigationToolbar2QT, but no matter I use resize the Qt4 method nothing

[Matplotlib-users] cannot display label on my axes

2011-08-11 Thread WALTER Alain
Hello, It's my first post on this forum and I'm very happy to discover a forum dedicated to matplotlib. I 've begun recently a development with matplotlib inside my python (2.7)application. In a first step I've developped a stand alone graphical display and it runs properly. In a second step, I

[Matplotlib-users] unable to draw text at angles other than 0 or 90

2011-08-11 Thread WALTER Alain
Hello, Concernig the source code of my previous post, the use of ax.set_title('Volumic definition') generate the following message: /opt/IPASTEST/lib/python2.7/site-packages/matplotlib/backends/backend_gdk.py:150: UserWarning: backend_gdk: unable to draw text at angles other than 0 or 90

[Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
Hi, I am having a ridiculous amount of trouble getting Computer Modern Roman to appear in my plots. So many problems, in fact, I nuked the whole of macports and installed the things I need again because I thought it might have been a problem with using an upgraded version of macports from Snow

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
Sorry, I made a typo. See below. Hi, I am having a ridiculous amount of trouble getting Computer Modern Roman to appear in my plots. So many problems, in fact, I nuked the whole of macports and installed the things I need again because I thought it might have been a problem with using

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
More diagnostics.I ran the fonts_demo.py example and saved the plot as a .png (this time using the macosx backend). See attached for the result, and compare with http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/fonts_demo.hires.pngI also got the following font warnings

Re: [Matplotlib-users] unable to draw text at angles other than 0 or 90

2011-08-11 Thread Benjamin Root
On Thursday, August 11, 2011, WALTER Alain alain.wal...@thalesgroup.com wrote: Hello, Concernig the source code of my previous post, the use of ax.set_title('Volumic definition') generate the following message: /opt/IPASTEST/lib/python2.7/site-packages/matplotlib/backends/backend_gdk.py:150:

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Tony Yu
On Thu, Aug 11, 2011 at 9:50 AM, Damon McDougall d.mcdoug...@warwick.ac.ukwrote: More diagnostics. snip This is what I have: OS X Lion Fresh install of python 2.6 from macports Numpy version 1.6.1 (from macports) freetype (from macports) libpng (from macports) matplotlib 1.0.1 (from

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Damon McDougall
This is what I have: OS X Lion Fresh install of python 2.6 from macports Numpy version 1.6.1 (from macports) freetype (from macports) libpng (from macports) matplotlib 1.0.1 (from macports) When I run my plotting script, I get the following error as soon as the script starts (i.e.,

[Matplotlib-users] Interactive with standard python TkAgg...

2011-08-11 Thread Ned
Hi, I'm trying to sort out interactive use with standard python but am having problems. If I do: import matplotlib matplotlib.use(TkAgg) matplotlib.interactive(True) import pylab pylab.ion() pylab.plot([1,2,3,4]) Then I would expect a plot to appear. But it doesn't. I then have to call:

[Matplotlib-users] Best way to cycle through numpy images

2011-08-11 Thread David Just
Sorry if this get¹s re-posted, my earlier e-mail didn¹t seem to go through. I have an array of images stored as an array of numpy arrays. I need to be able to efficiently scroll through that set of images. My first attempt at doing this goes something like this: --init-- self.ax =

[Matplotlib-users] RE : unable to draw text at angles other than 0 or 90

2011-08-11 Thread WALTER Alain
Hi Ben, I don't want to display rotate text ! I just need to display a simple text to my figure : ax.text(onevolume['long'][i],onevolume['lat'][i],onevolume['upper'][i],onevolume['point'][i],color=linecolor) In addition, I do not understand your remark about GDK, If I

Re: [Matplotlib-users] Best way to cycle through numpy images

2011-08-11 Thread Benjamin Root
On Thu, Aug 11, 2011 at 11:19 AM, David Just just.da...@mayo.edu wrote: Sorry if this get’s re-posted, my earlier e-mail didn’t seem to go through. I have an array of images stored as an array of numpy arrays. I need to be able to efficiently scroll through that set of images. My first

Re: [Matplotlib-users] Interactive with standard python TkAgg...

2011-08-11 Thread Benjamin Root
On Thu, Aug 11, 2011 at 10:46 AM, Ned a.g.bas...@durham.ac.uk wrote: Hi, I'm trying to sort out interactive use with standard python but am having problems. If I do: import matplotlib matplotlib.use(TkAgg) matplotlib.interactive(True) import pylab pylab.ion() pylab.plot([1,2,3,4])

Re: [Matplotlib-users] Best way to cycle through numpy images

2011-08-11 Thread Benjamin Root
On Thu, Aug 11, 2011 at 11:34 AM, David Just just.da...@mayo.edu wrote: The images are usually ~ 256x256 greyscale. They vary a bit in size, but are not large by any shape or form. It seems interpolation is happening on each scroll. This is evident by changing the interpolation scheme

Re: [Matplotlib-users] Best way to cycle through numpy images

2011-08-11 Thread Benjamin Root
On Thu, Aug 11, 2011 at 11:43 AM, David Just just.da...@mayo.edu wrote: All the images in the pile will be the same dimensions. What I meant was depending on what pile I load into the viewer, the dimensions of that pile may differ eg: 150x256x10 to 512x512x150 Ok, now I understand. Have

Re: [Matplotlib-users] RE : unable to draw text at angles other than 0 or 90

2011-08-11 Thread Benjamin Root
On Thu, Aug 11, 2011 at 11:21 AM, WALTER Alain alain.wal...@thalesgroup.com wrote: Hi Ben, I don't want to display rotate text ! I just need to display a simple text to my figure :

Re: [Matplotlib-users] Interactive with standard python TkAgg...

2011-08-11 Thread Ivan D Vasin
On Thursday, August 11, 2011 11:29:57 Benjamin Root wrote: I'm running on ubuntu 10.04 32bit, with distro package 0.99 for matplotlib. I haven't been able to find anything that helps online either. I don't remember who was hosting it, but I recall someone had a matplotlib v1.0.1 PPA. I

Re: [Matplotlib-users] Interactive with standard python TkAgg...

2011-08-11 Thread Ivan D Vasin
On Thursday, August 11, 2011 14:20:22 you wrote: but i instead use the following procedure to set up all of PyLab on Ubuntu 11.04: $ sudo add-apt-repository ppa:chris-lea/zeromq $ sudo add-apt-repository ppa:pyside $ sudo apt-get update $ sudo apt-get build-dep python-numpy python-scipy

Re: [Matplotlib-users] cannot display label on my axes

2011-08-11 Thread Paul Ivanov
WALTER Alain, on 2011-08-11 11:31, wrote: Hello, It's my first post on this forum and I'm very happy to discover a forum dedicated to matplotlib. I 've begun recently a development with matplotlib inside my python (2.7)application. In a first step I've developped a stand alone graphical

Re: [Matplotlib-users] Best way to cycle through numpy images

2011-08-11 Thread Paul Ivanov
Benjamin Root, on 2011-08-11 11:25, wrote: On Thu, Aug 11, 2011 at 11:19 AM, David Just just.da...@mayo.edu wrote: --onscroll-- self.ax.set_array(imdta[n]) # 0 n num_images self.canvas.draw() You last line here causes every artist on the canvas to draw. Have you tried

Re: [Matplotlib-users] Subplot of subplots.

2011-08-11 Thread Jae-Joon Lee
There are a few options you can try. And I recommend you to use gridspec module. http://matplotlib.sourceforge.net/users/gridspec.html It can also be used with ImageGrid (at least in the master branch, but not sure for 1.0.1 release). I'm attaching a sample script. Regards, -JJ On Sat, Aug