Thread Subject: Help with axis properties in rose plot

Subject: Help with axis properties in rose plot

From: Evan Ruzanski

Date: 26 Nov, 2009 12:54:03

Message: 1 of 4

Hello,

I am trying to set axis properties of a rose plot. I generate the plot and have tried every way I can think of the change the font size to 14 and the line width of the border of the plot to line width = 2. It seems that all the ways that work for a standard plot don't work for a rose plot.

Can someone please tell me how to change the axis properties of a rose plot without going into the GUI to do it?

Thank you...

Subject: Help with axis properties in rose plot

From: Pekka Kumpulainen

Date: 26 Nov, 2009 13:38:21

Message: 2 of 4

"Evan Ruzanski" <ruzanski.02@engr.colostate.edu> wrote in message <heltpb$4cu$1@fred.mathworks.com>...
> Hello,
>
> I am trying to set axis properties of a rose plot. I generate the plot and have tried every way I can think of the change the font size to 14 and the line width of the border of the plot to line width = 2. It seems that all the ways that work for a standard plot don't work for a rose plot.
>
> Can someone please tell me how to change the axis properties of a rose plot without going into the GUI to do it?
>
> Thank you...

Rose returns the handle to the line object so it is easy to set the LineWidth afterwards.
The handles of the text objects are hidden. You could set the roots objects 'showhiddenhandles' on and then use findobj to find the handles.
Or you can set the default FontSize beforehand:
theta = 2*pi*rand(1,50);
figure('DefaultAxesFontSize',14)
h = rose(theta);
set(h,'linewidth',2)

hth

Subject: Help with axis properties in rose plot

From: Evan Ruzanski

Date: 28 Nov, 2009 00:28:02

Message: 3 of 4

Thank you, Pekka, your post solved my problem...

"Pekka Kumpulainen" <pekka.nospam.kumpulainen@tut.please.fi> wrote in message <hem0cd$eiv$1@fred.mathworks.com>...
> "Evan Ruzanski" <ruzanski.02@engr.colostate.edu> wrote in message <heltpb$4cu$1@fred.mathworks.com>...
> > Hello,
> >
> > I am trying to set axis properties of a rose plot. I generate the plot and have tried every way I can think of the change the font size to 14 and the line width of the border of the plot to line width = 2. It seems that all the ways that work for a standard plot don't work for a rose plot.
> >
> > Can someone please tell me how to change the axis properties of a rose plot without going into the GUI to do it?
> >
> > Thank you...
>
> Rose returns the handle to the line object so it is easy to set the LineWidth afterwards.
> The handles of the text objects are hidden. You could set the roots objects 'showhiddenhandles' on and then use findobj to find the handles.
> Or you can set the default FontSize beforehand:
> theta = 2*pi*rand(1,50);
> figure('DefaultAxesFontSize',14)
> h = rose(theta);
> set(h,'linewidth',2)
>
> hth

Subject: Help with axis properties in rose plot

From: Akli Benali

Date: 15 Apr, 2011 13:54:06

Message: 4 of 4

I Also need help with this subject.

I am trying to subplot a compass and a rose plot and change their y and x limits for each one. Defining the figure defaults does not work because this is a subplot and both plots have different limits. How do I get the handles to change individually the limits as well as the Ticks and FontSizes? I have tried to set(0,'ShowHiddenHandles','on') but I think I am not finding the object correctly.

Akli

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com