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

2011-08-11 Thread Benjamin Root
On Friday, August 12, 2011, WALTER Alain wrote: > You're right I'm not clear. You thought I' am using text() from matplotlib but If I'm looking to the text() invocation from the module Axes3D: > Axes3D.text(x, y, z, s, zdir=None, **kwargs)¶ > Add text to the plot. kwargs will be pa

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

2011-08-11 Thread WALTER Alain
You're right I'm not clear. You thought I' am using text() from matplotlib but If I'm looking to the text() invocation from the module Axes3D: Axes3D.text(x, y, z, s, zdir=None, **kwargs)¶ Add text to the plot. kwargs will be passed on to Axes.text, except for the zdir keyword,

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 6

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 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 blitting jus

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 graphica

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-

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.

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 wrote: > 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 n

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 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 you tried sett

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 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 from linear to spl

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

2011-08-11 Thread Benjamin Root
On Thu, Aug 11, 2011 at 10:46 AM, Ned 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]) > > Then I would

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 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 attempt > at d

[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 remember

[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 = p

[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: pyla

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

Re: [Matplotlib-users] Problems with latex fonts

2011-08-11 Thread Tony Yu
On Thu, Aug 11, 2011 at 9:50 AM, Damon McDougall wrote: > More diagnostics. > > > 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

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 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: UserWarning: backend_gdk:

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] 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 us

[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

[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 'oth

[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