-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Folks,

I have an array A=f(x) with a family of curves.  Is there an easy way to
get a different marker for each line of plot(x,A).  This is what I
currently have:

mrkrs=array(['o','^','v','<','>',
             's','+','x','D','d',
             '1','2','3','4','h',
             'H','p','|','_'])

ii=0
for kk in arange(A.shape[0]):
    loglog(f,A[kk],
           linestyle='-',
           marker=mrkrs[ii],
           lw=2)
    if ii < mrkrs.size-1:
        ii+=1
    else:
        ii=0


This works, but it's not very elegant.

Thanks,
Dave

- --
David D. Clark
Electrical Engineer
P-23, Neutron Science and Technology
e-mail mailto:[EMAIL PROTECTED]
GPG Public key 0x018D6523 available at http://pgp.mit.edu
http://www.gnupg.org has information about public key cryptography

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFHBTDkNu7GcwGNZSMRAgFkAJ9wddLwHjGCI805Jb6jokaHjSwGPwCgjwh/
iTbqezvL5vHIv5JGRxAVPyo=
=hOfF
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to