position of xtick labels

Hi all,

I would like to add different xtick labels on the top and bottom of a figure. The number and position of the xticks is the same.
How can I do that ?

An example would be appreciated.

Nils

Dear Nils,

you can try to play with
i) ax.axis["right", "top", "bottom", "left"] and their methods (see
setup_axis3 here
http://matplotlib.sourceforge.net/examples/axes_grid/demo_floating_axes.html
for an example)
ii) twinx and twiny axes (example
http://matplotlib.sourceforge.net/examples/api/two_scales.html )

The first one can be a bit confusing with orientations. Once I found
an explanation about it on matplotlib website, but I cannot find it
right now.
The second way creates a second axis that you probably don't need.

Cheers,
Francesco

ยทยทยท

Il 27 aprile 2012 11:48, Nils Wagner <nwagner@...1052...> ha scritto:

Hi all,

I would like to add different xtick labels on the top and
bottom of a figure. The number and position of the xticks
is the same.
How can I do that ?

An example would be appreciated.

Nils

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users