Re: [Matplotlib-users] synchronize magnification of subplots?

2015-02-03 Thread Neal Becker
Paul Hobson wrote:

> I only have the notebook to mes around in, but the following works for me:
> 
> %matplotlib nbagg
> import matplotlib.pyplot as plt
> 
> fig, ax = plt.subplots(nrows=2, sharex=True, sharey=True)
> 
> On Tue Feb 03 2015 at 4:07:26 PM Neal Becker
>  wrote:
> 
>> I have 2 subplots, 2 rows 1 col.  They have the same x-axis.
>>
>> I'd like to be able to zoom in on both plots together.  Using qt4agg,
>> there is a
>> zoom icon, but it seems to operated on each subplot separately.
>>

Thanks for the quick replies!  This works fine.


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] synchronize magnification of subplots?

2015-02-03 Thread Marcel Milcent
You can also use (
http://matplotlib.org/examples/pylab_examples/shared_axis_demo.html):

ax2 = subplot(212, sharex=ax1)


Em Tue Feb 03 2015 at 22:13:44, Paul Hobson  escreveu:

> I only have the notebook to mes around in, but the following works for me:
>
> %matplotlib nbagg
> import matplotlib.pyplot as plt
>
> fig, ax = plt.subplots(nrows=2, sharex=True, sharey=True)
>
> On Tue Feb 03 2015 at 4:07:26 PM Neal Becker  wrote:
>
>> I have 2 subplots, 2 rows 1 col.  They have the same x-axis.
>>
>> I'd like to be able to zoom in on both plots together.  Using qt4agg,
>> there is a
>> zoom icon, but it seems to operated on each subplot separately.
>>
>> --
>> -- Those who don't understand recursion are doomed to repeat it
>>
>>
>> 
>> --
>> Dive into the World of Parallel Programming. The Go Parallel Website,
>> sponsored by Intel and developed in partnership with Slashdot Media, is
>> your
>> hub for all things parallel software development, from weekly thought
>> leadership blogs to news, videos, case studies, tutorials and more. Take a
>> look and join the conversation now. http://goparallel.sourceforge.net/
>> ___
>> Matplotlib-users mailing list
>> Matplotlib-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>>
> 
> --
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


Re: [Matplotlib-users] synchronize magnification of subplots?

2015-02-03 Thread Paul Hobson
I only have the notebook to mes around in, but the following works for me:

%matplotlib nbagg
import matplotlib.pyplot as plt

fig, ax = plt.subplots(nrows=2, sharex=True, sharey=True)

On Tue Feb 03 2015 at 4:07:26 PM Neal Becker  wrote:

> I have 2 subplots, 2 rows 1 col.  They have the same x-axis.
>
> I'd like to be able to zoom in on both plots together.  Using qt4agg,
> there is a
> zoom icon, but it seems to operated on each subplot separately.
>
> --
> -- Those who don't understand recursion are doomed to repeat it
>
>
> 
> --
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is
> your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> ___
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users


[Matplotlib-users] synchronize magnification of subplots?

2015-02-03 Thread Neal Becker
I have 2 subplots, 2 rows 1 col.  They have the same x-axis.

I'd like to be able to zoom in on both plots together.  Using qt4agg, there is 
a 
zoom icon, but it seems to operated on each subplot separately.

-- 
-- Those who don't understand recursion are doomed to repeat it


--
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
___
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users