Skip to content

set

Set property values on a graph object.

S = set(h, name, value, ...)

Sets one or more properties on the graph object referenced by handle h. With a single name without a value, returns a list of acceptable values for that property ('auto', 'manual', etc.).

set(h, 'LineWidth', 2, 'Color', 'red')
set(gca, 'XLim', [0 10])
  • get — Get property values from a graph object.
  • gca — Handle to the current axes.
  • gcf — Handle to the current figure.