Prev: Matlab with RS232
Next: fminsearchbnd
From: BA on 27 Apr 2010 04:44 Hi, I'm currently using linkaxes to link up two sub-plots containing images, when panning and zooming. However upon using linkaxes, the ranges of the two plots are synchronised, i.e. the XLim and YLim has to be exactly the same. Is there a way where I can link the axes, but have one plot offset from the other? Thanks. B A
From: Steven Lord on 27 Apr 2010 09:34 "BA " <ba.proctergamble(a)googlemail.com> wrote in message news:hr684k$2n1$1(a)fred.mathworks.com... > Hi, I'm currently using linkaxes to link up two sub-plots containing > images, when panning and zooming. > > However upon using linkaxes, the ranges of the two plots are synchronised, > i.e. the XLim and YLim has to be exactly the same. Is there a way where I > can link the axes, but have one plot offset from the other? Not with LINKAXES. You probably want to set the ActionPostCallback of the zoom mode object to perform the scaled synchronization after you've finished zooming one of the axes. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/zoom.html You can do the same thing with a pan mode object. http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pan.html -- Steve Lord slord(a)mathworks.com comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ
From: BA on 27 Apr 2010 10:53 Hi Steven, I have already temporarily used ActionPostCallback. But the trouble with ActionPostCallback is that in pan mode, I can only update the display once the mouse button is released. I would like the pan to occur "live" as it does in LINKAXES. Any advice? Thanks. B "Steven Lord" <slord(a)mathworks.com> wrote in message <hr6p5i$c33$1(a)fred.mathworks.com>... > > "BA " <ba.proctergamble(a)googlemail.com> wrote in message > news:hr684k$2n1$1(a)fred.mathworks.com... > > Hi, I'm currently using linkaxes to link up two sub-plots containing > > images, when panning and zooming. > > > > However upon using linkaxes, the ranges of the two plots are synchronised, > > i.e. the XLim and YLim has to be exactly the same. Is there a way where I > > can link the axes, but have one plot offset from the other? > > Not with LINKAXES. You probably want to set the ActionPostCallback of the > zoom mode object to perform the scaled synchronization after you've finished > zooming one of the axes. > > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/zoom.html > > You can do the same thing with a pan mode object. > > http://www.mathworks.com/access/helpdesk/help/techdoc/ref/pan.html > > -- > Steve Lord > slord(a)mathworks.com > comp.soft-sys.matlab (CSSM) FAQ: http://matlabwiki.mathworks.com/MATLAB_FAQ >
|
Pages: 1 Prev: Matlab with RS232 Next: fminsearchbnd |