D[i,j]
gave me the right data, so it really looks like a bug with spy().
And FWIW spy2(M) fails with an error, whereas spy2(D) shows the same bug
as spy(D).
Is this something that has been fixed in the new 0.90 release?
Cheers
JP
--
John Pye
Department of Mechanical and Manufacturing Engin
tlib.sourceforge.net/whats_new.html (bit out of date)
Cheers
JP
Eric Firing wrote:
> > John Pye wrote:
>
>> >> Hi all
>> >>
>> >> I have got some funny behaviour here that looks like a bug with the
>> >> spy() function.
could have a go
at doing it myself, else I'd be happy to test it or whatever.
Cheers
JP
--
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Australia
http://pye.dyndns.org/
---
Hi all
Can anyone tell me whether or not it is straightforward to run
matplotlib on OpenSUSE 10.2?
My project has a dependency on matplotlib and I have a user on that
platform who tells me that it's not available as an RPM in the SUSE
repository. Can that really be true?
Cheers
JP
--
Hi all
I have a problem with 'imshow' under matplotlib 0.90.1-2ubuntu1 on
ubuntu 7.10. I have an 'incidence matrix' created using the 'imshow'
command, and it works well except for the fact that sometimes when
resizing my window, the incidence matrix flips upside-down.
Can I control this flippin
points as well.
Is this possible with matplotlib? Can anyone give me some pointers on
how to do it? Or a better tool for this?
Cheers
JP
--
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney NSW 2052 Australia
t +61 2 9385 5127
f +61 2 9663 1222
the right axes.
Cheers
JP
10 +-|-|-+
| |
| |
1 + + + +
| |
| my image here |
0.1+ + + +
| |
| |
e-3+-+-+-+
0.11 10 100
John Hunter wrote:
>>>>>> "John" == John Pye <[E
pace(low,high,num):
return pylab.exp(pylab.linspace(pylab.log(low),pylab.log(high),num))
Perhaps someone else could clarify whether or not this implementation is
100% compatible with the Matlab one.
Cheers
JP
John Hunter wrote:
>>>>>> "John" == John Pye <[EMAIL PROT
this? It seems that
the technique in
http://www.scipy.org/Cookbook/Matplotlib/Plotting_Images_with_Special_Values
might be overkill, right? It also seemed that it had some problems with
masked arrays.
Cheers
JP
--
John Pye
School of Mechanical and Manufacturing Engineering
The University of
usetex' approach
fails in that case.
I wonder if someone with write access to the scipy wiki could maybe
update the above page with some comments about the 'mathtext' support in
Matplotlib? It might also be worth noting that the mathtext
functionality doesn't support the
olors={
2:(1,0,0,1)
,7:(0,1,0,1)
}
B = enumimage(A1,colors)
print "B =",B
pylab.figure()
pylab.hold()
pylab.imshow(B,interpolation='nearest',extent=0.5+nx.array([0,nx.size(A,0),nx.size(A,1),0]))
pylab.axes
pylab.show()
John Pye wrote:
&
pud(A.mask()))
print A1
Is there a better way to do this so that I can just write
pylab.flipud(A)? Does it work ok with numpy?
Cheers
JP
--
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney NSW 2052 Australia
t +61 2 9385 5127
f +61 2
/m2)'
> rc('text', usetex=False)
>
>It's perhaps not the mose elegant way to do, but I'm quite new to
>python/pylab/matplotlib
>
>
>Wolfgang
>
>John Pye schrieb:
>
>
>>Hi all
>>
>>I came across this page: http
go.
>
> As noted, the masked regions will have a specified color; they will
> not be transparent. If you need transparent masked regions, then try
> pcolor instead of imshow. Pcolor plots nothing at all in masked
> cells. Pcolormesh, on the other hand, is like imshow in plotting the
Hi all,
A thought just occurred to me: I wonder if it would be useful to be able
to 'pickle' Matplotlib plots, using the python cPickle library. This
way, I could save my plots in a form that would allow me to load them
back later (with just the necessary source data) and fiddle with things
like t
.cvs.sourceforge.net/freesteam/freesteam/freesteam.i?revision=1.16&view=markup
(this is from the steam properties project that I run,
http://freesteam.sf.net/)
Cheers
JP
Bryan Cole wrote:
>On Sun, 2006-06-18 at 00:05 +1000, John Pye wrote:
>
>
>>Hi all,
>>
>>A t
$")
A couple of misaligned contour labels (eg '27' in the below)
Any suggestions?
This is with the latest Matplotlib 0.87.3, Python 2.4, ubuntu 6.06.
Cheers
JP
--
John Pye
Department of Mechanical and Manufacturing Engineering
University of New South Wales, Sydney, Austra
)
X = ma.array(X,mask=B.mask())
Y = ma.array(Y,mask=B.mask())
figure()
pcolor(X,Y,B,alpha=0.15,shading='flat',cmap=C)
hold(True)
contour(x,y,B)
xlabel('something')
ylabel('else')
Cheers
JP
John Hunter wrote:
>>>>>> "John" == John Pye <[EMAIL
that would facilitate
me doing this? Is there a way I can do this without having to patch
matplotlib? It seems like this would be a generally useful addition to
the event handling stuff for figure windows.
Cheers
JP
--
John Pye
Department of Mechanical and Manufacturing Engineering
University of
only the
> coord in the toolbar.
>
...
> Try
>
> def myfmt(x,y): return 'myfmt (%1.2f, %1.2f)'%(x,y)
> ax = subplot(111)
> ax.format_coord = myfmt
> ax.plot([1,2,3])
>
> JDH
>
>
>
--
John Pye
Department of Mechanical and Manufacturing Eng
I think this may be what you need
http://matplotlib.sourceforge.net/matplotlib.colors.html#LinearSegmentedColormap
As I recall there are some examples floating around somewhere, perhaps
on the wiki...
Cheers
JP
James Boyle wrote:
> I am interested in producing a color map and accompanying color
On FC4 (and FC5) we've got version 3.0 of tetex:
$ rpm -q tetex
tetex-3.0-10.FC4
So it looks like the Badger's dragging the chain in this case :-)
Fernando Perez wrote:
>But aside from my own troubles, I suspect that if you guys release
>0.87.4 with this bug, I won't be the only one complaining
Hi Lane,
I don't have any answers for you here, but I do wonder if you might
gains some insight on this by looking at the way IPython handles its
'-pylab' and '-gthread' etc flags?
Cheers
JP
Lane Brooks wrote:
>So my question is: what is the correct way to setup python and/or
>matplotlib when
even if a cell in the grid only has data on two sides?
I suspect that the rule for contour plots is that no contours are shown
if *any* of the point on the four corners are missing.
There is an example with the jagged edge shown in the attached image.
Cheers
JP
--
John Pye
School of Mechanica
Hi,
Just wanted to let you know that the link at to the Numeric Python
tutorial at
http://matplotlib.sourceforge.net/tutorial.html
is broken.
Cheers
JP
--
John Pye
School of Mechanical and Manufacturing Engineering
The University of New South Wales
Sydney NSW 2052 Australia
t +61 2
25 matches
Mail list logo