Hello, I am having trouble with scatter plots. I created a scatter plot of just one point:

s1   = scatter([1,],[1,])

now I want to move this point after its creation and I'm not sure how to do this. I'm been looking around in teh documentation without any success. Is there something that might be close to the following:

s1.set_xydata([2,],[2,])

I can't just clear my axes and redraw the scatter point because it takes too long (there is lots of other stuff on the figure). so I just want to move teh position of the scatter and then do a draw().

any help would be much appreciated! thanks!

Jeff

matplotlib-users-request@lists.sourceforge.net wrote:
Send Matplotlib-users mailing list submissions to
matplotlib-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
or, via email, send a message with subject or body 'help' to
matplotlib-users-request@lists.sourceforge.net

You can reach the person managing the list at
matplotlib-users-admin@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Matplotlib-users digest..."


Today's Topics:

1. Re: visualization tool (Christopher Barker)
2. Re: Bug in WXAgg on OS X and Matplotlib 0.87 (Samuel M. Smith)
3. Re: Packaging matplotlib for Fedora Extras (Orion Poplawski)
4. switch to subversion tomorrow Tuesday 28 Feb (Andrew Straw)
5. Re: Packaging matplotlib for Fedora Extras (Christopher Barker)
6. Re: switch to subversion tomorrow Tuesday 28 Feb (Vincent Favre-Nicolin)
7. Re: Packaging matplotlib for Fedora Extras (Orion Poplawski)

--__--__--

Message: 1
Date: Mon, 27 Feb 2006 09:28:30 -0800
From: Christopher Barker
Subject: Re: [Matplotlib-users] visualization tool
To: matplotlib-users
Organization: NOAA/HAZMAT

> On Sat, 25 Feb 2006, Ryan Krauss wrote:

>> Can anyone recommend a python package for doing this kind of animation?

If you want to use wxPython, then wx.lib.floatcanvas would make this
pretty easy.

-Chris



--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov


--__--__--

Message: 2
Cc: "Samuel M. Smith" ,
matplotlib-users@lists.sourceforge.net
From: "Samuel M. Smith"
Subject: Re: [Matplotlib-users] Bug in WXAgg on OS X and Matplotlib 0.87
Date: Mon, 27 Feb 2006 10:34:02 -0700
To: Christopher Barker

Onsi Fakhouri had the same problem and found a workaround. But I
appreciate your help
the WX_AGG environment variable fixed one problem and your
information on the linking tool should prove useful
to verify that things are getting build correctly.

See my post today titled "Workaround for 0.87 WXAgg bug".
Apparently according to Onsi
there is a bug in the C code, memory is not being allocated correctly.


On 27 Feb, 2006, at 10:24, Christopher Barker wrote:

