资源描述:
《Graphing in Maple》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、GraphinginMapleHerewegiveaselectionofmaplecommandsinvolvedwithMaple’sgraphicspack-age.2-DGraphicsIfwetype[>plot(sin(x),x=0..2¤Pi);thenmaplewillgiveagraphofthefunctionsinxon[0,2p]Ifwetype[>plot([sin(x),cos(x)],x=0..2¤Pi);thenmaplewillgivetwographssuperimposed,thefuncti
2、onsinxandcosxon[0,2p]Ifwetype[>plot([2¡t2,t¡t3,t=¡2..2]);thenmaplewillusaplotoftheparametricequationsx=2¡t2,y=t¡t3.Ifwewishtomakethegraphlargerorsmaller,leftclickyourmousearrowinthemiddleofthepictureandmaplewillputaboxaroundit.Thenyoucanmaketheboxaslargeorassmallasyou
3、wish.Thereareseveraloptionsthatwewilldiscuss.Tobeabletogetthislist,ifwetype[>?plot;Maplewilltakeustoahelpmenuwhereallsortsofinformationcanbefoundinclud-ingoptions(seethebottomforSeeAlso).1CommonOptionsaxesSpecifiesthetypeofaxes,oneofFRAME,BOXED,NORMALandNONE.Example[>p
4、lot(sin(x),x=0..2¤Pi,axes=BOXED);axesfontSpecifiesthe[family,style,size],wherefamilyisoneofTIMES,COURIER,HELVETICAandSYMBOL.ForTIMES,stylemaybeonefromROMAN,BOLD,ITALICorBOLDITALIC,ForHELVETICAandCOURIERstylemaybeomittedorselectofofBOLD,OBLIQUEorBOLDOBLIQUE.SYMBOLdoesn’
5、tacceptastyleoption.Thefinalvalue,size,isthepointsizetobeused.Example[>plot(sin(x),x=0..2¤Pi,axesfont=[TIMES,ITALICS,16]);colorAllowstheusertospecifythecolorofthecurvestobeplotted.Thespelling”colour”mayalsobeused.Fordetails,seeitplot,color..Example[>plot(sin(x),x=0..2¤
6、Pi,color=blue);filledIfthefilledoptionissettotrue,theareabetweenthecurveandthex-axisisgivenasolidcolor.Thisoptionisvalidonlywiththefollowingcommands:plot,contourplot,implicitplot,listcontplot,polarplot,andsemilogplot.Example[>plot(sin(x),x=0..2¤Pi,color=blue,filled=true
7、);fontSameasaxesfontexceptfortextobjectsintheplot.labels=[x,y]Thisoptionspecifieslabelsfortheaxes.Thevaluesofxandymustbestrings.Thedefault2labelsarethenamesofthevariablesintheoriginalfunctiontobeplotted,ifany.Example[>plot(sin(x),x=0..2¤Pi,color=blue,filled=true,labels
8、=[t,T]);legend=sAlegendforaplotcanbespecifiedbyeitherastringoralistofstrings.Whenmorethanonecurveisbeingplottedthentheymustbe