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

Method addPlotLegend

ij/src/main/java/ij/macro/Functions.java:2758–2769  ·  view source on GitHub ↗
(Plot plot)

Source from the content-addressed store, hash-verified

2756 }
2757
2758 double addPlotLegend(Plot plot) {
2759 String labels = getFirstString();
2760 String options = "auto";
2761 if (interp.nextToken()!=')')
2762 options = getLastString();
2763 else
2764 interp.getRightParen();
2765 plot.setColor(Color.BLACK);
2766 plot.setLineWidth(1);
2767 plot.addLegend(labels, options);
2768 return Double.NaN;
2769 }
2770
2771 double getPlotLimits(Plot plot) {
2772 double[] limits = plot.getLimits();

Callers 1

doPlotMethod · 0.95

Calls 7

getFirstStringMethod · 0.95
getLastStringMethod · 0.95
getRightParenMethod · 0.80
addLegendMethod · 0.80
setColorMethod · 0.65
setLineWidthMethod · 0.65
nextTokenMethod · 0.45

Tested by

no test coverage detected