Re: [Matplotlib-users] Showing the plot in the specific location

2008-02-22 Thread sa6113
I could return the output object of the plot as image file , would you please tell me how I have to convert image to QImage in order to use it in my GUI ? sa6113 wrote: > > How can I show my plot figure in the specific location or part of an > application , I am using pylab. > -- View this m

[Matplotlib-users] Scatter legend doesn't show markers

2008-02-22 Thread Erik Tollerud
I use the scatter(x,y) command to make scatter plots, but I noticed today (on the SVN version of mpl) that when I call legend() after giving scatter(x,y,label='somelabel') , the legend doesn't show the marker symbols - it only has a square patch colored in the color that was used for the scatter p

Re: [Matplotlib-users] imshow: axis not natural

2008-02-22 Thread Piotr Zolnierczuk
I guess it was a FAQ :) The correct way - after experimenting with imshow options - is to transpose the data and use origin='lower' option imshow(c.T,interpolation='nearest',origin='lower') Piotr - Original Message From: Piotr Zolnierczuk <[E

[Matplotlib-users] imshow: axis not natural

2008-02-22 Thread Piotr Zolnierczuk
Hi, it is probably a faq - but I could not find it anywhere. I would like to plot a 2D distribution (2D histogram) of some data using a 2D numpy.array that contains my data: c[ix,iy] When I plot it via imshow the x axis points downwards and the y axis point to the left. What I want is that the

[Matplotlib-users] clabel Formatter

2008-02-22 Thread Stephane Raynaud
Hi, what is the best way to use a Formatter for contour labels (clabel) instead of using simple formatting ('%g')? Should we derive a class from ContourLabeler and do things by hand? It would be useful for example for showing labels from power(10.,level) and you plot logarithmic values. Thanks f

[Matplotlib-users] plot a histogram of relative percentage of data

2008-02-22 Thread Auré Gourrier
Hi all, In my latest post, I wanted to use the mpl.hist() function in a different way, i.e.: x = datalist bins= 100 hist(x,bins,normed=0) #returns a tupple (n,bins,patches) Instead of ploting the number of counts n, I wanted to plot the relative percentage of counts, i.e. n/len(x). I can't

Re: [Matplotlib-users] What is the proper way to set y tick labels for a histogram ?

2008-02-22 Thread John Hunter
On Fri, Feb 22, 2008 at 7:52 AM, Auré Gourrier <[EMAIL PROTECTED]> wrote: > Rather trivial... but instead of the plotting the counts n, I'd like to plot > the realtive percentage counts, i.e. n/len(x). I can't really use the option > normed = 1 which plots n/(len(x)*dbins). I guess the simplest wa

Re: [Matplotlib-users] Different matplotlibrc

2008-02-22 Thread Troels Kofoed Jacobsen
Thanks guys. The env variable method doesn't work, but I can use the file in current dir for now (will just symlink from the file i want). Best Regards T. On Fri, Feb 22, 2008 at 2:39 PM, Darren Dale <[EMAIL PROTECTED]> wrote: > On Friday 22 February 2008 04:45:46 am Troels Kofoed Jacobsen wrot

Re: [Matplotlib-users] What is the proper way to set y tick labels for a histogram ?

2008-02-22 Thread Antonio Gonzalez
Hi Aure, You could try: ax.set_yticklabels(ax.get_yticks()/len(x)) /Antonio Auré Gourrier wrote: > Hi all, > > I'm plotting the histogram of a data set: > > x = datalist > bins= 100 > hist(x,bins,normed=0)#returns a tupple (n,bins,patches) > > Rather trivial... but instead of the plot

[Matplotlib-users] What is the proper way to set y tick labels for a histogram ?

2008-02-22 Thread Auré Gourrier
Hi all, I'm plotting the histogram of a data set: x = datalist bins= 100 hist(x,bins,normed=0) #returns a tupple (n,bins,patches) Rather trivial... but instead of the plotting the counts n, I'd like to plot the realtive percentage counts, i.e. n/len(x). I can't really use the option normed

Re: [Matplotlib-users] Different matplotlibrc

2008-02-22 Thread Darren Dale
On Friday 22 February 2008 04:45:46 am Troels Kofoed Jacobsen wrote: > Hey everybody > > Is there at way to make matplotlib use a different matplotlibrc than the > one in $HOME/.matplotlib. This is because I want to be able to use > different settings for different plots, e.g one for publishable pl

[Matplotlib-users] Different matplotlibrc

2008-02-22 Thread Troels Kofoed Jacobsen
Hey everybody Is there at way to make matplotlib use a different matplotlibrc than the one in $HOME/.matplotlib. This is because I want to be able to use different settings for different plots, e.g one for publishable plots, and one for daily plotting. Best regards Troels Kofoed Jacobsen ---