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 Center および File ExchangeSubplots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by