Re: [matplotlib-devel] muilti figure backend

2013-09-26 Thread Federico Ariza
I did the PR :)

https://github.com/matplotlib/matplotlib/pull/2465

I tried my best to follow the coding_guide, one thing that I did not
find, were the tests for the interactive backends.

Thanks
Federico

On Wed, Sep 25, 2013 at 3:36 PM, Federico Ariza
 wrote:
> No there is no pull request.
>
> I wanted to get some feedback before, as the development workflow suggested.
>
> Federico
>
> On Wed, Sep 25, 2013 at 3:25 PM, Michael Droettboom  wrote:
>> Is there a pull request open for this? If not, could you create one?
>>
>> Mike
>>
>> On 09/25/2013 03:04 PM, Federico Ariza wrote:
>>> Hello
>>>
>>> To address the concern of display multiple figures at the same time.
>>> I added detach and re-parent methods to the figure manager, so figures
>>> can be programatically redistributed between containers.
>>>
>>> Also I added a couple of tools that I use a lot, one for line
>>> properties and one for axes properties.
>>>
>>> I got rid of the non working linedialog and replaced completely the
>>> FigureManagerGtk3 and Toolbar2Gtk3
>>>
>>> I would greatly appreciate some feedback to see if I am going in the
>>> right direction.
>>>
>>> As I mentioned before, there is not much in terms of documentation
>>> yet, because I do not want to spend time documenting something that I
>>> am not sure is useful to somebody else.
>>>
>>> Thanks
>>> Federico
>>>
>>>
>>>
>>>
>>> On Wed, Sep 18, 2013 at 12:13 PM, Federico Ariza
>>>  wrote:
 I forgot about the diff link.

 https://github.com/fariza/matplotlib/compare/tabbed-gtk3-figuremanager

 I try to place everything where it is supposed to go (backend_bases)




 On Wed, Sep 18, 2013 at 8:38 AM, Phil Elson  wrote:
> No need to be nervous. We are a friendly bunch and this is cool stuff.
>
> I haven't looked at your code (a diff link would be useful), but the 
> obvious first questions would be:
>


> Can I display multiple tabs at the same time (i.e. tab splitting)
 At first sight, I do not see why not, the multiFigureBackend just
 controls adding, removing and switching from one figure to another.
 Giving the toolbar control to the active figure.

> If so, can I programatically control the splitting?
 I was thinking about this, and I think it is possible to add as many
 instances of the MultiFigureManager as we want, and place figures in
 the desired one. Removing and adding them is also possible.

> On that front, did you consider looking at implementing the tabbing in 
> matplotlib itself? Obviously there is nothing there at the moment, but it 
> is conceivable that "tab" buttons could be added to a special "figure" 
> which when clicked change which figure is being rendered in the plot 
> area. Doing so would mean that your GUI doesn't look like native tabs, 
> but it would mean that it would instantly work on all interactive 
> backends. Just a thought.
>
 I did not think about this, but to be honest, I do not like the
 matplotlib widgets :(

> Anyway, I'm not sure how we take this forward - I can't imagine we would 
> want to take on a whole new set of backends for tabbed browsing 
> specifically, but it could potentially be integrated together with the 
> existing backends I suppose.
 As I tried to implement it, if the corresponding MultiFigureBackend is
 implemented for the selected backend,  and
 matplotlib.rcParams['backend.single_window'] = True
 This will be loaded if not, the traditional backend work as always.

 Of course all of these possibilities have to be tested, to see...

> Nice work!
>
> Phil
>
>
>
>
>
> On 18 September 2013 01:07, Federico Ariza  
> wrote:
>> Hello everybody:
>>
>> This is my first post here, I am a little bit nervous, because this is 
>> my first post :D, and also because I want to talk about a touchy 
>> subject
>>
>> In my work I have developped several backends to manage multiple figures 
>> at the same time, from what I see around, this is something that could 
>> be of interest for many people.
>> I have done it in gtk, wx, tk, and now I am doing it again in gtk3.
>>
>> So I thought it would be nice to try to run this idea by you.
>> If you look at the attached images, you will see what I mean.
>>
>> The code is in
>> https://github.com/fariza/matplotlib/tree/tabbed-gtk3-figuremanager
>>
>>
>> I know I should have done another file for the figure manager, but 
>> because it sits in between backend_bases.py and backend_gtk3xxx.py It 
>> was easier for me to test directly inside backend_gtk3.py
>>
>> Other think that I dislike, is that to extend the current backend, you 
>> have to get your hands pretty dirty and understand alot of things to 
>> make sense of how things work.
>>
>> I modified ex

[matplotlib-devel] ploting with two subfigures that share a common axis

2013-09-26 Thread pylepord
Hello,
I am trying to plot data of daily snow percip, wind and accumulated snow
depth. the first two have their own y-axis, but share the same x-axis AND
the same second y-axis as such that the second y-axis is continues in both
plots.

This could be seen in the attachment.
Thanks
Eyal  



--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/ploting-with-two-subfigures-that-share-a-common-axis-tp42108.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] ploting with two subfigures that share a common axis

2013-09-26 Thread Benjamin Root
Sounds like some sort of modification of this example:
http://matplotlib.org/examples/pylab_examples/finance_work2.html

Not exactly sure how you can make that work completely, but this should get
you in the right direction.

Cheers!
Ben Root
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel


Re: [matplotlib-devel] ploting with two subfigures that share a common axis

2013-09-26 Thread pylepord
I would like to have the snow accumulation to be plotted as if the area of
the two subplots is the area of one plot. As you can see in the figure I
posted.
Thanks ahead,
Eyal


On Thu, Sep 26, 2013 at 11:41 AM, Benjamin Root-2 [via matplotlib] <
ml-node+s1069221n42110...@n5.nabble.com> wrote:

> Sounds like some sort of modification of this example:
> http://matplotlib.org/examples/pylab_examples/finance_work2.html
>
> Not exactly sure how you can make that work completely, but this should
> get you in the right direction.
>
> Cheers!
> Ben Root
>
>
> --
>
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
> from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
> ___
> Matplotlib-devel mailing list
> [hidden email] 
> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
>
>
> --
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://matplotlib.1069221.n5.nabble.com/ploting-with-two-subfigures-that-share-a-common-axis-tp42108p42110.html
>  To unsubscribe from ploting with two subfigures that share a common axis, 
> click
> here
> .
> NAML
>



-- 
Eyal Saiet




--
View this message in context: 
http://matplotlib.1069221.n5.nabble.com/ploting-with-two-subfigures-that-share-a-common-axis-tp42108p42113.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk___
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel