フィルターのクリア

Plotting a real time bar graph and a real time threshold line in the same axes

1 回表示 (過去 30 日間)
Giovanni Scavariello
Giovanni Scavariello 2016 年 8 月 4 日
Hello Everyone,
I am trying to write a code that plots a real time signal (through a bar graph) and a line threshold on the same axes in a GUI. I'm already able to plot the real time data, but when I try to plot the line I get no error messages but cannot see the line.
Obs: Already tried using axes(currentaxes) and hold, the axes command bugs the heck out of my code and the hold command didn't get me anywhere.
Here's what I'm doing inside of the loop:
fb = bar(displayFB,PLOTY) % displayFB is the axes in which I am plotting
thresh = refline(displayFB, 0, c) % c is the intersect of the line
The fb plot works fine, but I can't get the thresh to work.
I am kind of new to object oriented programming so if you guys are able to respond extensively that'd be great.
Thank you for your time.

回答 (1 件)

Paul Sponagle
Paul Sponagle 2016 年 8 月 4 日
I am not sure I fully understand the question, but will 'hold on' before the code and 'hold off' after the code work for this?
  1 件のコメント
Giovanni Scavariello
Giovanni Scavariello 2016 年 8 月 4 日
I'm sorry if I wasn't very clear, how could I make it clearer?
I've tried to do this, and it does exactly nothing, I can only see the bar graph and not the line.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeDiscrete Data Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by