From: Jean-Baptiste C. <Jea...@de...> - 2004-03-02 10:09:12
|
S=E6l=20 Thanks for the detailed answerS I will try to go one step further for the u= nclear question. I hope this will help other users too :) > - I want to systematically disable the vertical zoom/move on the > second subplot, but not the first. How can I do that ? >=20 > Well, when the menu is working properly that is how you do it. By > "systematically", do you mean by default so it's disabled when the > plot comes up? >=20 > If so, this depends on how you are building your GUI window. > Basically you need to get your hands on the gtk.Toolbar instance, > which contains an omenu (gtk.OptionMenu) attribute (wait until the > next release, a couple of days, where I've cleaned this up a bit). > Eg, if you are using the matlab interface >=20 > manager =3D get_current_fig_manager() > items =3D manager.toolbar.omenuItems > items[-1].set_active(False) >=20 > Turns off navigation for the last subplot. items[0] would turn off > navigation for the first subplot, and so on. Indeed I meant 'by default' and you answered partially my question. I would like to disable only the veritcal zoom, not the horizontal one. Is it possible ? > - How can I activate a tooltip on top of my plots ? >=20 > You'll have to read up on gtk tooltips. Depends on what elements you > want to add tips to. Give me a little more info. DO you want to add > tips to the navigation buttons or lines on your plot or text elements > or what? I am aware of tooltips in pygtk, and I would liek to use them on the axes o= nly. As I understood those axes are included in a figure which is a DrwaingArea.= But DrawingArea do not accept tooltip easily. Did you implement a workaround to have a tooltip on the axes > - How could I add a button to directly print out the picture in the too= lbar ? >=20 > Print as in to a printer? No support for that yet and am not sure I > want to go there right now (cross platform printing would might take > lot of work). Best I can offer you currently is the savefig button. > I think gnome-print has made a fair amount of progress since I first > wrote matplotlib so if you want to be on the vanguard and explore this > option I would be happy. I used the NavigationToolbar as a GTKToolbar and added a button with the fu= nction I wanted. This solved my problem > - Is there any density plot available ? >=20 > Do you mean hist? The histogram provide a similar plot to what I want. I am currently using it, but when i zoom horizontally I can get very few an= d large bars. Therefore I would be interested in a simple curve fitted to pass through al= l the tops of histograms. This would make the picture more consistent throughout the zooming If the curve was filled it would be even better :) > - I have MANY small plots on my graph. Is there a cost effective way > to filter which plots to show ? >=20 > I don't know what this means. Wouldn't you want to show all the plots > on your figure? Why else would you put them there? Please elaborate. Within one Sublot I have thousands of small "lines" plotted. This takes tim= e to draw and show on the screen Within my software I would like to be able to filter interactively that inf= ormation according to various criteria to show only few of them In order to do that cost effectively I was wondering if matplotlib provides= an option to show/hide specific "lines" that I could turn on/off That woudl avoid me to redraw the whole picture after 1 single change Takk Kve=F0ja Jean-Baptiste --=20 ----------------------------- Jea...@de... Department of Statistics deCODE genetics Sturlugata,8 570 2993 101 Reykjav=EDk |