From: Chris on 20 Nov 2009 09:33 I am currently producing rose plots with binned data. I want to represent the rose as a wind rose with 0 pointing to the top of the page, 180 to the bottom, 270 to the left, and 90 to the right. Is there an command for this other than producing the graph and using the clunky rotate tool. I'd appreciate any help! Thanks!
From: Matt on 20 Nov 2009 10:28 "Chris " <mellinman6(a)yahoo.com> wrote in message <he69b0$ot6$1(a)fred.mathworks.com>... > I am currently producing rose plots with binned data. I want to represent the rose as a wind rose with 0 pointing to the top of the page, 180 to the bottom, 270 to the left, and 90 to the right. Is there an command for this other than producing the graph and using the clunky rotate tool. I'd appreciate any help! Thanks! ========= Why not just apply a rotation transform to your data points before plotting them? It's pretty simple to compute the rotation matrix no? R=@(t)=[cosd(t), -sind(t); sind(t), cosd(t)]; %counter-clockwise rotation by t degrees
From: Chris on 20 Nov 2009 10:43 > Why not just apply a rotation transform to your data points before plotting them? It's pretty simple to compute the rotation matrix no? > > R=@(t)=[cosd(t), -sind(t); sind(t), cosd(t)]; %counter-clockwise rotation by t degrees I am wanting to rotate the axes of the graph for purely aesthetic reasons. For a wind rose most people associate up with north or zero degrees, so I was wanting to present the data graphically so it makes the most sense from a quick glance at the figure.
From: Alan B on 20 Nov 2009 10:47 "Chris " <mellinman6(a)yahoo.com> wrote in message <he69b0$ot6$1(a)fred.mathworks.com>... > I am currently producing rose plots with binned data. I want to represent the rose as a wind rose with 0 pointing to the top of the page, 180 to the bottom, 270 to the left, and 90 to the right. Is there an command for this other than producing the graph and using the clunky rotate tool. I'd appreciate any help! Thanks! I don't know what a "wind rose" is but if you're using the rose command, just use rose(pi/2-theta), instead of rose(theta). The rotate GUI tool can also be accessed with the rotate command, which makes it less clunky.
|
Pages: 1 Prev: LNA Block Next: Neural network - target vector normalization (MLP, newff) |