Main Content

PolarAxesInteractionOptions Properties

Polar axes interaction behavior for apps

Since R2024a

PolarAxesInteractionOptions properties control the behavior of polar axes interactions for apps. By changing property values, you can customize the behavior of all associated polar axes interactions. Use dot notation to query and set properties.

f = uifigure;
pax = polaraxes(f);
pax.InteractionOptions.DatatipsPlacementMethod = "interpolate";

The options set by the PolarAxesInteractionOptions object apply to these interactions on the associated polar axes:

  • The built-in interactions specified by the Interactions property of the polar axes

  • Interactions enabled by using mode functions, such as datacursormode

  • Interactions enabled using the polar axes toolbar

The properties listed here are valid for polar axes in figures created with the uifigure function.

Supported Interactions

expand all

Data tip support indicator, specified as "on" or "off", or as numeric or logical 1 (true) or 0 (false). A value of "on" is equivalent to true, and "off" is equivalent to false. Thus, you can use the value of this property as a logical value. The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.

If DatatipsSupported is "off", the data tip interaction is not included in the default interactions of the polar axes and the data tip mode is not supported. For example, datacursormode(pax,"on") is not supported.

Example: pax.InteractionOptions.DatatipsSupported = "off"

Interaction Display

expand all

Method for placing data tips, specified as one of these values:

  • "vertex" — Hover to preview or click to create a data tip at the closest data point to the cursor location. The closest data point depends on the type of plot. For example, on a plotted curve, the closest data point is the data point with the smallest Euclidean distance from the specified location.

  • "interpolate" — Hover to preview or click to create a data tip at the closest interpolated location on the plot to the cursor location, even if it is between data points.

Example: pax.InteractionOptions.DatatipsPlacementMethod = "interpolate"

Version History

Introduced in R2024a