From: Gary R. <ga...@em...> - 2004-05-05 07:29:07
|
John, Once again you've amazed me with your responsiveness to feature ideas. Thanks! Hopefully I'll get sick of my more pressing work soon and have a look at implememnting some other markers, Gary ----- Original Message ----- From: John Hunter <jdh...@ac...> Date: Tue, 04 May 2004 09:03:22 -0500 To: "Gary Ruben" <ga...@em...> Subject: Re: [Matplotlib-users] matplotlib priorities > >>>>> "Gary" == Gary Ruben <ga...@em...> writes: > > Gary> Hi John, I think it would be nice to have a few more line > Gary> and marker types. For example, DISLIN has 24 marker symbol > Gary> types and 8 line types. Perhaps one could specify (perhaps > Gary> in points) the length of the dashes and the spacing between > Gary> them for dashed line types and perhaps even specify the > Gary> pattern of dashes, dots and spaces, but maybe I'm a line > Gary> type control-freak. > > Rightfully so. Ideally everything should be under your control. BTW, > new symbols are fairly easy to add. Just take a look at lines.py. > Basically, you just have to define one new function following the lead > of the many that are already there and one new dictionary entry in > lineMarkers. If you or anyone else defines some custom markers, > please send them my way. > > Gary> Actually, what I'd really like is for the ratio of dashes to > Gary> the breaks between them to be changed. A 3 or 4 to 1 ratio > Gary> looks nicer than what I'm seeing with GTKAgg (about 1 to 1), > Gary> but others' opinions may vary, hence the control-freak > Gary> suggestion. Gary > > Actually this is how dashes are implemented at the renderer level, > with an arbitrary sequence of on off ink in points. All that was > needed was to expose this to the user interface, which I've done with > a new method set_dashes, eg, > > line.set_dashes([5,3,1,12]) # 5 on 3 off 1 on 12 off > > In the next release there will be a new examples/dash_control.py which > illustrates this. > > Thanks for the suggestion, > John -- ___________________________________________________________ Sign-up for Ads Free at Mail.com http://promo.mail.com/adsfreejump.htm |