op keyword arguments mandatory optional text "hello, world" 80 50 2 text "hello, world" 80 40 2 "serif" text "hello, world" 80 30 2 "serif" "red" text "hello, world" 80 20 2 "serif" "red" 50 hello, world hello, world hello, world hello, world
y=80.45 size=x/5 s="Hello" text s x y size a=100+200.7 a=x-10 a=x*10 a=x/y x+=10 x-=10 x*=10 x/=y // assign 10 to x // assign 80.45 to y // x divided by 5 to size // s has the string value 'Hello' // Use the variables // addition // subtraction // multiplication // division // increase x by 10 // decrease x by 10 // multiply x by 10 // divide x by value of y
hline vline arc curve polyline circle acircle ellipse square rect rrect pill polygon star image cimage lbrace rbrace ubrace dbrace lbracket rbracket ubracket dbracket arrow lcarrow rcarrow dcarrow ucarrow list blist nlist clist begin center end rotate h e l l o, w o r l d Now is the time for all good men to come This is the contents of a file. it has lines of text. Reading is fundamental. import "fmt" func main() { fmt.Println("Go") } one two three one two three 1. one 2. two 3. three first second item thrid
arc Block text Block text from file File contents Code listing keyword text ctext etext rtext arctext textblock textblockfile textfile textcode mandatory "..." x y fontsize "..." x y fontsize "..." x y fontsize "..." x y angle fontsize "..." x y rad a1 a2 fontsize "..." x y w fontsize "file" x y w fontsize "file" x y fontsize "file" x y w fontsize optional font color op link font color op link font color op link font color op link font color op link font color op link font color op link font color op spacing font color
x y radius a1 a2 fontsize font color op link What is up T h i s i s c u r v y arctext "What is up" 25 20 10 180 90 3 "mono" arctext "This is curvy" 75 30 10 180 360 3 "mono"
prevails, and where any one class is made to feel that society is an organized conspiracy to oppress, rob and degrade them, neither persons nor property will be safe.” (x,y) w textblock "..." x y w fontsize font color op link “Where justice is denied, where poverty is enforced, where ignorance prevails, and where any one class is made to feel that society is an organized conspiracy to oppress, rob and degrade them, neither persons nor property will be safe.” “Where justice is denied, where poverty is enforced, where ignorance prevails, and where any one class is made to feel that society is an organized conspiracy to oppress, rob and degrade them, neither persons nor property will be safe.” textblock "..." 10 35 30 2 textblock "..." 50 35 10 1 "sans" "maroon"
of text. Reading is fundamental. (x,y) textfile "..." x y fontsize font color op link This is the contents of a file. it has lines of text. Reading is fundamental. textfile "example.txt" 10 35 2 import "fmt" func main() { fmt.Println("Go") } textfile "hw-go" 55 35 1.6 "mono" "maroon"
Quadratic Bezier Circle Area circle Ellipse Square Rectangle Rounded rectangle Pill shape Polygon Polyline N-sided star keyword line hline vline arc curve circle acircle ellipse square rect rrect pill polygon polyline star mandatory x1 y1 x2 y2 lw x y w x y h x y w h a1 a2 bx by cx cy ex ey x y w x y area x y w h x y w x y w h x y w h radius x y w h "x1 x2...xn" "y1 y2...yn" "x1 x2...xn" "y1 y2...yn" x y sides inner outer optional color op lw color op lw color op lw color op lw color op color op color op color op color op color op color color color op lw color op color op
in terms of canvas width. The scale value is a percentage from 1-100, and link is a URL. capsize is the text size of the caption description Image Captioned image keyword image cimage mandatory "file" x y w h "file" "caption" x y w h optional scale "link" scale "link" capsize
keyword list blist nlist clist mandatory x y fontsize x y fontsize x y fontsize x y fontsize optional font color op spacing font color op spacing font color op spacing font color op spacing
elist list x y fontsize font color op spacing (x,y) list 20 30 2.5 li "one" li "two" li "three" elist list 85 30 2.5 "serif" "maroon" 100 1.0 li "one" li "two" li "three" elist one two three one two three
elist blist x y fontsize font color op spacing (x,y) blist 20 30 2.5 li "one" li "two" li "three" elist blist 85 30 2.5 "serif" "maroon" 100 1.0 li "one" li "two" li "three" elist one two three one two three
elist nlist x y fontsize font color op spacing (x,y) nlist 20 30 2.5 li "one" li "two" li "three" elist nlist 85 30 2.5 "serif" "maroon" 100 1.0 li "one" li "two" li "three" elist 1. one 2. two 3. three 1. one 2. two 3. three
elist clist x y fontsize font color op spacing (x,y) clist 30 30 2.5 li "first one" li "next" li "and last" elist clist 90 30 2.5 "serif" "maroon" 100 1.0 li "first" li "next" li "and last" elist first one next and last first next and last
curved keyword arrow lcarrow rcarrow ucarrow dcarrow mandatory x1 y1 x2 y2 bx by cx cy ex ey bx by cx cy ex ey bx by cx cy ex ey bx by cx cy ex ey optional lw aw ah color op lw aw ah color op lw aw ah color op lw aw ah color op lw aw ah color op
Down brace Left bracket Right bracket Up bracket Down bracket keyword lbrace rbrace ubrace dbrace lbracket rbracket ubracket dbracket mandatory x y height bw bh x y height bw bh x y width bw bh x y width bw bh x y width height x y width height x y width height x y width height optional lw color op lw color op lw color op lw color op lw color op lw color op lw color op lw color op
coordinate (x) Polar coordinate (y) Polar coordinates Area Formatted text Random number Square Root Value mapping Define function Import function In-line data Objects on a grid keyword for v= p= x=polarx y=polary value=polar value=area value=format value=random value=sqrt value=vmap def import data grid mandatory begin end [increment] ... efor (x,y) x y radius angle x y radius angle x y radius angle expression fmt expression min max expression data min1 max1 min2 max2 name arg1 ... argn ... edef "file" "file" ... edata "file" x y hspace vspace edge
fx fy fs "serif" "purple" edef fx=50 fy=20 fs=2.5 ft="hello" ctext ft fx fy fs "serif" "purple" contents of "doit.dsh" doit 50 20 2.5 "hello" import "file" calling the function call again doit 50 30 5 "calling the function" doit 50 20 4 "call again"
one 100 two 200 three 300 four 400 five 500 edata dchart -bar -left 50 -bottom 15 -right 70 -top 35 "test.d" 100 one 200 two 300 three 400 four 500 five data "file.d" first 20 second 100 third 200 edata
y 8 square x y 8 square x y 4 square x y 2 grid "file" x y hspace vspace limit (x,y) vspace hspace limit file circle x y 2 circle x y 4 circle x y 6 circle x y 8 square x y 8 square x y 6 square x y 4 square x y 2 grid "code/grid-ex.dsh" 35 33 10 10 65
-bar -wbar -hbar -donut -dot -lego -line -pgrid -pmap -bowtie -fan -radial -scatter -slope -vol true false false false false false false false false false false false false false false bar chart word bar chart horizontal bar chart donut chart dot chart lego chart line chart proportional grid proportional map bowtie chart fan chart radial chart scatter chart slope chart volume (area) chart -csv -frame -fulldeck -grid -note -pct -rline -solidpmap -spokes -title -val -xlast -xstagger -yaxis -chartitle -datacond -hline -valpos -xlabel -yrange false false true false true false false false false true true false false false override title in data low,high,color value,label t=top, b=bottom, m=middle default=1, 0 to suppress min,max.step read CSV files show a colored frame generate full deck markup show gridlines on the y axis show annotations show computed percentage show a regression line show solid pmap colors show spokes in radial chart show the title show values show the last x label stagger x axis labels show a y axis specify the title conditional data colors label horizontal line at value value position x axis label interval specify the y axis label range -top -bottom -left -right -min -max 80 30 20 80 data min data max top of the chart bottom of the chart left margin right margin set the minimum data value set the maximum data value -bgcolor -barwidth -color -csvcol -datafmt -dmin -framecolor -lcolor -linewidth -ls -noteloc -pmlen -psize -pwidth -rlcolor -textsize -xlabrot -vcolor -volop white computed from data size lightsteelblue labe1,label2 %.1f false rgb(127,127,127) rgb(75,75,75) 0.2 2.4 c=center, r=right, l=left 20 30 3 rgb(127,0,0) 1.5 0 rgb(127,0,0) 50 background color barwidth data color specify csv columns data format for values use data minimum, not zero frame color label color linewidth linespacing annotation location pmap label length diameter of the donut width of the donut or pmap regression line color text size xlabel rotation (deg.) value color volume opacity %
300 three 400 four 500 five dchart options "file" -bar -yaxis -left=35 -top=90 -bottom=65 -right=65 100 one 200 two 300 three 400 four 500 five dchart -left=10 -right=30 -top=35 -bottom=20 "test.d" 100 one 200 two 300 three 400 four 500 five dchart -left=55 -right=85 -top=35 -bottom=20 -bar=f -line "test.d"