Path: news.mathworks.com!not-for-mail
From: "us " <us@neurol.unizh.ch>
Newsgroups: comp.soft-sys.matlab
Subject: Re: problem with rotating GUI components
Date: Mon, 6 Aug 2007 15:18:55 +0000 (UTC)
Organization: Universit&#228;tsSpital Z&#252;rich
Lines: 18
Message-ID: <f97e4v$keu$1@fred.mathworks.com>
References: <f82e7i$joh$1@fred.mathworks.com> <f854tv$rst$1@fred.mathworks.com> <f856tk$3dl$1@fred.mathworks.com> <f857vq$m46$1@fred.mathworks.com> <f97bnq$aek$1@fred.mathworks.com>
Reply-To: "us " <us@neurol.unizh.ch>
NNTP-Posting-Host: webapp-01-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1186413535 20958 172.30.248.36 (6 Aug 2007 15:18:55 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 6 Aug 2007 15:18:55 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 11
Xref: news.mathworks.com comp.soft-sys.matlab:422612


Kathleen:
<SNIP spinning rotation...

one of the solutions

     plot([0,1],[0,1]);
     xh=xlabel('foo','rotation',30);
% note: this <rotation> is probably what you're looking for
% anyhow
     rotax=[0,0,1];
     rotor=[.5,0,0];
for  i=1:360
     rotate(xh,rotax,i,rotor);
     pause(.01);
     rotate(xh,rotax,-i,rotor);
end

us