COMPGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Rotating a rose plot

• Follow

```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!
```
 0

```"Chris " <mellinman6@yahoo.com> wrote in message <he69b0\$ot6\$1@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
```
 0

```> 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.
```
 0

```"Chris " <mellinman6@yahoo.com> wrote in message <he69b0\$ot6\$1@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.
```
 0

3 Replies
359 Views

5/21/2013 4:55:36 PM