{VERSION 4 0 "IBM INTEL NT" "4.0" } {USTYLETAB {CSTYLE "Maple Input" -1 0 "Courier" 0 1 255 0 0 1 0 1 0 0 1 0 0 0 0 1 }{CSTYLE "Hyperlink" -1 17 "" 0 1 0 128 128 1 0 0 1 0 0 0 0 0 0 1 }{CSTYLE "" 0 21 "" 0 1 0 0 0 1 0 0 0 0 2 0 0 0 0 1 }{CSTYLE " Help Heading" -1 26 "" 1 14 0 0 0 0 0 1 0 0 0 0 0 0 0 1 }{CSTYLE "" -1 256 "Times" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 }{PSTYLE "Normal" -1 0 1 {CSTYLE "" -1 -1 "" 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 }0 0 0 -1 -1 -1 0 0 0 0 0 0 -1 0 }} {SECT 0 {SECT 0 {PARA 0 "" 0 "" {TEXT 26 7 "Advice:" }{TEXT -1 32 " Pl otting to a file or a printer" }}{PARA 0 "" 0 "" {TEXT -1 0 "" }} {PARA 0 "" 0 "" {TEXT -1 199 "There are various ways to obtain a print ed copy of a plot, depending on your system. One convenient method is to plot into a window (use Plot Display... Window from the Options me nu, or the command " }{MPLTEXT 0 21 18 "plotsetup(window);" }{TEXT -1 432 ") and then use Print from the File menu. Alternatively, you can \+ select a plot (whether window or inline) with the mouse, copy it to th e clipboard (with Copy from the Edit menu or whatever keystrokes do th is on your system, such as Control-C), paste it into some graphics app lication, such as Paintbrush in Microsoft Windows, and print from ther e. A third alternative is to use Export As... HTML from the File menu . This makes an " }{MPLTEXT 0 21 4 "html" }{TEXT -1 84 " version of t he worksheet (which can be viewed in a Web browser), with the plots as " }{MPLTEXT 0 21 3 "gif" }{TEXT -1 107 " files in an \"images\" subdi rectory. The plot files can be used independently of the rest of the \+ worksheet." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 452 "One disadvantage of these methods is that, because the printed image is just a pixel-by-pixel copy of the image on the screen, its r esolution is limited. You may notice that what should be smooth curve s and straight lines have jagged edges. Your printer may be able to d o much better than that. To take better advantage of its capabilities , you need to make a graphics file using one of the plot devices that \+ Maple has available. See the help page " }{HYPERLNK 17 "plot,device" 2 "plot,device" "" }{TEXT -1 63 " for a description of these, as well \+ as the options available. " }}{PARA 0 "" 0 "" {TEXT -1 1 " " }}{PARA 0 "" 0 "" {TEXT -1 86 "You will need to know what types of graphics fi le your system can print. PostScript (" }{MPLTEXT 0 21 2 "ps" }{TEXT -1 6 ") and " }{MPLTEXT 0 21 4 "hpgl" }{TEXT -1 73 " are very good cho ices if your system can use them. On the other hand, " }{MPLTEXT 0 21 3 "gif" }{TEXT -1 2 ", " }{MPLTEXT 0 21 4 "jpeg" }{TEXT -1 5 " and \+ " }{MPLTEXT 0 21 3 "pcx" }{TEXT -1 329 ", which require Maple to const ruct a bitmapped image in memory, are limited in resolution. If Maple does not support a format your system can print, you may be able to p roduce one type of file and convert it to another: there are many shar eware and commercial products that can convert between the various gra phics file formats." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 " " {TEXT -1 190 "Generally you should first produce the plot you want o n the screen, making sure that everything is as it should be. Then sa ve the plot structure by assigning it to a variable. For example," }} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 23 "plot(x^2, x = -1 .. 1);" }}} {EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 11 "myplot:= %:" }}}{PARA 0 "" 0 "" {TEXT -1 377 "Note the colon, to avoid having Maple print out the plot structure. Now set up the plot device, together with the name o f the output file and any options. In particular, the height and widt h options will determine the size of the printed output. This is give n in points for PostScript output (1 inch = 72 points, 1 cm = 28.35 p oints), and pixels for gif, jpeg or pcx. The " }{MPLTEXT 0 21 11 "plo toptions" }{TEXT -1 33 " string must not include spaces. " }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 76 "plotsetup(gif, plotoutput=\"myplot. gif\", plotoptions=\"height=300,width=600\");" }}}{PARA 0 "" 0 "" {TEXT -1 110 "Now recall the plot structure from the variable where it was saved, and it will be printed to the output file." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 7 "myplot;" }}}{PARA 0 "" 0 "" {TEXT -1 164 "The plot data may not always show up right away in the file, b ecause it is being cached somewhere in the system. In order to close \+ the file, switch to a different " }{MPLTEXT 0 21 10 "plotoutput" } {TEXT -1 28 " or a different plot device." }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 18 "plotsetup(inline);" }}}{PARA 0 "" 0 "" {TEXT -1 48 "T his goes back to inline plots in the worksheet." }}{PARA 0 "" 0 "" {TEXT -1 0 "" }}{PARA 0 "" 0 "" {TEXT -1 285 "You may find that you wa nt to adjust the sizes and styles of type for titles, axis labels and \+ other text in your graph, as the relative sizes may be different on th e screen and in printed output. You should be able to do this in the \+ command that produced the original plot, using the " }{MPLTEXT 0 21 9 "titlefont" }{TEXT -1 15 " (for titles), " }{MPLTEXT 0 21 8 "axesfont " }{TEXT -1 41 " (for the numbers beside the tickmarks), " }{MPLTEXT 0 21 9 "labelfont" }{TEXT -1 27 " (for the axis labels) and " } {MPLTEXT 0 21 4 "font" }{TEXT -1 85 " (for text produced with textplot ) options. For example, you might replace the last " }{MPLTEXT 0 21 4 "plot" }{TEXT -1 16 " command with " }}{EXCHG {PARA 0 "> " 0 "" {MPLTEXT 1 0 92 "plot(x^2, x=-1..1, title=\"A Parabola\", axesfont=[HE LVETICA,8], titlefont=[TIMES,ITALIC,18]);" }}}{PARA 0 "" 0 "" {TEXT -1 171 "Unfortunately, however, the font settings do not seem to have \+ any effect with most of the bitmapped plot devices. It does work wit h PostScript. Note that fonts work in " }{MPLTEXT 0 21 3 "gif" } {TEXT -1 40 " files produced by Export As... HTML. " }}}{SECT 0 {PARA 0 "" 0 "" {TEXT 26 9 "See also:" }{TEXT -1 1 " " }{HYPERLNK 17 " How To" 2 "worksheet,howto" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "plot[de vices]" 2 "plot,devices" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "plotsetup " 2 "plotsetup" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "plot[options]" 2 "p lot,options" "" }{TEXT -1 2 ", " }{HYPERLNK 17 "Greek letters and othe r symbols in plots" 2 "Greek_letters_and_other_symbols_in_plots" "" }} }{SECT 0 {PARA 0 "" 0 "" {TEXT 26 22 "Maple Advisor Database" }{TEXT 256 18 " R. Israel, 1998" }}}}{MARK "0 20 0 0" 63 }{VIEWOPTS 1 1 0 1 1 1803 1 1 1 1 }{PAGENUMBERS 0 1 2 33 1 1 }