필터 지우기
필터 지우기

Plotting a WindRose figure in a uipanel?

조회 수: 2 (최근 30일)
Benjamin Levy
Benjamin Levy 2017년 12월 7일
댓글: Benjamin Levy 2017년 12월 8일
Hi. I'd like to use Daniel Pereira's ( D. Pereira ) WindRose function (very cool), but put the results in a uipanel. My code:
windRosePanel = uipanel('Title','','FontSize',12,...
'Position',[0.0045 0.2306 0.1424 0.21759 ]);
windRosePanelSub = uipanel( 'Parent', windRosePanel, ...
'Title', [ 'wind rose (m/s)' ], ...
'Fontsize', 12, ...
'Position', [ 0.0100 0.0300 0.9700 0.9800 ] );
windSpeed = 2 * rand( 100, 1 );
windDir = 360 * rand( 100, 1 );
windRoseAxes = axes( 'Parent', windRosePanelSub );
windRoseHandle = WindRose( windDir ,windSpeed,'LegendType', ...
1, 'TitleString',{' '}, 'parent', windRoseAxes );
Instead of spawning a new figure, I'd like the output of WindRose to appear in the uipanel, windRosePanelSub.
  댓글 수: 1
Benjamin Levy
Benjamin Levy 2017년 12월 8일
Never mind me. It's in a name pair argument as: 'axes', axisHandle.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by