<div dir="ltr"><div><div><div><div><div>Yes, it is possible. We call them "ganged plots". Here is an example where it was done in the y-axis:<br><br><a href="http://matplotlib.org/examples/pylab_examples/ganged_plots.html">http://matplotlib.org/examples/pylab_examples/ganged_plots.html</a><br><br></div>There are also other examples that show how to put the axis labels in different places than usual.<br><br></div>Another way to go about this is to use twinx() to get the y-axis labeling to be easy, but then have a specially crafted scale for the x-axis. In the end, that might be more straight-forward, but probably a bit harder to code up at first if you haven't played around with axis locators and formatters.<br><br></div>I hope that helps. Let us know if you have any questions.<br><br></div>Cheers!<br></div>Ben Root<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Dec 21, 2015 at 3:01 PM, Alexander Lindsay <span dir="ltr"><<a href="mailto:adlinds3@ncsu.edu" target="_blank">adlinds3@ncsu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
Attached is a figure showing what I hope to achieve. I have two domains that are connected but which have dramatically different scaling on either side of their interface. I would like the x axis to be in micrometers on one side of the interface and nanometers on the other side. I also want to be able to use a different y-axis on both sides (e.g. range 0 - 1e19 on one side and and range 0 - 1e23 on the other side). Yet I would like to juxtapose the two plots together as shown in the attached figure. Is this possible with matplotlib? If so, what's the best way to go about doing this?<br>
<br>
Alex<br>
<br>_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org">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>