> 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
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
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
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.
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]
>
>>
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...
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
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
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
>
>-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 --
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
-
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
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
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
-
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
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
16 matches
Mail list logo