Re: [Matplotlib-users] Axes Scaling

2012-02-17 Thread Jerzy Karczmarczuk
Francois Lemery : > Hi Python World! > > I currently have a 2D array: A[i][j] which I can plot very nicely > using the contourf function. However, in this plot, the axes span > from (0, i) and (0, j). > I would like to multiply each axes by a scaling constant- thereby > turning the array element v

Re: [Matplotlib-users] Axes Scaling

2012-02-17 Thread Francois Lemery
Hi, Sorry for not giving sufficient detail. I open an HDF5 file and then read some EArray into a regular array: a = f.root MySource = a.myLineSource[:,:,1] # the dimensions of my source are (x, t) = (50, 15000) 50 corresponds to 50 gridpoints where I have recorded an electric field. and 15,0

Re: [Matplotlib-users] Axes Scaling

2012-02-17 Thread Alexa Villaume
Hi François, Why would it be a waste to multiply the values in an array by the scaling factors? Can you provide an example of your code so everybody can get a better idea of what you're doing now? Thanks, Alexa On Fri, Feb 17, 2012 at 9:07 AM, Francois Lemery wrote: > Hi Python World! > > I cu