DisperseLabels Method [AutoPlots]

The DisperseLabels method disperses plot labels when the labels overlap each other.

Syntax

object.DisperseLabels ( method, selPlotOnly, resetFirst, distLimit )

 

Parameter Type Description
method grfDisperse required, defines the direction of movement of labels
selPlotOnly Boolean required, if True only processes the selected plots in the graph; and if False processes all plots in the graph
resetFirst Boolean required, if True, resets the labels to their original position before dispersing them, and if False, does not reset the labels' positions
distLimit Double required, maximum allowed distance in inches that the labels will be repositioned

 

Example 1

This example shows how to disperse plot labels in a clockwise direction, on only selected plots, resetting the labels to their original position, with a maximum of five inches from the labels' original positions.

Graph1.Plots.DisperseLabels(grfDispAroundClock, True, True, 5)

Example 2

This example shows how to disperse plot labels below their current position, on all plots in the graph, without resetting the labels to their original position, with a maximum of 2 inches from the labels' original positions.

Graph2.Plots.DisperseLabels(grfDispDownOnly, False, False, 2)

 

Used by: AutoPlots

See Also

Disperse Plot Labels