dynamicDateTicks with a plot below

조회 수: 2 (최근 30일)
Fredrik
Fredrik 2012년 6월 15일
Hi,
I use dynamicDateTicks and two subplots to view wind speed on the first one and power from a wind turbine on the second one. When I zoom into the first plot, the second one follows and so does its dateticks. Everything works great so far!
What I would like to do now, is in a third subplot, plot the power on the y- axis, and the wind speed on the x-axis, using the same datapoints that are currently being viewed in the two subplots above, making the so called "power curve" adjust after which data points are being viewed in the two first graphs.
Is there a way to do this? Would be great!
Kind Regards, Fredrik

답변 (1개)

Fredrik
Fredrik 2012년 6월 15일
I have managede to solve almost all of it. with use of an example I found using action call back.
I use the text below: h=zoom; set(h,'ActionPostCallback',@mypostcallback); set(h,'Enable','on');
Everything works but when I add the text below "dynamicDateTicks([], [], 'dd/mm');"
I dont get my extra subplot anymore. I guess the "dynamicDateTicks function steels the zoom that is send out in some way...
Sorry for describing it porely...
Kind Regards, Fredrik

카테고리

Help CenterFile Exchange에서 Subplots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by