John,
Something like this might be what you want:
from pylab import *
import matplotlib.numerix.ma as ma
import matplotlib.colors as colors
xx = rand(10,15)
xxx = (xx*15 - 5).astype(Int)
xxx = ma.masked_where(xxx < 0, xxx)
xxx.set_fill_value(-1) #(not necessary)
cmap = colors.ListedColormap(('r',
It seems like no one has any comments on our plans concerning the
exponent fonts. Can you outline for me what it would take to fix
this? If it is fairly simple I may take a crack at it.
Ryan
On 6/14/06, Darren Dale <[EMAIL PROTECTED]> wrote:
> I agree that this little experiment of trying to wo
> "John" == John Pye <[EMAIL PROTECTED]> writes:
John> I wonder if someone with write access to the scipy wiki
John> could maybe update the above page with some comments about
John> the 'mathtext' support in Matplotlib? It might also be worth
John> noting that the mathtext func
What I meant to say was that \frac doesn't work for me with the mathtext
renderer, i.e. with usetex=False. Do you find that it *does*?
Cheers
JP
Wolfgang wrote:
>Hi,
>
>frac works for me:
>
>yaxislabel=r'\sffamily water content $\left(
>\frac{\textsf{kg}}{\textsf{m}^{\textsf{\small 2}}}\right)
Hi,
frac works for me:
yaxislabel=r'\sffamily water content $\left(
\frac{\textsf{kg}}{\textsf{m}^{\textsf{\small 2}}}\right) $'
ylabel(yaxislabel)
And you can also set
rc('text', usetex=False)
in your file to enable or disable tex
in my case I did the following:
tex_out=True # False
if tex
Hi all
Is there something missing in pylab that is preventing the flipping of
masked matrices (numerix='numarray'):
from numarray import ma
import pylab
A = ma.array([[1,2],[3,4]],mask=[[1,0],[0,0]])
#print pylab.flipud(A)
A1 = ma.array(pylab.flipud(A.raw_data()),mask=pylab.flipud(A.mask()))
prin