How to offset tick labels?
- To: mathgroup at smc.vnet.net
- Subject: [mg113177] How to offset tick labels?
- From: István Zachar <zac at freemail.hu>
- Date: Sat, 16 Oct 2010 13:13:25 -0400 (EDT)
Dear Group, is there a way to shift/move/offset tick and frametick labels in e.g. ListPlot? The following example uses rotateted frametick labels gradually increasing in size. This seemingly causes misplacement of labels compared to tickmarks. I would like to place every label such a way that its top left side aligns to the actual tickmark instead of its center. I am aware that such a thing can be done with charts, however I have to stick with simpler plotting functions. len = 10; data = {#, len + 1 - #} & /@ Range@len; ticks = MapThread[List[#1, Rotate[#2, -45 \[Degree], Offset[{1000, 10}, {0, 0}]]] &, {Range@len, StringJoin@Table["x", {#}] & /@ Range@len}]; ListPlot[data, Frame -> True, Axes -> False, FrameTicks -> {{Automatic, Automatic}, {ticks, None}}] Thanks for any suggestions in advance. Istvan