I was wondering if there is a way to get a effect similar to this example:
http://matplotlib.sourceforge.net/examples/api/two_scales.html?highlight=codex%20two%20scale
Here The yticklabels have the same color as the label, but using host/parasite:
http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html
I tried:
for tl in host.axis["right"].axis.axes.get_xticklabels():
tl.set_color('b')
without success.
Thanks, Filipe.
For your original script that uses axes_grid1 toolkit, you can do something like
host.axis["left"].major_ticklabels.set_color(p1.get_color())
par1.axis["right"].major_ticklabels.set_color(p2.get_color())
par2.axis["right"].major_ticklabels.set_color(p3.get_color())
Note that these are only effective when you use axes_grid1 toolkit.
Regards,
-JJ
···
On Tue, Sep 28, 2010 at 1:35 AM, Filipe Pires Alvarenga Fernandes <ocefpaf@...287...> wrote:
I was wondering if there is a way to get a effect similar to this example:
http://matplotlib.sourceforge.net/examples/api/two_scales.html?highlight=codex%20two%20scale
Here The yticklabels have the same color as the label, but using host/parasite:
http://matplotlib.sourceforge.net/examples/axes_grid/demo_parasite_axes2.html
I tried:
for tl in host.axis["right"].axis.axes.get_xticklabels():
tl.set_color('b')
without success.
Thanks, Filipe.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
matplotlib-users List Signup and Options