Question: How do I display an array of plots?

Greetings,

I am trying to display an array of plots. I did a search and found this: "https://www.maplesoft.com/support/help/view.aspx?path=plot%2Farrayplot".

However, when I try it, I get an error message: "Error, (in plots:-display) element 1 of the rtable is not a valid plot structure".

Here's the code identical to the sample page. If I display(A__1) or display(A__2) individually, it works.

with(plots);
A := Array(1 .. 2);
A__1 := plot(sin(x), x = -Pi .. Pi, axes = framed, labels = [x, sin(x)]);
A__2 := plot(cos(x), x = -Pi .. Pi, axes = boxed, style = point);
display(A);
 

Running Maple 2023 on MacBook Pro Monterey V12.6.5 (latest as far as I know).

Thanks for any assistance.

Please Wait...