PolarAxesInteractionOptions - Polar axes interaction behavior - MATLAB (original) (raw)

Main Content

PolarAxesInteractionOptions Properties

Polar axes interaction behavior

Since R2024a

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

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

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

Before R2025a: The properties listed here are valid only 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:

Example: pax.InteractionOptions.DatatipsPlacementMethod = "interpolate"

Version History

Introduced in R2024a

expand all

You can now control the behavior of polar axes interactions for any figure using aPolarAxesInteractionOptions object. Previously, you could use this object only with polar axes in figures created with the uifigure function.