필터 지우기
필터 지우기

Stackeplot vertical cursor propperties and change

조회 수: 6 (최근 30일)
Christof
Christof 2024년 6월 9일
답변: Christof 2024년 6월 9일
Hello together,
stackedplot has a "vertical cursor" set as default as you can see in the picture. I even don't know, how to name it. I couldn't find it in the documentation.
Is there a way to control the propperties of this vertical cursor? To switch it on and off?
Thanks in advance!
Best regards.
Christof

채택된 답변

Christof
Christof 2024년 6월 9일
Thanks to Adams post here, I could manage it somehow :) And the name is DataCursor!
StructofStacked = struct(app.Logs(app.Log).Stack{1});
DataCursorGet = struct(StructofStacked.DataCursor);
DataCursorGet.CursorLine.LineWidth = 0.5;
DataCursorGet.EnterDatapointListener.Enabled = 0;
The EnterDatapointListener seems to contol the visibility of the CursorLine via callback. Changing the lines visibility manually didn't work, of course.
Thanks Adam!

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by