Maybe with the new spines support in 0.99 this could be an
attribute/method on the spine?
Mike
On 08/27/2009 02:18 PM, Jae-Joon Lee wrote:
> I don't think there is a direct support for this in mpl and I guess
> only way is to adjust the parameters of each ticks.
>
> def set_ticks_both(axis):
>
It's important to note that we're not, as far as I'm aware, considering
anything lighting or ray-tracing-like yet. I'm not sure that Phong
shading actually makes sense without doing that. The Gouraud shading
we're in the process of implementing uses only explicit colors specified
in the plot,
I don't think there is a direct support for this in mpl and I guess
only way is to adjust the parameters of each ticks.
def set_ticks_both(axis):
ticks = list( axis.majorTicks ) # a copy
ticks.extend( axis.minorTicks )
for t in ticks:
t.tick1On = True # tick marker on left (or
Christian Meesters wrote:
>> Christian: That should work, if you created the masked array
>> correctly. Why are you creating the mask with data=='NA'? I suspect
>> that this always evaluates to False, so you don't get a mask. You
>> probably want to check for a numeric value, not a string.
> Christian: That should work, if you created the masked array
> correctly. Why are you creating the mask with data=='NA'? I suspect
> that this always evaluates to False, so you don't get a mask. You
> probably want to check for a numeric value, not a string. For example:
Thanks a lot, Je
Christian Meesters wrote:
> Hi,
>
> I have a 2D masked array, created like:
>
> import numpy as np
> data = np.ma.array(data, mask=[data == 'NA'])
>
> which I would like to plot as a heatmap.
>
> import pylab
>
> pylab.pcolor(data)
> or
> pylab.pcolormesh(data)
>
> Well, it works with any array, bu
Some of my plots are very wide. I'd like Y axis labels on both sides so
that it's clearer to read the bars towards the right hand side.
I can change the ticks with yaxis.set_ticks_position("both") but there
doesn't seem to be a similar call for labels. Any ideas?
Thanks,
Peter
---
Hi,
I have a 2D masked array, created like:
import numpy as np
data = np.ma.array(data, mask=[data == 'NA'])
which I would like to plot as a heatmap.
import pylab
pylab.pcolor(data)
or
pylab.pcolormesh(data)
Well, it works with any array, but not if masked values are in there.
Can somebody su