## Re: [Matplotlib-users] force the scale of one scatter plot on a second scatter plot

 Re: [Matplotlib-users] force the scale of one scatter plot on a second scatter plot From: Matthias Michler - 2008-05-22 11:51:14 ```Hello, On Wednesday 21 May 2008 17:57:28 PaterMaximus wrote: > I want to make one scatter plot and use the same scales on another. I think > I seen getting the Axes from the first scatter plot using v=axis() and then > setting them on second with axis(v) but I can not get to work. Any help > appreciated Maybe I don't understand correctly, but what you can do with v=axis() and axis(v) is to get the current axes limits and apply them to another axes. Doing so you need to build the second axes by yourself (with axes oder subplot - command) and afterwards apply the limits. regards Matthias ```

 [Matplotlib-users] force the scale of one scatter plot on a second scatter plot From: PaterMaximus - 2008-05-21 17:41:19 ```I want to make one scatter plot and use the same scales on another. I think I seen getting the Axes from the first scatter plot using v=axis() and then setting them on second with axis(v) but I can not get to work. Any help appreciated ```
 Re: [Matplotlib-users] force the scale of one scatter plot on a second scatter plot From: Matthias Michler - 2008-05-22 11:51:14 ```Hello, On Wednesday 21 May 2008 17:57:28 PaterMaximus wrote: > I want to make one scatter plot and use the same scales on another. I think > I seen getting the Axes from the first scatter plot using v=axis() and then > setting them on second with axis(v) but I can not get to work. Any help > appreciated Maybe I don't understand correctly, but what you can do with v=axis() and axis(v) is to get the current axes limits and apply them to another axes. Doing so you need to build the second axes by yourself (with axes oder subplot - command) and afterwards apply the limits. regards Matthias ```
 Re: [Matplotlib-users] force the scale of one scatter plot on a second scatter plot From: John Hunter - 2008-05-22 16:39:59 ```On Wed, May 21, 2008 at 10:57 AM, PaterMaximus wrote: > I want to make one scatter plot and use the same scales on another. I think > I seen getting the Axes from the first scatter plot using v=axis() and then > setting them on second with axis(v) but I can not get to work. Any help > appreciated Try using shared scales: ax1 = subplot(211) ax2 = subplot(212, sharex=ax1, sharey=ax1) JDH ```