refline - logaritmic/linear scale

10 ビュー (過去 30 日間)
susana
susana 2018 年 7 月 18 日
コメント済み: susana 2018 年 8 月 8 日
Hi, I'm building a GUI that usually has tracks that have a linear scale, but I give the option for the user to change to log scale if he wants. My problem is that it is possible to add horizontal lines too, but when I switch to XScale=='log', I loose these lines.. I'm using refline function for this purpose:
hline(j,i)=refline(ax(i),[0,Depth(j)]);
Can anyone help? Best regards
  7 件のコメント
susana
susana 2018 年 8 月 8 日
Hi Geoff, Very good point.. I did the assignin function to see what the axes is holding and it seems that the created line is not being store in the axes children.. I tried to set the following when I created the line: set(h,'Parent',axes) but still it wont save anyway.. The odd thing is that I also have a text above the line, which is being hold by the axes, but not the line
susana
susana 2018 年 8 月 8 日
I though that maybe it is a bug in hline function. If I use refline the line is being stored in the axes.. I still have a "display" problem of the line.. because now, it exists in the children of the axes, but it is not displayed when i change the scale.. Any ideas?

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeInteractive Control and Callbacks についてさらに検索

タグ

製品


リリース

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by