<div dir="ltr"><div>Alright, this was my shot at it: <a href="https://gist.github.com/goretkin/d34f287062f6b27e8846">https://gist.github.com/goretkin/d34f287062f6b27e8846</a><br><br></div><div>It seems like the assumption of an  axis-aligned axes is baked in pretty strongly, and maybe that's for the best...<br><br></div><div>I couldn't figure out how tick lines work and why they weren't rotated. The Line2D object has the correct transform. They are lines whose xy_data contain only one coordinate, though something must specify the other end of the tick line (what gives it its length otherwise?) and that is assuming that the axes is axis-aligned. <br><br><br>In [4]: [l.get_xydata() for l in ax.xaxis.get_ticklines()]<br>Out[4]: <br>[array([[ 0.,  0.]]),<br> array([[ 0.,  1.]]),<br> array([[ 2.,  0.]]),<br> array([[ 2.,  1.]]),<br> array([[ 4.,  0.]]),<br> array([[ 4.,  1.]]),<br> array([[ 6.,  0.]]),<br> array([[ 6.,  1.]]),<br> array([[ 8.,  0.]]),<br> array([[ 8.,  1.]]),<br> array([[ 10.,   0.]]),<br> array([[ 10.,   1.]]),<br> array([[ 12.,   0.]]),<br> array([[ 12.,   1.]])]<br><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 26, 2016 at 3:12 PM, Gustavo Goretkin <span dir="ltr"><<a href="mailto:gustavo.goretkin@gmail.com" target="_blank">gustavo.goretkin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hello,<br><br></div>(sorry if you get this message twice. I originally posted to the old sourceforge list)<br><br><div>How can I add an axes to a figure, but specify the transform from axes coordinates to figure coordinates? I want a set of axes (ticks, spines, data, everything) that are rotated?<br><br>Figure.add_axes [1] accepts a box left-bottom-width-height axis aligned box specification. I can't follow in the code where a transform is made out of that, but I basically want a generic transform. Do tick labels, ticks, titles, etc. assume that the axes-to-figure transform is purely a translation?<br><br><br>[1] <a href="https://github.com/matplotlib/matplotlib/blob/e12d103a11cd08adbed348547bdb8182e414e0bb/lib/matplotlib/figure.py#L840" target="_blank">https://github.com/matplotlib/matplotlib/blob/e12d103a11cd08adbed348547bdb8182e414e0bb/lib/matplotlib/figure.py#L840</a><br><br>Thanks,<br>Gustavo<br></div></div>
</blockquote></div><br></div>