필터 지우기
필터 지우기

Performance interactive plot GUI

조회 수: 8 (최근 30일)
Christof
Christof 2024년 6월 11일
답변: Harald 2024년 6월 12일
Hello together,
I've build a GUI the last weeks, for displaying recorded data from Logs of my companies systems.
The goal was to show up to 16 plots (chosen from up to 250 variables) with a linked x-axis. Usually there are not more than 1000 samples per plot. Finally I'm using stackedplot and it works fine...nearly.
The performance for interactive actions in the plot(s) is not acceptable as user experience for my team. Generally it seems to be an issue with the performance of linked axes - no matter which plot techinque I'm using in App Designer.
I'm questioning, if I'm using the right tool for my GUI. As I read, matplotlib for python is even worse in performace for interactive plots.
Does someone have a hint, where to go next with my approach?
Thanks in advance!
Christof

답변 (1개)

Harald
Harald 2024년 6월 12일
Hi,
it would be great if you can share some of your code, possibly with dummy data.
Instead of interactive zooming with linked x-axes, consider using the new Slider (Range) control or, in R2020b, two coupled sliders for the minimum and maximum x-value to let the user control the range of x-values. This might perform better than linked axes.
Additionally if the data is modified, it is helpful to not regenerate the plot, but just replace the x- or y-values as needed.
I hope that helps. If not, please consider giving us an example so that we can see the issue.
Best wishes,
Harald
P.S.: I notice that you are using release R2020b. Some aspects of performance have improved in newer releases. We would need to find out if this also improves performance in your particular case.

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by