|
From: David D C. <dd...@la...> - 2007-10-04 18:29:12
|
-----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:dd...@la...
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-----
|