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

8 visualizaciones (últimos 30 días)
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 comentario
ALDO
ALDO el 16 de Oct. de 2018
Editada: ALDO el 16 de Oct. de 2018
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

Iniciar sesión para comentar.

Respuesta aceptada

Steven Lord
Steven Lord el 16 de Oct. de 2018
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 comentarios
ALDO
ALDO el 16 de Oct. de 2018
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 el 16 de Oct. de 2018
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.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Visual Exploration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by