From: Dani M. O. <dan...@gm...> - 2005-02-09 19:24:22
|
Hi there, Is there an easy way of adding a new symbol in the symbol class? I mean, how can I define a new symbol (a simple vertical line in my case, though its shape doesn't really matter)? I guess it must not be very difficult (maybe using a "symbol function with the prototype symbol(c, x_pt, y_pt, size_pt, attrs)", as read in the documentation), but I can't figure out how this can be done. My idea is to eventually use something like g.plot(graph.data.file("test.dat"), [graph.style.symbol(graph.style.symbol.MY_NEW_SYMBOL, symbolattrs=[...])]) where MY_NEW_SYMBOL is what I don't know how to implement. Thanks a lot in advance, Dani |