Hi all,
I've really been enjoying matplotlib, but in getting my graphs to look just
the way I want, I find myself having to just through some hoops to get
there.
my question is: is there a better way of changing spine, tick, and
ticklabels colors?
Here's what I use right now:
[s.set_color(color) for s in ax.spines.values()]
[s.set_color(color) for s in ax.yaxis.get_ticklines()]
[s.set_color(color) for s in ax.xaxis.get_ticklines()]
[(s.set_color(color),s.set_size(8)) for s in ax.xaxis.get_ticklabels()]
[(s.set_color(color),s.set_size(8)) for s in ax.yaxis.get_ticklabels()]
ax.yaxis.grid(which='major',linestyle='-',color=color,alpha=.3)
I realize that I should probably set the rcParam equivalents before creating
ax. But once I have an axesSubplot ax, what's the best way to fiddle with
these parameters?
you can see a full example here:
http://pirsquared.org/blog/2010/06/07/ca-prop/
best,
Paul Ivanov
--
I only use the 314 gmail account for mailinglists. Please send off-list
personal correspondence to my initials (two letters) at berkeley dot edu.
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users