Prev: Problem with parfor
Next: error in simulink
From: deltaquattro on 23 Oct 2009 07:34 Hi, when using subplot to add axes to a figure, each instance of the commands title and text will refer to one of newly defined axes. Is it possible to refer to something like "global" axes? This is useful in order to add a title to the whole figure, in addition to one for each subplot, and also if, say, you need to add text halfaway between two subplots. Thanks, Best Regards Sergio Rossi
From: roger on 23 Oct 2009 09:03 On Oct 23, 1:34 pm, deltaquattro <deltaquat...(a)gmail.com> wrote: > Hi, > > when using subplot to add axes to a figure, each instance of the > commands title and text will refer to one of newly defined axes. Is it > possible to refer to something like "global" axes? This is useful in > order to add a title to the whole figure, in addition to one for each > subplot, and also if, say, you need to add text halfaway between two > subplots. Thanks, > > Best Regards > > Sergio Rossi easiest is to place another axes object behind the subplot axes and use the title of that axes object, control the visibility by the color/ visible properties. make sure you set the hittest to off if you have trouble with zoom/rotate. R
From: someone on 23 Oct 2009 09:25 deltaquattro <deltaquattro(a)gmail.com> wrote in message <6655aa0d-3b14-4d3e-b870-846c99883ed7(a)b18g2000vbl.googlegroups.com>... > Hi, > > when using subplot to add axes to a figure, each instance of the > commands title and text will refer to one of newly defined axes. Is it > possible to refer to something like "global" axes? This is useful in > order to add a title to the whole figure, in addition to one for each > subplot, and also if, say, you need to add text halfaway between two > subplots. Thanks, > > Best Regards > > Sergio Rossi You might download and try suplabel from the MATLAB FEX at: http://www.mathworks.com/matlabcentral/fileexchange/7772-suplabel
From: deltaquattro on 26 Oct 2009 05:32 On 23 Ott, 14:03, roger <northsolomon...(a)gmail.com> wrote: > On Oct 23, 1:34 pm,deltaquattro<deltaquat...(a)gmail.com> wrote: > > > Hi, > > > when using subplot to add axes to a figure, each instance of the > > commands title and text will refer to one of newly defined axes. Is it > > possible to refer to something like "global" axes? This is useful in > > order to add a title to the whole figure, in addition to one for each > > subplot, and also if, say, you need to add text halfaway between two > > subplots. Thanks, > > > Best Regards > > > Sergio Rossi > > easiest is to place another axes object behind the subplot axes and > use the title of that axes object, control the visibility by the color/ > visible properties. make sure you set the hittest to off if you have > trouble with zoom/rotate. > R hi roger, thank you for the hint but it doesn't help: if I se the visible property of the axes to off, also the title and any text are made invisible too. Any other idea? thanks, Best Regards Sergio
From: deltaquattro on 26 Oct 2009 05:49
On 26 Ott, 10:32, deltaquattro <deltaquat...(a)gmail.com> wrote: > On 23 Ott, 14:03, roger <northsolomon...(a)gmail.com> wrote: > > > > > > > On Oct 23, 1:34 pm,deltaquattro<deltaquat...(a)gmail.com> wrote: > > > > easiest is to place another axes object behind the subplot axes and > > use the title of that axes object, control the visibility by the color/ > > visible properties. make sure you set the hittest to off if you have > > trouble with zoom/rotate. > > R > > hi roger, > > thank you for the hint but it doesn't help: if I se the visible > property of the axes to off, also the title and any text are made > invisible too. Any other idea? thanks, > > Best Regards > > Sergio Ok, I got it. I have to set separately the 'Visible' property of each text object for the new axes, something like: set(get(newaxes,'Title'),'Visible','on') Thanks Sergio |