MATLAB Answers

'hold on' with mapshow and roseplot

1 view (last 30 days)
Claudia on 29 Nov 2013
Edited: Claudia on 29 Nov 2013
I would like to change between mapshow and roseplot. My code is
handle_mapshow = mapshow ( X,Y)
handle_gca_mapshow = get (gca)
axes ( 'position' , [ 1 2 3 4 ] )
handle_rose = rose(angles, bins )
NOW: I would like to go back to the mapshow axes. I tried things like (I think the following two were my best shots ...)
hold on handle_gca_mapshow
hold on (handle_gca_mapshow)
But it does not work. What do I do wrong? Would be very nice to hear from you.
Cheers, Claudia

Answers (1)

Walter Roberson
Walter Roberson on 29 Nov 2013
  1 Comment
Claudia on 29 Nov 2013
Hi Walter
Thank you for your answer. I had tried your suggestion, too, but always got the message
Error using axes
Attempt to modify a property that is read-only.
Object Name : axes
Property Name : 'BeingDeleted'.
But I can access
And I can do
new_axes = axes('Position',handle_gca_mapshow.Position);
And so I thought the code 'axes(handle_gca_mapshow)' is wrong. But it seems something else is wrong. Do you have any idea?
Thanks, Claudia

Sign in to comment.


Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!