Got Questions? Get Answers.
Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Zoom on figure

Subject: Zoom on figure

From: pmassicotte

Date: 8 Jun, 2012 14:21:40

Message: 1 of 2

Hi everyone.

I'm making a plot in Matlab and then I manually zoom on a precise part
of the graph for visualisation. I would like to know if it was
possible to zoom using code instead of mannually zoom at the same
place every time I draw the graph.

Regards,
Phil

Subject: Zoom on figure

From: ImageAnalyst

Date: 8 Jun, 2012 19:04:42

Message: 2 of 2

Try the zoom() function. You might have a slider so the user can
adjust the zoom continuously and then call the zoom() function in the
callback function of the slider control. When it's zoomed, the cursor
changes to a hand so you can click and drag it around to pan/scroll
the graph.

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us