How about this for a stationary point:
from pylab import *
def point(x,y):
a=arange(x,x+1,1)
b=arange(y,y+1,1)
plot(a,b, 'ro', ms=3)
show()
This works for me.
Load the module "point"
Run it by typing point(x,y), where x and y are the coordinates you'd like to
see in a plot, and a magical red "point" will appear in your matplotlib
figure. You can change the color and size, of course, by modifying the color
('ro') and markersize ('ms= 3') keyword arguments to suit your needs.
Now just put in a t parameter, I guess.
hussein alshatri wrote:
>
>
> Hi all,
>
> I am new with matplotlib. I want to use matplotlib/animation.
>
> I want to plot a moving point. The information comes from input file that
> include columens as bellow:
>
> #time x_coordinate y_coordinate
>
> I have seen the examples on the website, But I don't know how to configure
> the time.
>
> Could anyone just guide me how to do this or if there is a short example
> it would be great...
>
> Thank you in advanced.
>
> Hussein
> _________________________________________________________________
> Express yourself instantly with MSN Messenger! Download today it's FREE!
> http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the
> world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Matplotlib-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
>
--
View this message in context:
http://www.nabble.com/plot-a-moving-point-from-an-input-file-tp18557820p18562838.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users