Question: why plot({1},...) fail but plot([1],...) do not, when using legend?

 

Any idea why plot fail when adding legend and using {1} instead of [1] ? Since both have one curve.

Maple 2026 and 2025.2. searched help but do not see anything on this so far.
 

restart;

plot({1},x = -10 .. 10,'legend'="A");

Error, (in plot) the legend option cannot be used when plotting a set of objects

plot([1],x = -10 .. 10,'legend'="A");

 


 

Download plot_legend_problem_march_25_2026.mw

 

 

Please Wait...