> Sam,
>
> I wish I could be more help,. but maybe I can help steer your
> efforts bit:
>
>> /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>> site-packages/matplotlib/backends/backend_wxagg.py in draw(self,
>> repaint)
>> 60 FigureCanvasAgg.draw(self)
>> 61
>> ---> 62 self.bitmap = _convert_agg_to_wx_bitmap
>> (self.get_renderer(), None)
>> 63 if repaint:
>> 64 self.gui_repaint()
>> MemoryError: _wxagg.convert_agg_to_wx_bitmap(): could not create
>> the wx.Bitmap
>
> This sure looks like your error occurs when MPL is trying to
> convert from the wxagg internal image storage to a wxBitmap. As a
> test, I'd make sure the pure Agg back-end works fine (have it
> create a PNG). If so then font,s etc have nothing to do withyour
> trouble...it's all about the agg -> wx conversion. that's why I
> thought it could be caused by liniking to the wrong version of wx.
>
> to make sure you have linked to the right version, you can use:
>
> otool -L
>
> on the wxagg libs that MPL builds. That should tell you which wx
> libs you've actuallylinked to.
>
>
> With any luck, I'll have a chance to try to get this working on my
> system this week, and then maybe I'll be more help.
>
> -Chris
>
>
>
>
>
>
> --
> Christopher Barker, Ph.D.
> Oceanographer
>
> NOAA/OR&R/HAZMAT (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
>
> Chris.Barker@noaa.gov

**********************************************************************
Samuel M. Smith Ph.D.
2966 Fort Hill Road
Eagle Mountain, Utah 84043
801-768-2768 voice
801-768-2769 fax
**********************************************************************
"The greatest source of failure and unhappiness in the world is
giving up what we want most for what we want at the moment"
**********************************************************************



--__--__--

Message: 3
Date: Mon, 27 Feb 2006 10:38:59 -0700
From: Orion Poplawski
To: John Hunter
CC: matplotlib-users@lists.sourceforge.net,
Travis Oliphant
Subject: Re: [Matplotlib-users] Packaging matplotlib for Fedora Extras

John Hunter wrote:
>
> w/o addressing your original question (perhaps someone else has an
> opinion there) I suggest you wait until the 0.87.1 bug fix release
> because there is a known problem with 0.87 (images are broken).

When will this be?

--
Orion Poplawski
System Administrator 303-415-9701 x222
Colorado Research Associates/NWRA FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301 http://www.co-ra.com


--__--__--

Message: 4
Date: Mon, 27 Feb 2006 12:30:43 -0800
From: Andrew Straw
To: matplotlib-users@lists.sourceforge.net,
matplotlib development list
Subject: [Matplotlib-users] switch to subversion tomorrow Tuesday 28 Feb

Hi all,

I will endeavor to switch matplotlib to a subversion repository (newly
available courtesy of SourceForge) tomorrow afternoon/evening
(US/Pacific time) unless I hear pleas from developers with unmerged changes.

I believe the new command for anonymous checkout of matplotlib will be:
svn co https://svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib

I'll post the developer checkout command on the matplotlib-devel list
when I figure it out.

Cheers!
Andrew


--__--__--

Message: 5
Date: Mon, 27 Feb 2006 13:52:26 -0800
From: Christopher Barker
Subject: Re: [Matplotlib-users] Packaging matplotlib for Fedora Extras
To: orion@cora.nwra.com
Cc: matplotlib-users@lists.sourceforge.net
Organization: NOAA/HAZMAT

orion@cora.nwra.com wrote:
> I'm the maintainer for python-matplotlib in Fedora Extras.

Thanks for doing that, by the way.

> Is numpy fully functional

I think not quite, and it does change a bit with each release.

> the way of the future

Yes, it is the way of the future, but the future is not quite now.

> I have python-numeric as the required engine at runtime.

Just make it clear:

1) The binary is build so that it will work with all three

2) The question is what is defined as a dependency when you install it,
and what is set as default in matplotlibrc.

If so, I'd stick with Numeric as the default. Those of us on the
Bleeding Edge of Numpy can still use it, but people's older code should
"just work"

As a rule of thumb, I'd wait until Travis calls numpy version 1.0 before
changing the default.

-Chris


--
Christopher Barker, Ph.D.
Oceanographer

NOAA/OR&R/HAZMAT (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@noaa.gov


--__--__--

Message: 6
From: Vincent Favre-Nicolin
To: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] switch to subversion tomorrow Tuesday 28 Feb
Date: Mon, 27 Feb 2006 22:53:05 +0100

Hi,

> I will endeavor to switch matplotlib to a subversion repository (newly
> available courtesy of SourceForge) tomorrow afternoon/evening
> (US/Pacific time) unless I hear pleas from developers with unmerged
> changes.
>
> I believe the new command for anonymous checkout of matplotlib will be:
> svn co https://svn.sourceforge.net/svnroot/matplotlib/trunk/matplotlib
>
> I'll post the developer checkout command on the matplotlib-devel list
> when I figure it out.

It's actually the same command. Only, when committing changes you have t=
o=20
supply username and password using, e.g. --username and --password options.=
=20
But a subversion GUI (I'm happy with esvn for linux & windows) will do that=
=20
for you.
What's really nice, there are no more delay between developers and=20
anonymous access.

Vincent
=2D-=20
Vincent Favre-Nicolin
Universit=E9 Joseph Fourier
http://v.favrenicolin.free.fr
ObjCryst & Fox : http://objcryst.sourceforge.net


--__--__--

Message: 7
Date: Mon, 27 Feb 2006 14:57:05 -0700
From: Orion Poplawski
To: Christopher Barker
CC: matplotlib-users@lists.sourceforge.net
Subject: Re: [Matplotlib-users] Packaging matplotlib for Fedora Extras

Christopher Barker wrote:
>
> Just make it clear:
>
> 1) The binary is build so that it will work with all three
>

Yup. Or at least, that is the goal.

> 2) The question is what is defined as a dependency when you install it,
> and what is set as default in matplotlibrc.
>
> If so, I'd stick with Numeric as the default. Those of us on the
> Bleeding Edge of Numpy can still use it, but people's older code should
> "just work"

Will do. Thanks!

--
Orion Poplawski
System Administrator 303-415-9701 x222
Colorado Research Associates/NWRA FAX: 303-415-9702
3380 Mitchell Lane, Boulder CO 80301 http://www.co-ra.com



--__--__--

_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


End of Matplotlib-users Digest


Yahoo! Mail
Bring photos to life! New PhotoMail makes sharing a breeze.