How Do I Plot Multiple Lists in Maple?

I have two pairs of lists representing representing two series of points that I want to plot as two curves in a 2d plot in Maple. If my lists were labeled x1, x2, y1, and y2, what specific commands do I use?

I've tried plot, display, and listplot, but Maple has yet to accept the way I input nested brackets for this purpose. I often get Error, (in pots:-pointplot) unexpected option:...

1

1 Answer

restart:
X1:=<<seq(x, x=0..10)>>:
Y1:=<<seq( evalf(sin(x)), x=0..10)>>:    
X2:=<<seq(x, x=0..10)>>:
Y2:=[seq( evalf(cos(x)), x=0..10)]:
Y11:=<<X1>|<Y1>>:
Y22:=<<X2>|<Y2>>:
plot([Y11,Y22], linestyle=[1,3], color=[black,red])

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest