Skip to content

hold

Retaining / releasing attributes of the plot

hold('on')

  • Set the hold state to on.
  • Command syntax, e.g., hold on, is not supported.
  • This retains certain attributes of a line / surface plot, so that when the next plot / surf function is executed to show a new plot, the attribute values remain the same. See the table below for a complete list of retainable attributes.

hold('off')

  • Set the hold state to off.
  • Command syntax, e.g., hold on, is not supported.
  • This releases certain attributes of a line / surface plot, so that when the next plot / surf function is executed to show a new plot, the attribute values are reset to the default values . See the table below for a complete list of retainable attributes and their default values.

hold

  • Toggling the hold state.

Discussions

  • The following shows the retainable attributes for line and surface plots:
Attributes Default values
Title No title
Grid On
Limit mode Auto
Limit values Automatically generated
Tick mode Auto
Tick values Automatically generated
Axis labels No labels
Legend (2D plot only) Hidden
Hold state Off