John Hunter wrote:
Christopher == Christopher Barker [EMAIL PROTECTED] writes:
Christopher Just as a note, if you have Cairo, you have PS, PDF,
Christopher SVG, raster, and, indeed, native draw-to-the-screen
Christopher functionality.
Last I checked if I recall correctly, about
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
, but I think I'll probably build Numeric an NumPy
in anyway, as it's not hard to do.
Eric Firing wrote:
For testing you may also take advantage of command-line arguments:
python examples/image_demo.py --Numeric
Excellent! that will make things much easier.
-Chris
--
Christopher Barker, Ph.D
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
to it last time. We'll need to put a new
numpy mpkg on pythonmac.org at the same time. I'd be glad to do that, if
it helps, but I need to make sure we use the same version.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206
for
ideas?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
.
Wow, that turned out to be a long way to say:
+1 on re-setting the reply-to headers.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115
is the maximum precision in Postscript? It seems unlikely that you
could plot 80,000 points and not have number of them overlap, unless
it's clipped, so removing essentially redundant points may be another
way to to go.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Charlie Moad wrote:
I just uploaded working (at least for me)
versions to sourceforge again.
Charlie,
What are your plans for an OS-X build? Is it time?
We'd need a new numpy build too -- that I could do.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
of
these days
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED]
578a579
Charlie Moad wrote:
Try the ones I added to the link above. I already had a mpl build on
sf. Numpy is also at the link now.
Thanks Charlie. These seem to work, on the simplest of scripts, anyway.
Did you build the wxPython accelerator into it?
-Chris
--
Christopher Barker, Ph.D
that are only 0.1pt from each-other.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
-py2.4-macosx-10.4-fat.egg
(if you want to use numpy)
Charlie: I think we should give those to Bob I to put on the pythonmac site.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point
automatically
destroys itself when the user clicks on it or it loses the focus.
You may also use this class to emulate the tooltips when you need finer
control over them than what the standard tooltips provide.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
other windows -- at least when the mouse is over an exposed
part of the window. That's probably a wx issue.
Python 2.4.3
wx.__version__
'2.6.3.0'
matplotlib.__version__
'0.87.5'
wxGTK on on Fedora core 4 linux.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
it.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
I'll send a
note to wxpython-users about this.
I've enclosed a wxpython tiny test app, to isolate matplotlib issues. It
has the same behavior. does the tooltip follow the mouse on Windows (or
OS-X)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
try the non-agg TK
back-end.
If not, then you've apparently found a tkAgg bug.
TK has always been a bit of a second-class citizen on the Mac -- why
haven't you switched to wx yet? ;-)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR
/DevCenter/EasyInstall
then type:
easy_install whatever.egg
on the command line.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115
. Or subclass it.
That does seem the way to go. David, I've done stuff like this for the
wxPython FloatCavnas -- perhaps I can help, if you want to do it.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600
@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526
not using MPL much at this point, so It's hard to justify)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main
Russell and Charlie,
Are your two binaries any different? Any reason to choose one over the
other? In particular, which of these are supported:
numpy 1.*
Numeric
numarray
GTK
TK
wx (which version?)
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
of the compile-time
dependence on wx -- that's a problem anyway. For instance, I'm not sure
we should make the pythonmac binary depend on wxPython 2.7 -- that is a
development version -- 2.6.3 may be a better choice.
If only we all didn't have other things to do...
-Chris
--
Christopher
switched over
already.
-Chris
PS: you haven't been sending your notes to the list.
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115
2.6 for Python2.5 at:
http://www.wxpython.org/download-2.6.3.3.php
Maybe I'll ask Bob to put that up on pythonmac -- the 2.7 one is out of
date already anyway. Let me know how it works.
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR
a
self-installed libfreetype, just for these reasons.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL
Piter_ wrote:
If I start python (2.3).
from pylab import *
plot([1,2,3])
nothing happens.
what if you then type:
show()
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329
_transform a property, and
code that gets and sets it directly should still work. though People
that were accessing an underscored name directly should expect this kind
of problem.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959
really wish we could drop
Numeric and numarray support *now* and start taking full advantage of numpy.
I'd love that too. Maybe your proposal is a good one, though -- make
numeric functions that are optimized for numpy. I think that's a good
way to transition.
-Chris
--
Christopher Barker
into the decision to do it this way.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
to using wx Drawing calls. And someone still has to
write the code ---
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main
., 22., 23.]]])
This is one of those cases where There should be one obvious way to do
it is failing :-(
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA
). For example:
if you have an 800x600 bitmap at 100dpi, you have a 8x6 picture. If
you make it 200 dpi, you now have a 4x3 picture, with smaller dots.
Does that help any?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
, but you can get a SanSerif font.
\rm{} means Roman Font
you want:
\sf{} (Sans Serif Font)
-Chris
NOTE: I've never used this with MPL, but that's the LaTeX way.
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand
to be able to
query an interactive property somewhere? Does it live only in pylab now?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
interactively -- that's a bit too much code to want to type at the
command line.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317
not tested this recently, but it all should work!
PPS: Belinda, now that you've done all this work, I do hope you can go
the extra mile and figure out how to make a binary package of it all for
others!
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR
drawing of lots of stuff, and for embedding in a
program -- not interactive use.
I do like the default redraw of False that can be overridden -- but how
many places will that have to be added to the code?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR
Jeff Whitaker wrote:
Chris: In the pylab interface, figure() returns a figure instance and
plot(x,y) returns a list of Line2d instances.
yes, but it's the axis instance that you are most likely to need!
- Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
://www.astro.washington.edu/rowen/pythonpackages/Python%202.5/
matplotlib.__version__
'0.87.7'
wx.__version__
'2.8.0.1'
numpy.__version__
'1.0.1'
Numeric.__version__
'24.2'
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
have commit privileges and
have worked on wx,
Ken has said he's going to try to take a look soon, but we're all busy!
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
have to close the figure window to get your prompt back.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL
.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
seen a package for that.
Why do you want to use pygtk on a Mac? why not TK or wx, or even try the
cocoa back-end, though I have no idea what state that is in.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
NOAA/ORR/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526
with the compiler that produces some recent data I
needed).
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
Stephen:
Russell E Owen wrote:
It's up. Bob Ippolito put it up shortly after he got back from vacation.
So this should work, with the Python, numpy, wxPython2.6.3 that are also
there:
http://pythonmac.org/packages/py24-fat/index.html
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
what ActiveState's goal are with their build. At one point
they had a package repository of some kind -- do they now?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Jonathan Kane wrote:
The file I downloaded was ScipySuperpack-Intel-10.4-py2.4
matplotlib was a part of that package.
Who built/maintains that package? Anyone know what back-ends it supports?
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR
haven't leaped on it -- I need wx.
Maybe I'll see if I can help him get set up to build wxAgg also, and
we'll have our cake and be able to eat it too...
Thanks,
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand
. The pythonmac Wiki has had troubles lately,
I'm afraid, though it seems to be up at the moment:
http://www.pythonmac.org/wiki
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329
performance with pure python. You'd still need to do the
wxBitmapFromImage thing, but the accelerated back-end does that too.
Look for a thread on this list a while back, with my and Ken's name on it.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR
for interactive use, particularly the docs!
Note that this discussion is early! I am wy not here yet; first step
is to fix the docstrings.
Yes, enough said for now -- and I really appreciate your efforts to
clean up the docstrings.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency
cause a problem with earlier
versions of wxPython.
The other I know about is some oddities with the toolbar on OS-X -- I
think those are OS-X only issues.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
Jeff Peery wrote:
ok so sourceforge only has down to wxpython2.7... is there a link to
earlier versions that I'm not seeing? thanks.
You're right -- they are hard to find! This should do it, though:
http://www.wxpython.org/download-2.6.3.3.php
-Chris
--
Christopher Barker, Ph.D
if the OO interface were just as easy to use.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
the
above interface or the new buffer protocol that's being discussed:
http://projects.scipy.org/scipy/numpy/browser/trunk/numpy/doc/pep_buffer.txt
The numpy folks will be able to help.
By the way, this is a good example why the above PEP is a good idea!
-Chris
--
Christopher Barker, Ph.D
John Hunter wrote:
On 2/27/07, Christopher Barker [EMAIL PROTECTED] wrote:
There is nothing inherent in OO
design that makes it necessary to write a bunch more code.
I don't agree with this at all. Inherent in OO design is object
creation, attribute setting and method calling. pylab
,
advocating the current practice.
As well written as that essay is, I think it's based on false
assumptions and inappropriate priorities.
But I lost that one.
-Chris
PS: I almost sent this only to Bill!
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR
to make it easier to build GUIs with
wxPython, which I think is the best choice for cross-platform GUIs.
Dabo, in particular, is oriented toward data-aware widgets, which could
be a very good match for small scientific computation tools.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency
of things with it. There's a mailing
list for questions, too:
http://mail.mithis.com/cgi-bin/mailman/listinfo/floatcanvas
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329
, FloatCanvas works with
2.6 and 2.8.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
.
I use mpl v 0.87, wx 2.6. and python 2.4 on my ppc mac.
I think mpl 9.0, python 2.5 and wx 2.6 will work OK too. I'm working
right now on getting a version that will work well with wxPython2.8 --
but I'm not there yet.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response
PNG. No need to switch back-ends. The plain Agg
back-end is there for things like web apps, where you may not be able to
run a GUI at all.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE
with wxPython 2.8
What we really need to do is get Ken's changes into a release, but I
have my immediate needs met.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA
Stephen Uhlhorn wrote:
Do I need to manually remove _wxagg.so in order to use the new packages?
if you want to use them with wxPython 2.8.*, yes.
They *should* work with 2.6.*, with _wxagg.so, but I haven't tested
that. This should all be better with the next release.
-Chris
--
Christopher
) install wxpython frim macpython
3) install numpy/mpl from macpython
4) remove wxagg.so
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317
is slow because you're drawing lots of stuff, it won't
make a difference, as it only effects the transfer of the final image to
the screen.
I don't' think you'll notice unless you're doing some kind of animation.
-Chris
-stephen
On 4/12/07, Christopher Barker [EMAIL PROTECTED] wrote:
Stephen
ednspace wrote:
I'm using WXpython and the OO api of matplotlib.
Have you tried wxAgg? if nothing else, it should look better. It would
be interesting to see if it behaves differently as far as memory is
concerned.
Also, be sure to post your versions and platform.
-Chris
--
Christopher
positives', fontsize = 10)
pylab.ylabel('True positives', fontsize = 10)
# pylab.axis([0.0, 1.0, 0.0, 1.0])
pylab.show()
I get values between 0.0 and 1.0
I'm running OS-X 10.4 Python2.5
numpy.__version__
'1.0.2'
matplotlib.__version__
'0.90.0'
-Chris
--
Christopher Barker
generating.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
, for instance? Id
think putting it on the Wiki would count. Key is that copyright is
properly attributed.
I assume there is someone at IEEE that you could ask.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point
. It
could be great for future stuff with more 3-d though.
VTK is worth a look for you, as well.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
inkscape has no trouble reading the .svg files created by MPL, and
Word has no trouble reading the .eps files created by inkscape.
hmm. I wonder what it is about MPL's .eps files that Word doesn't like.
Bug in MPL or Word??
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency
:
import matplotlib
matplotlib.use(Agg)
at the top of your script, BEFORE any mpl calls, including import
pylab, if indeed you import pylab at all.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE
to check out wxMPL if
you want to use wxPython.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
there is some optimization
for integer exponents.
indmin = int(numpy.nonzero(distances.min()==distances)[0])
here you can use argmin:
indmin = numpy.argmin(distances)
of course, what you'd really want is a spatial index
All untested
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
string:
matrix = numpy.fromstring(buffer, dtype=numpy.byte)
lotlib-users
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
= numpy.fromstring(buffer, dtype=numpy.byte)
matrix.shape = (l,h,4) # 4 for a,r,g,b
sub_matrix = matrix[min_x:max_x, min:y_max_y, :]
r.draw_image (0, 0, sub_matrix.tostring())
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600
/AdjustingImageSize
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
running the enclosed, about-as-small-as-it-gets
wxPython app, and see if you get the same warning.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115
added to the thread) unless you make a point of deleting the extra
receiver. I try to do that, but it is a pain.
However, this has been argued out, and a decision made, so I probably
shouldn't have written this. Sorry.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response
by ten when writing the postscript -- still a bit of kludge.
I'm not sure what MPL does.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526
., 6., 9., 12., 15., 18., 21., 24., 27., 30., 33.,
36., 39., 42., 45., 48., 51., 54., 57., 60., 63., 66.,
69., 72., 75., 78., 81., 84., 87., 90., 93., 96., 99.])
fewer surprises with floating point oddities.
-Chris
--
Christopher Barker, Ph.D
John Hunter wrote:
fig = figure()
fig.canvas.manager.window.move(100,400)
Well, the example I posted was for a *gtk* window, not a tk window.
And, for what it's worth, wx spells it Move(), with a capital M.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
the figure with a GUI, but I don't think you want that.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL
'
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
,
unless you want to save a bit of disk space.
--running off to test this myself
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317
with Matplotlib? Maybe in
toolkits, if not the main distro.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL
, then they should be labeled somehow,
and both be up on python mac.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
their strengths also.
As a JAVA coder, I recommend you read:
http://dirtsimple.org/2004/12/python-is-not-java.html
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle
to go
too -- it's more or less the same everywhere.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
Barry Wark wrote:
We're just hoping to integrate the
plot output with the Quartz rendeirng system more completely -- a very
platform specific goal.
Fair enough, and MPL as a whole could learn from your work too. Do
please report your progress.
-Chris
--
Christopher Barker, Ph.D
, for
instance.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/ORR(206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED
1 - 100 of 284 matches
Mail list logo