matplotlib priorities

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 <jdhunter@...4...>
Date: Tue, 04 May 2004 09:03:22 -0500
To: "Gary Ruben" <gazzar@...25...>
Subject: Re: [Matplotlib-users] matplotlib priorities

    > Hi John, I think it would be nice to have a few more line
    > and marker types. For example, DISLIN has 24 marker symbol
    > types and 8 line types. Perhaps one could specify (perhaps
    > in points) the length of the dashes and the spacing between
    > them for dashed line types and perhaps even specify the
    > pattern of dashes, dots and spaces, but maybe I'm a line
    > 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.

    > Actually, what I'd really like is for the ratio of dashes to
    > the breaks between them to be changed. A 3 or 4 to 1 ratio
    > looks nicer than what I'm seeing with GTKAgg (about 1 to 1),
    > but others' opinions may vary, hence the control-freak
    > 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