GLE

Rasprave u vezi Linux aplikacija.

Moderator/ica: Moderatori/ce

Odgovori
Avatar
stefan
Moderator
Postovi: 4366
Pridružen/a: 28 sij 2009, 18:46
Spol: M
OS: openSUSE Leap KDE

GLE

Post Postao/la stefan »

http://glx.sourceforge.net/index.html
GLE (Graphics Layout Engine) is a graphics scripting language designed for creating publication quality figures (e.g., a chart, plot, graph, or diagram). GLE supports various chart types (including function plot, histogram, bar chart, scatter plot, contour plot, color map, and surface plot) through a simple but flexible set of graphing commands. More complex output can be created by relying on GLE's scripting language, which is full featured with subroutines, variables, and logic control. GLE relies on LaTeX for text output and supports mathematical formulea in graphs and figures. GLE's output formats include EPS, PS, PDF, JPEG, and PNG. GLE is licenced under the BSD license. QGLE, the GLE user interface, is licenced under the GPL license.
Cross platform i BSD licenca.
Ovo bi moglo biti vrlo korisno!

Primjeri:
slika

slika

slika

slika

slika

slika

Sam kod je dovoljno čitak: evo primjera (za zadnji graf sa unijom i presijekom krugova)

Kod: Označi sve

size 4 3.7

set hei 0.4 just cc arrowsize 0.2
cy = pageheight()/2; delx = 0.7; crad = 1;
cx1 = pagewidth()/2-delx; cx2 = pagewidth()/2+delx
angle = todeg(acos(delx/crad))

! draw red circle
amove cx1 cy
circle crad fill red
tex "$A$" name A

! draw green circle
amove cx2 cy
circle crad fill green
tex "$B$" name B

! draw yellow intersection
begin path fill yellow stroke
   asetpos cx2 cy; arc crad 180-angle 180+angle
   asetpos cx1 cy; arc crad 360-angle angle
end path

! draw "A \cap B" at the top + corresponding arrow
set just bc
amove pagewidth()/2 cy+1.4
tex "$A \cap B$"
rmove 0 -0.1; aline pagewidth()/2 cy+0.25 arrow end

! draw "A \cup B" at the bottom
set just tc
amove pagewidth()/2 cy-1.4
tex "$A \cup B$"
rmove 0 +0.1; save arroworig

! draw three arrows at the bottom
aline pagewidth()/2 cy-0.25 arrow end
amove ptx(arroworig) pty(arroworig); aline pointx(A.bc) cy-0.25 arrow end
amove ptx(arroworig) pty(arroworig); aline pointx(B.bc) cy-0.25 arrow end
Like some other animals, the gecko can perform a neat trick when threatened by a predator: it can amputate its own tail. The dropped tail serves to distract the predator, and by losing it, the lizard can run faster.
Avatar
glaskoncILLa
Postovi: 5678
Pridružen/a: 28 vel 2009, 16:36

Re: GLE

Post Postao/la glaskoncILLa »

zgodno.
...."Have you mooed today?"...
..It’s that time of the decade: I’m reinstalling Debian..
Odgovori