Creating Images in Maple for use in LaTeX
Images created in Maple can be exported in eps, jpg, gif, bmp, or wmf formats. First use the plot command to draw the desired graphic. The graphic can be enhanced to produce a clearer image by using some of the plot options. Use the command ?plot[options] to learn what options are available and how to use them. In the following example, I have plotted four graphs parametrically, and pieced them together to appear like one smooth, continuous function. In general, a curve is defined parametrically in square brackets with the first parameter, the formula for x, the second parameter, the formula for y, and the third parameter, the range of the parameter. The second enclosing set of square brackets is used to plot the four graphs on the same set of axes. The range on x given after the square brackets indicates the range on x to be used for the whole graph; the range on y can be similarly specified if desired. The color option has been used to contrast the graphs as much as possible by making them all black. The command color=black would actually have sufficed to make all graphs black. The labels option specifies how the axes are to be labeled. The title option is the title of the graphic. The font option is used to specify the font, style, and size of the font used on the axes labels. The axesfont option specifies the font, style, and size of the font used on the numbers labeling the units used on the axes. The titlefont specifies the font, style, and size of the font used in the title of the graphic. The thickness option can be used to make the plotted curve thicker than the normal thickness=0.
> plot([[x,-sin(Pi*x/2),x=0..2], [x,-3/2*sin(Pi*x/2),x=2..4], [x,-2*sin(Pi*x/2),x=4..6], [x,-5/2*sin(Pi*x/2),x=6..8]], x=0..8, color=[black,black,black,black], labels=[t,y], title="y=f(t)", font=[TIMES,BOLD,18], axesfont=[TIMES,BOLD,12], titlefont=[TIMES,BOLD,20], thickness=3);
You may also want to resize the graphic before saving or exporting it. I usually prefer the grapic to be smaller than the default size. After, you have the graph looking the way you want it to, then right click on it with your mouse and select export as , and then select the format you desire.
The above graphic illustrating the menu choice was made by using the mouse to produce the menu, and then taking a picture of it by pressing the PrtSc key at the top of the keyboard. Then in MicroSoft Photo Editor, I pasted the picture as a new image, cropped it, copied it, and then pasted it into this worksheet. For details on how to do this, see Obtaining Images
Finally, you can create an HTML file of this Maple Worksheet by choosing
Export as HTML under the file menu.
After you select Export As HTML, you will be asked to select a directory in which to store the HTML and image files. I saved this file as epsgraph.html. You can discard the files epsgraph.html and epsgraphTOC.html, and just link to or open epsgraph1.html to see the resulting HTML page.