12.07.2015 Views

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

GLE User Manual - Fedora Project Packages GIT repositories

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

14 CHAPTER 3. PRIMITIVESTable 3.1: Include files distributed with <strong>GLE</strong>.barstyles.gle Defines additional styles for bar plots.color.gleDefines functions for working with colors.colors-gle-4.0.12.gle Redefines all colors defined in <strong>GLE</strong> 4.0.12 and before.contour.gle Subroutines for drawing contour plotselectronics.gle Subroutines for drawing electronical circuitsellipse.gleDraw text in an ellipsefeyn.gleSubroutines for drawing Feynmann diagramsgraphutil.gle Subroutines for drawing graphspiesub.glePie chart routinespolarplot.gle Polar plotting routinesshape.gleDrawing various shapessimpletree.gle Draw simple treesstm.gleAdd labels to imagesziptext.gleDraw zipped textgrestoreRestores the most recently saved graphics state. This is the simplest way to restore complicatedtransformations such as rotations and translations. It must be paired with a previous gsave command.gsaveSaves the current graphics transformation matrix and the current point and the current colour, fontetc.if expression then command [...] else command [...] end ifIf expression evaluates to true, then execution continues with the statements up to the correspondingelse, otherwise the statements following the else and up to the corresponding end if are executed.amove 3 3if xpos()=3 thentext We are at x=3elsetext We are elsewhereend ifNote: end if is not spelt endif.include filenameIncludes the <strong>GLE</strong> script “filename” into the current script. This is useful for including library scriptswith subroutines. <strong>GLE</strong> searches a number of predefined directories for include files. By default,this includes the current directory and the “lib” or “gleinc” subdirectory of the root directory(<strong>GLE</strong> TOP) of your <strong>GLE</strong> installation. The latter includes a number of subroutine files that aredistributed with <strong>GLE</strong> (Table 3.1). Additional include directories can be defined by means of theenvironment variable <strong>GLE</strong> USRLIB.join object1.just sep object2.just [curve α1 α2 d1 d2]Draws a line between two named objects. An object is simply a point or a box which was given aname when it was drawn.The justify qualifiers are the standard <strong>GLE</strong> justification abbreviations: .br (bottom right), .bl(bottom left), .bc (bottom centre), .tr (top right), .tc (top centre), .tl (top left), .cr (centreright), .cc (centre centre), and .cl (centre left). In addition, .v and .h can be used to drawvertical or horizontal lines connecting to the object, .c for drawing a line connecting to e circle orellipse, and .box for drawing a line to a rectangle. Fig. 3.3 shows examples of the different cases.If sep is written as -, a line is drawn between the named objects e.g.join fred.tr - mary.tl

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!