MATLAB Answers

dynamicDateTicks with a plot below

4 views (last 30 days)
Fredrik
Fredrik on 15 Jun 2012
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

  0 Comments

Sign in to comment.

Answers (1)

Fredrik
Fredrik on 15 Jun 2012
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

  0 Comments

Sign in to comment.

Sign in to answer this question.