Open symbols in scatter plot

Hi,

I'd like to plot 'open symbols' (i.e. not color filled) w/ scatter. Unfortunately, scatter doesn't support None color:

scatter(randn(5),randn(5), s=(50,), c=None, edgecolor='r')

or

scatter(randn(5),randn(5), s=(50,), facecolor=None, edgecolor='r')

fail w/

ValueError: to_rgb: Invalid rgb arg "None"

Any hint on how to do it? Could None color be supported by scatter, or should I set the markersize of each symbol from a plot command individually?

Cheers.

PS: this is a similar question as http://sourceforge.net/mailarchive/message.php?msg_id=11876753, but there was no answer it seems...

···

--
             / \ , ,
   _._ _ |oo| _ / \__/ \
  _|||| ((/ () \)) / \ Yannick COPIN (o:>* Doctus cum libro
  >>>>>/| ( ==== ) |oo| Institut de physique nucleaire de Lyon
   \____/ _`\ /'_ / \ (IN2P3 - France)
   / /.-' /\<>/\ `\.( () )_._ Tel: (33/0) 472 431 968
   > ` / \/ \ /`'--'////) http://snovae.in2p3.fr/ycopin/
    \__,-'`| |. |\/ |/\/\|"\"` AIM: YcCopin ICQ: 236931013
       jgs | |. | \___/\___/
           > >. | | |

Try

scatter(x, y, alpha=0)

This works for me with GTKAgg and svn, and I expect it will work with 87.7 also.

There was some discussion about how to support something like "c=None", but I don't recall the outcome, and I don't know whether scatter is now an anomaly--but I don't think so. I think we just never got around to implementing a uniform solution. (The idea was that we don't want to use None in the kwarg to mean no color because it is more useful and conventional to have it mean "use the default". Therefore some string (e.g. "blank" or "nocolor" or "empty") should be used to denote "don't paint it at all", and should always work that way when a colorspec is allowed.)

Eric

Yannick Copin wrote:

···

Hi,

I'd like to plot 'open symbols' (i.e. not color filled) w/ scatter. Unfortunately, scatter doesn't support None color:

scatter(randn(5),randn(5), s=(50,), c=None, edgecolor='r')

or

scatter(randn(5),randn(5), s=(50,), facecolor=None, edgecolor='r')

fail w/

ValueError: to_rgb: Invalid rgb arg "None"

Any hint on how to do it? Could None color be supported by scatter, or should I set the markersize of each symbol from a plot command individually?

Cheers.

PS: this is a similar question as http://sourceforge.net/mailarchive/message.php?msg_id=11876753, but there was no answer it seems...