Using plotmaple to return multiple plots
-
I need to generate 4 different plots (one for each multiple choice option).
Is there a way to get all 4 plots using just one plotmaple call?
I currently have 4, and the question seems sluggish when previewing. I'm wondering if it is because of all the back and forth between Maple TA and Maple.
-
Hi Sarah,
4 separate calls for plots shouldn't be sluggish, I would follow up with support on that concern, however you also have the following option:
I have used this many times.. use the Plots:-display command to display multiple color plots on the same grid, with a legend indicating what choice is what line. For example redLine=choiceA blueLine=choiceB.. etc
Here is a simple to follow example that illustrates this and also uses an algorithmic answer in the multiple choice:
Link to .zip file that can be imported into your Mobius Course (it contains a single question).
Hope it works out for you,
Mark
-
Have you tried using an array of plots?
with(plots):
A:=Array(1..2,1..2):
A[1,1]:=plot(x^2,x=-1..1):
A[1,2]:=plot(sin(x)/x,x=0.1..Pi):
A[2,1]:=plot(cos(x),x=-Pi..Pi):
A[2,2]:=plot(sin(x),x=-Pi..Pi):
display(A,axes=normal,scaling=constrained,size=[300, 300])
-
This post is deleted!