Re: [Matplotlib-users] svg in plot

2012-02-17 Thread Jakob Gager
Hi, if the import filetype is not restricted to svg, you can use PyX to place vector eps figures into other eps figures. I used this in a two step approach (first create the plot with matplotlib and store is as eps and second, use PyX to combine the plot with a vector figure) in a single

Re: [Matplotlib-users] Labeling Contours

2012-02-17 Thread Eric Firing
On 02/15/2012 03:10 PM, Alexa Villaume wrote: Hi Eric, Thanks for your help, I'm still really new to python and matplotlib. I've got my labels defined but now I'm having another problem with the formatting. I'm doing - CS1.level=[14.07, 14.27]

Re: [Matplotlib-users] svg in plot

2012-02-17 Thread Bartosz Telenczuk
Hi all, I had the same problem and I implemented a small library for manipulating SVG figures (for example, matplotlib-generated). It is on github: https://github.com/btel/svg_utils There is also a related blog post: http://neuroscience.telenczuk.pl/?p=331 The library does NOT allow to

[Matplotlib-users] Tick Offset

2012-02-17 Thread Bedartha Goswami
Hi all, I am new to Mpl, and I am making a 4x4 subplot now. I wish to offset (downwards) the locations of the tick labels on the Y-axis of one subplot. Actually, I just want to offset one particular tick label but its also okay if its a small (and equal) offset for the tick labels. Can you

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 francois.lem...@gmail.comwrote:

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

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 values

Re: [Matplotlib-users] Visually equivalent contours/parallels

2012-02-17 Thread Andrea Gavana
Hello Jerzy All, On 14 February 2012 17:55, Jerzy Karczmarczuk wrote: Andrea, I believe that if you find ONE good visual aspect ratio, according to your figure size, that should do. Yo know your figsize, and if you know all in your axes([bot,lft,wid, height]), that this visual ratio should

[Matplotlib-users] Dynamically adjusting the color scale in NonUniformImage

2012-02-17 Thread Ray Osborn
I am embedding a matplotlib canvas in a Pyside GUI and wanted to attach a slider to adjust the color scale of a 2D plot made using NonUnitformImage. I am connecting the slider value to im.set_clim([vmin,vmax]). I have got my axis sliders to work, but the intensity slider only adjusts the

Re: [Matplotlib-users] Dynamically adjusting the color scale in NonUniformImage

2012-02-17 Thread Benjamin Root
On Friday, February 17, 2012, Ray Osborn wrote: I am embedding a matplotlib canvas in a Pyside GUI and wanted to attach a slider to adjust the color scale of a 2D plot made using NonUnitformImage. I am connecting the slider value to im.set_clim([vmin,vmax]). I have got my axis sliders to

Re: [Matplotlib-users] Visually equivalent contours/parallels

2012-02-17 Thread Jerzy Karczmarczuk
Andrea Gavana continues to struggle with his parallel lines: I managed to get *almost* there, but there still is a small glitch. I attach a self-evident sample, which generates data very similar to the real ones I have and shows the two parallel curves to the main one. You will notice that

Re: [Matplotlib-users] Dynamically adjusting the color scale in NonUniformImage

2012-02-17 Thread Ray Osborn
OK - it turns out I can reproduce it in a simple ipython session using ipython --pylab=qt. I set up an image plot as follows: import numpy as np import matplotlib.pyplot as plt from matplotlib.image import NonUniformImage x=y=np.linspace(0,2*np.pi,101) X,Y=np.meshgrid(x,y) z=sin(X)*sin(Y)

Re: [Matplotlib-users] a venn diagram function written in python

2012-02-17 Thread Mic
would be great! Maybe you could submit it to matplotlib's github. On Sat, Dec 31, 2011 at 2:23 AM, fdu.xia...@gmail.com fdu.xia...@gmail.comwrote: Dear all, I couldn't find a function to plot venn diagram with python, so I written one for my daily use (with a lot inspirations from the