MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / addLegend

Method addLegend

ij/src/main/java/ij/gui/Plot.java:1051–1053  ·  view source on GitHub ↗

Adds an automatically positioned legend, where 'labels' can be a tab-delimited or newline-delimited list of curve or point labels in the sequence these data were added. Hidden data sets are ignored. If 'labels' is null or empty, the labels of the data set previously (if any) are used. To mod

(String labels)

Source from the content-addressed store, hash-verified

1049 If 'labels' is null or empty, the labels of the data set previously (if any) are used.
1050 To modify the legend's style, call 'setFont' and 'setLineWidth' before 'addLegend'. */
1051 public void addLegend(String labels) {
1052 addLegend(labels, "auto");
1053 }
1054
1055 /** Adds a legend at the position given in 'options', where 'labels' can be tab-delimited or
1056 * newline-delimited list of curve or point labels in the sequence these data were added.

Callers 4

plotHistogramMethod · 0.95
addPlotLegendMethod · 0.80
evaluateStackForRadiiMethod · 0.80
processStackMethod · 0.80

Calls 2

setLegendMethod · 0.95
containsMethod · 0.45

Tested by

no test coverage detected