dynamicDateTicks with a plot below

1 次查看(过去 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 中查找有关 Graphics Object Properties 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by