×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

How can I hide a polar axes, not to delete it?

How can I hide a polar axes, not to delete it?

How can I hide a polar axes, not to delete it?

(OP)

 Hi anyone,

 I have to draw a polar axes in my application. It is
be done by a "polar(phi,rho)" command. Then, two objects
are drawn on a figure. First, an special axes which
contains a polar diagram and, second, the polar plot in
the true sense of the word. I can do "visible" or "not
visible" the polar plot. To do that, I have previously
to obtain the handle of the polar plot doing:

N=100;
phi=0:0.1:2*pi;
rho=ones(1,size(phi,2))*N;
h=polar(phi,rho)

   Then, I do:

set(h,'visible','off');

   The problem is that I cannot to hide or to do "not
visible" the polar axes, where was the polar plot.

   First, I draw a normal axes with a certain position:

h1=axes(.....);

   Second, I set the "nextplot" property of the axes to
"replace" to replace all properties of the axes for the
special polar axes, except the position property. And then
I can to show the polar plot in it.

set(h1,'nextplot','replace');
h=polar(phi,rho);

   Later, I have to hide the polar plot, so I do like this:

set(h,'visible','off');
   
   Finally, I have to hide the special polar axes, so I
try like this:

set(gca,'visible','off');

   Or even:

set(findobj(h,'Parent'),'visible','off');

   But, lamentablely, it not work.

   Do you know how to solve this little trouble?

   I shoud be very grateful to you.

   Cris

RE: How can I hide a polar axes, not to delete it?

Hi,
You have to set the visibility all children of the axes to off.
Do it like that:
Ha=allchild(get(h,'parent'));
set(Ha,'visible','off');

Joe
BSTEX - Equation viewer for Matlab
http://www.geocities.com/bstex2001

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources