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

New to MATLAB?

Thread Subject:
Link legend position to axes position

Subject: Link legend position to axes position

From: Hoi Wong

Date: 18 Jun, 2012 06:33:06

Message: 1 of 1

I'm trying to edit gridLegend() on File Exchange to put the legend box to NorthEast. The problem is that if I just use

set(legend_h, 'Position',np);

the relative position won't update when I rescale the figure (thus the axes). Is there a simple way to link the positions of objects in a plot together that will update when I rescale?


Tags for 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