Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Eric Firing
Thomas Robitaille wrote: >>> It looks like rotation/translation should be easy to do with >>> Affine2D, so I tried using it, but I can't seem to get it to work as >>> expected - here is an example of how I am using it: >> >> Based on a quick look at image.py and _image.cpp, it appears that >> th

Re: [Matplotlib-users] parsing tab separated data into arrays

2009-03-13 Thread Ryan May
On Fri, Mar 13, 2009 at 5:18 PM, per freem wrote: > hi all, > > what's the most efficient / preferred python way of parsing tab separated > data into arrays? for example if i have a file containing two columns one > corresponding to names the other numbers: > > col1\t col 2 > joe\t 1

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
>> It looks like rotation/translation should be easy to do with >> Affine2D, so I tried using it, but I can't seem to get it to work >> as expected - here is an example of how I am using it: > > Based on a quick look at image.py and _image.cpp, it appears that > there is a low-level capabilit

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Eric Firing
Thomas Robitaille wrote: > It looks like rotation/translation should be easy to do with Affine2D, > so I tried using it, but I can't seem to get it to work as expected - > here is an example of how I am using it: Based on a quick look at image.py and _image.cpp, it appears that there is a low-l

Re: [Matplotlib-users] parsing tab separated data into arrays

2009-03-13 Thread João Luís Silva
per freem wrote: > hi all, > > what's the most efficient / preferred python way of parsing tab > separated data into arrays? for example if i have a file containing two Check out the python csv module. Documentation at http://docs.python.org/library/csv.html JLS -

Re: [Matplotlib-users] Reliefplot (imshow with shading)

2009-03-13 Thread Timothée Lecomte
Jeff Whitaker wrote: > Jeff Whitaker wrote: >> Timothée Lecomte wrote: >>> Dear all, >>> >>> I am using matplotlib with a great pleasure, and I enjoy its >>> capabilities. >>> I have recently attended a conference where the invited speaker >>> showed great visualizations of arrays from both exper

[Matplotlib-users] parsing tab separated data into arrays

2009-03-13 Thread per freem
hi all, what's the most efficient / preferred python way of parsing tab separated data into arrays? for example if i have a file containing two columns one corresponding to names the other numbers: col1\t col 2 joe\t 12.3 jane \t 155.0 i'd like to parse into an array() such that i

[Matplotlib-users] plotting without certain axes in matplotlib

2009-03-13 Thread per freem
hi all, i'm trying to generate a very simple plot, where only the left y axis and the bottom x axis are present. i.e. there is no top x axis or right y axis... this is the default for many plotting packages. in matlab, one can do this as follows: >> x = rand(1,100); >> hist(x) >> set(gca, 'Box',

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
Thanks to both of you for your help! I had spotted the transform argument in imshow, but didn't manage to find any information about how to use it. The Affine2D method looks like it will help, so I should be all set now. Thanks! Thomas On Mar 13, 2009, at 5:20 PM, Andrew Straw wrote: > Er

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
It looks like rotation/translation should be easy to do with Affine2D, so I tried using it, but I can't seem to get it to work as expected - here is an example of how I am using it: import numpy as np from matplotlib.pyplot import * from matplotlib.transforms import Affine2D im = np.random.ra

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Andrew Straw
Eric Firing wrote: > Thomas Robitaille wrote: >> Hello, >> >> I was wondering whether there is a way to rotate a grayscale/ >> colorscale when using imshow. >> >> I have been using PGPLOT (a fortran/c plotting library) for many years >> now, and the equivalent to imshow is called PGGRAY (or PGIM

Re: [Matplotlib-users] Reliefplot (imshow with shading)

2009-03-13 Thread Jeff Whitaker
Jeff Whitaker wrote: Timothée Lecomte wrote: Dear all, I am using matplotlib with a great pleasure, and I enjoy its capabilities. I have recently attended a conference where the invited speaker showed great visualizations of arrays from both experiments and simulations. His plots were basica

Re: [Matplotlib-users] Rotating in imshow

2009-03-13 Thread Eric Firing
Thomas Robitaille wrote: > Hello, > > I was wondering whether there is a way to rotate a grayscale/ > colorscale when using imshow. > > I have been using PGPLOT (a fortran/c plotting library) for many years > now, and the equivalent to imshow is called PGGRAY (or PGIMAG). One of > the argume

[Matplotlib-users] Rotating in imshow

2009-03-13 Thread Thomas Robitaille
Hello, I was wondering whether there is a way to rotate a grayscale/ colorscale when using imshow. I have been using PGPLOT (a fortran/c plotting library) for many years now, and the equivalent to imshow is called PGGRAY (or PGIMAG). One of the arguments this function takes is a 6-element ar

Re: [Matplotlib-users] Reliefplot (imshow with shading)

2009-03-13 Thread Jeff Whitaker
Timothée Lecomte wrote: Dear all, I am using matplotlib with a great pleasure, and I enjoy its capabilities. I have recently attended a conference where the invited speaker showed great visualizations of arrays from both experiments and simulations. His plots were basically looking like those

Re: [Matplotlib-users] Problem in robin - basemap?

2009-03-13 Thread Jeff Whitaker
James Boyle wrote: > Jeff, > > This is something I have noticed recently. If I set lon_0 = 180. using > the robin projection , the parallels from 0 to 180 are drawn thicker > than those from 180 to 360. > Perhaps the 0 to 180 are drawn twice - with some small offset - due > some wraparound probl

[Matplotlib-users] Multithreading problem with print_png and font object?

2009-03-13 Thread Karen Tracey
I am using matplotlib's object-oriented API to dynamically generate some graphs served by a web site. The web site is built with Django and I have generally followed the cookbook example I found here: http://www.scipy.org/Cookbook/Matplotlib/Django for serving matplotlib figures under Django. Spe

[Matplotlib-users] Reliefplot (imshow with shading)

2009-03-13 Thread Timothée Lecomte
Dear all, I am using matplotlib with a great pleasure, and I enjoy its capabilities. I have recently attended a conference where the invited speaker showed great visualizations of arrays from both experiments and simulations. His plots were basically looking like those produced by imshow, that i