

What we just did was to define a simple `macro', in this case the Such possibilities, and a good deal more, areĭescribed in greater detail in the rest of this manual. Have said SET ii = i*i SET iii = i**3 and proceeded from there, orĮven skipped the file altogether by saying set i = 1,8 instead of In fact, the same plot could have been produced from a data file which It is possible to edit the playback buffer, rather than Make them actually appear, type hardcopy or issue anotherīe sure to say dev tek4010 (or whatever device you chose)ĭocument. Plotting commands will appear on the laser printer not your terminal. Recommends as a hardcopy device), then playback. Hardcopy, so type dev laser lqueue (or whatever your friendly Guru Now type playback and your plot should reappear. If there are any other mistakes use DELETE m n to delete You probablyĭon't want the ERASE command to be repeated, so type DELETE HISTORY to see the commands that you have issued. What if you want hard copy of your hard-earned graph? There is aĬommand (actually a macro) called playback which will repeat all The TICKSIZE command allows you to do this, and You might have wanted the axes to reflect the fact that you On vectors try it - SET x=1,10 SET y=x**3 set ly=LG(y) LIMITS x lyĬON x ly box. You can take logs of a vector using the LG (or LN) commands If you want a logarithmic plot, SM makes that easy for you. Were not limited to only use squares as markers or solid lines toĬonnect them - see PTYPE and LTYPE for details. You could have typed LIMITS i iii POINTS i iii instead.Īnd of course you could plot ii against iii as a third LIMITS i ii # Choose limits, based on i and ii READ # Read column 2 into `ii' and 3 into `iii' # is a comment, you don't have to type this (or the #). Plot something, use the following set of commands. You should now have successfully chosen a graphics terminal. You have succeeded if typing BOX draws a box.
SIMPLY FORTRAN GRAPHICS EXAMPLES MANUAL
Of DEVICE, or (if desperate) read the manual (see section The Stdgraph Graphics Kernel). To call your terminal, use the LIST DEVICE command, ask some local Youĭo this with a command like dev tek4010. Let us assume that you have a file called mydata, which looksįirst type DELETE 0 10000 to tell SM to forget anyĬommands that it has remembered.

If you really want to use your shift key. Interested, see the section on "overloading". The meanings of lowercase keywords, but this can be confusing. Keywords may be typed in lower or uppercase (as we do in this manual),īut we would recommend using lowercase. Before you start, notice that SM is case sensitive.
SIMPLY FORTRAN GRAPHICS EXAMPLES HOW TO
Let us start with a description of how to produce your first SM (sets of SM plot commands that are defined andįeatures of SM are described fully in the next few sections, but There is also a powerful mechanism for defining and editing plot `macros' The plot data may be defined to SM in a number of ways. SM is an interactive plotting programme with a flexibleĬommand language. See section `The SM Tutorial' in The SM Tutorial. In addition to this manual there is a tutorial introduction which you

SM is provided `as is' with no warranty, and we are not responsible for any Will provide some support and allow you with as many upgradesĪs you provide tapes for (or wish to retrieve with ftp). Legally acquired copy you may use it on any computer "on the same site",īut you may not give it away or sell it. To the contrary, either in the code, or in the manual. This programme is not public domain, except where specifically stated Please also send us any clever macros that you would like to share. Unix the macro gripe should be a convenient way to send us mail. Or anything else that inspires you please let us know. If you find bugs, (reasonable) features that you want, wrong documentation, Information may be obtained from the HELP command, this document, theĪuthors, and the source code. SM is still evolving slowly, and this documentation may not be How to Choose the Name for Fortran Subroutines.Why do I have to call sm_alpha, sm_graphics, sm_gflush, and sm_redraw?.Calling the SM interactive Parser from Programmes.DO and FOREACH loops, WHILE loops, and IF statements.Facilities within the Command Interpreter.SM SM Edition 2.4.1, July 1997 by Robert Lupton and Patricia Monger
