federico vaggi:
I am drawing a line with n points, using a particle marker -
something like:
x = np.linspace(1,10,11) ** 2
y = np.linspace(1,10,11)
ZZZ=plot(x,y,'ro')
Is there any way to change the 7th dot (7, 49) to be a blue star
instead of a red circle?
I was considering using the scatter function to scatter points 1:6 and
8:10 separately with 'ro' and then scatter 7 with the right
properties... is that the easiest way?
I might be silly, but I believe that this IS the easiest way. In the
program above ZZZ (which I put myself) is a list containing just ONE
Line2D object, with a common set of properties, such as
set_markerfacecolor() or set_marker_size(), and if you use them, all
markers change. The data attached to the plot have no information about
markers. So, if a way exists at all, to change just one marker, it would
be quite involved, and a second plot seems easier than anything else.
But a true specialist might know The Real Magic...
Jerzy Karczmarczuk
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users