select a specific part of the graph using the mouse and zoom in and out of region selected by user

8 次查看(过去 30 天)
Hi everyone I plotted my data from a heart rate from a patient. This is a 60+ hour data that has been collected so its a large graph. I need to to make this figure as user friendly as possible so that if the user selects a region they can zoom in and out very easily and transition to different parts of the figure. basically I want he user to be able to interact with the graph as fast and easily as possible. Do you guys have any suggestions for me? I would greatly appreciate the help.
Thanks in advance!
  1 个评论
ALDO
ALDO 2018-10-16
编辑:ALDO 2018-10-16
I have already tried
scrollplot(plot(Time_interval,Data), 'WindowSize',60);
but I just have too much data so its not functional for what I am looking for

请先登录,再进行评论。

采纳的回答

Steven Lord
Steven Lord 2018-10-16
It sounds like you want to use the built-in zooming and panning visual exploration tools in MATLAB.
If the problem you're experiencing is that you have more data than can fit in memory at once, consider storing your data in a tall array and using the visualization functions in MATLAB that accept tall arrays.
  2 个评论
ALDO
ALDO 2018-10-16
Hi Steven
Thanks so much for your response.
I am able to plot the data with no problem and dont have memory issues. the plot is very dense and compactly packed next to each other so it hard to visualize. I want to be able to easily make adjustments with out having to use plot tools and just interacting with the graph it self using your mouse.
Steven Lord
Steven Lord 2018-10-16
What release are you using?
What types of interactions do you want to perform? Zooming, panning, rotating, etc.?
What do you consider "plot tools"? If you mean you don't want to have to have your user select the "Zoom In" button you can enable zooming using zoom on or you can use release R2018b, where those interactions are enabled by default.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Data Exploration 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by