<div dir="ltr"><div>What did you do for the new_fixed_axis portion of the code? That is the key part. If the location isn't set correctly there, the direction will be incorrect.<br><br></div>Ben Root<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 14, 2016 at 9:50 AM, Neal Becker <span dir="ltr"><<a href="mailto:ndbecker2@gmail.com" target="_blank">ndbecker2@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">Thanks, but I want 2 scales on the bottom.  The scale produced by twiny seems to go on the top.  While I can fix the position with <div><div>ax_c = ax_f.twiny()</div><div>fig.subplots_adjust(bottom=0.2)</div><div>ax_c.spines["top"].set_position(("axes", -0.2))</div></div><div><br></div><div>that will leave me with x-axis label and tick marks going the wrong way for the bottom</div></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On Thu, Jan 14, 2016 at 9:43 AM, Benjamin Root <span dir="ltr"><<a href="mailto:ben.v.root@gmail.com" target="_blank">ben.v.root@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><div>Just do a parasite axis using axisartist. This example does have two plots, but you don't have to do the first one: <a href="http://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html" target="_blank">http://matplotlib.org/examples/axes_grid/demo_parasite_axes2.html</a><br><br></div>Cheers!<br></div>Ben Root<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 14, 2016 at 8:15 AM, Neal Becker <span dir="ltr"><<a href="mailto:ndbecker2@gmail.com" target="_blank">ndbecker2@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I'm trying to make a plot which has 2 scales (linearly related), but just 1<br>
set of data.  I've seen many examples with 2 plots and 2 scales, but that's<br>
not what I need here.<br>
<br>
I blindly followed some examples and was able to make a pretty good plot<br>
with one scale on bottom and one on top.  I'd like to see how it looks with<br>
2 scales on the bottom, with an offset between them, but I don't know how to<br>
do it.<br>
<br>
Attached is the current version.<br>_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><i>Those who don't understand recursion are doomed to repeat it</i></div></div>
</font></span></div>
</blockquote></div><br></div>