Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
> Try MultipleLocator: > > from matplotlib.ticker import MultipleLocator > halflocator = MultipleLocator(base=0.5) > ax.xaxis.set_major_locator(halflocator) > > etc. Thanks, that works for me. I didn't think I could use non-integers (0.5) because the docs said, "Set a tick on every integer that i

Re: [Matplotlib-users] plotting using an image as background

2011-07-20 Thread Charles R Harris
Hi Robert, On Fri, Jul 15, 2011 at 9:49 AM, robert wrote: > Hi there, > I am all new to mathlib world.. > > What I try to do is plotting some charts over an image. > I would be very grateful, if somebody could provide me with an example. > thanks > robert > > I just did this myself with this cod

[Matplotlib-users] help with code for DurationFormatter

2011-07-20 Thread C M
A runnable code sample is attached. I'm trying to plot durations in time (sec to hours) on the y axis such that if you zoom, it changes the units and axis label appropriately. When run, it looks right. But, when I zoom on the first point, it is shown on the y axis at '0.20' minutes. I would lik

Re: [Matplotlib-users] matplotlib and pyside..

2011-07-20 Thread Gerald Storer
The version of PySide doesn't really matter so long as it is reasonably new. You need a newer version of Matplotlib and yes, the Github master is newer than the current release. Gerald. On 20/07/2011 8:29 PM, lionel chiron wrote: Hi Gerald again, I recuperated the Pyside last version the 1.

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Eric Firing
On 07/20/2011 03:17 PM, C M wrote: > On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever wrote: >> >> >> On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: >>> >>> On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg >>> wrote: > -Original Message- > From: C M [mailto:cmpyt...@gmail.com] > >>

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Gökhan Sever
On Wed, Jul 20, 2011 at 7:17 PM, C M wrote: > On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever > wrote: > > > > > > On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: > >> > >> On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg > >> wrote: > >> >>-Original Message- > >> >>From: C M [mailto:cmpyt...

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
On Wed, Jul 20, 2011 at 7:56 PM, Gökhan Sever wrote: > > > On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: >> >> On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg >> wrote: >> >>-Original Message- >> >>From: C M [mailto:cmpyt...@gmail.com] >> >> >> >>Sorry, this is super-simple, but I'm lost i

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Gökhan Sever
On Wed, Jul 20, 2011 at 5:41 PM, C M wrote: > On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg > wrote: > >>-Original Message- > >>From: C M [mailto:cmpyt...@gmail.com] > >> > >>Sorry, this is super-simple, but I'm lost in the whole > >>locator/formatter part of the docs. > >> > >>How can

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
On Wed, Jul 20, 2011 at 7:24 PM, Buchholz, Greg wrote: >>-Original Message- >>From: C M [mailto:cmpyt...@gmail.com] >> >>Sorry, this is super-simple, but I'm lost in the whole >>locator/formatter part of the docs. >> >>How can I make a locator that just places a tick at every multiple of >

Re: [Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread Buchholz, Greg
>-Original Message- >From: C M [mailto:cmpyt...@gmail.com] > >Sorry, this is super-simple, but I'm lost in the whole >locator/formatter part of the docs. > >How can I make a locator that just places a tick at every multiple of >0.5 around the data? So the y axis would look like: > >3.5 --

[Matplotlib-users] simple question about locator every 0.5

2011-07-20 Thread C M
Sorry, this is super-simple, but I'm lost in the whole locator/formatter part of the docs. How can I make a locator that just places a tick at every multiple of 0.5 around the data? So the y axis would look like: 3.5 -- 3.0 -- 2.5 -- 2.0 -- 1.5 -- 1.0 -- etc. Thanks, Che -

[Matplotlib-users] hot to draw a line connecting a list of points

2011-07-20 Thread robert rottermann
hi there, I would like to draw a a set of lines on top of an image. Somehow I do not get the result I want these are the points ((267, 140), (380, 773), (267, 958)) one of my divers atempts is: pic = plt.imread('../hlwd/effizienz_balken_01.jpg') pic = np.fliplr(np.rot90(pic, k=2)) plt.imshow(pi

Re: [Matplotlib-users] 1d heat map

2011-07-20 Thread Benjamin Root
On Wed, Jul 20, 2011 at 12:15 PM, Pete Shepard wrote: > Hello List, > > I am trying to use the pylab.contourf(X,Y,Z,100) function but I would like > to mplot a 1 dimensional heatmap instead of a 2 dimensional heatmap, Perhaps > "contourf" is not the solution but I do like these plots. > > Any sugg

[Matplotlib-users] 1d heat map

2011-07-20 Thread Pete Shepard
Hello List, I am trying to use the pylab.contourf(X,Y,Z,100) function but I would like to mplot a 1 dimensional heatmap instead of a 2 dimensional heatmap, Perhaps "contourf" is not the solution but I do like these plots. Any suggestions? TIA -

Re: [Matplotlib-users] Customize Tick Labels with Axis Artist

2011-07-20 Thread Jae-Joon Lee
There could be a few ways. What I recommend as a matter of fact is to use other method to draw gridlines. On the other hand, given that you have a working example, it could be better to have different axis to draw ticklabels in locations where you want. Here is a diff. Regards, -JJ *** qqwee2.py

Re: [Matplotlib-users] matplotlib and pyside..

2011-07-20 Thread Gerald Storer
Have a closer look at the example I gave. The currently released version of matplotlib doesn't support PySide at all. So I cheated and simply drew to the generic Agg backend and then copied the whole figure (gcf = get current figure) into a PySide QImage object at the end. The QImage can the