mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-28 17:20:22 +00:00
Gnuplot added
This commit is contained in:
@@ -639,6 +639,16 @@ Glyph:
|
||||
lexer: Tcl
|
||||
primary_extension: .glf
|
||||
|
||||
Gnuplot:
|
||||
type: programming
|
||||
color: "#f0a9f0"
|
||||
lexer: Gnuplot
|
||||
primary_extension: .gp
|
||||
extensions:
|
||||
- .gnu
|
||||
- .plot
|
||||
- .plt
|
||||
|
||||
Go:
|
||||
type: programming
|
||||
color: "#a89b4d"
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
"Ceylon": [
|
||||
".ceylon"
|
||||
],
|
||||
"Cirru": [
|
||||
".cirru"
|
||||
],
|
||||
"Clojure": [
|
||||
".cl2",
|
||||
".clj",
|
||||
@@ -126,6 +129,10 @@
|
||||
".fp",
|
||||
".glsl"
|
||||
],
|
||||
"Gnuplot": [
|
||||
".gnu",
|
||||
".gp"
|
||||
],
|
||||
"Gosu": [
|
||||
".gs",
|
||||
".gst",
|
||||
@@ -535,8 +542,8 @@
|
||||
".gemrc"
|
||||
]
|
||||
},
|
||||
"tokens_total": 445429,
|
||||
"languages_total": 523,
|
||||
"tokens_total": 446696,
|
||||
"languages_total": 538,
|
||||
"tokens": {
|
||||
"ABAP": {
|
||||
"*/**": 1,
|
||||
@@ -12715,6 +12722,43 @@
|
||||
"<=>": 1,
|
||||
"other.name": 1
|
||||
},
|
||||
"Cirru": {
|
||||
"print": 38,
|
||||
"array": 14,
|
||||
"int": 36,
|
||||
"string": 7,
|
||||
"set": 12,
|
||||
"f": 3,
|
||||
"block": 1,
|
||||
"(": 20,
|
||||
"a": 22,
|
||||
"b": 7,
|
||||
"c": 9,
|
||||
")": 20,
|
||||
"call": 1,
|
||||
"bool": 6,
|
||||
"true": 1,
|
||||
"false": 1,
|
||||
"yes": 1,
|
||||
"no": 1,
|
||||
"map": 8,
|
||||
"m": 3,
|
||||
"float": 1,
|
||||
"require": 1,
|
||||
"./stdio.cr": 1,
|
||||
"self": 2,
|
||||
"child": 1,
|
||||
"under": 2,
|
||||
"parent": 1,
|
||||
"get": 4,
|
||||
"x": 2,
|
||||
"just": 4,
|
||||
"-": 4,
|
||||
"code": 4,
|
||||
"eval": 2,
|
||||
"nothing": 1,
|
||||
"container": 3
|
||||
},
|
||||
"Clojure": {
|
||||
"(": 83,
|
||||
"defn": 4,
|
||||
@@ -17947,6 +17991,179 @@
|
||||
"gl_FragColor.rgba": 1,
|
||||
"sampled.rgb": 1
|
||||
},
|
||||
"Gnuplot": {
|
||||
"set": 98,
|
||||
"label": 14,
|
||||
"at": 14,
|
||||
"-": 102,
|
||||
"left": 15,
|
||||
"norotate": 18,
|
||||
"back": 23,
|
||||
"textcolor": 13,
|
||||
"rgb": 8,
|
||||
"nopoint": 14,
|
||||
"offset": 25,
|
||||
"character": 22,
|
||||
"lt": 15,
|
||||
"style": 7,
|
||||
"line": 4,
|
||||
"linetype": 11,
|
||||
"linecolor": 4,
|
||||
"linewidth": 11,
|
||||
"pointtype": 4,
|
||||
"pointsize": 4,
|
||||
"default": 4,
|
||||
"pointinterval": 4,
|
||||
"noxtics": 2,
|
||||
"noytics": 2,
|
||||
"title": 13,
|
||||
"xlabel": 6,
|
||||
"xrange": 3,
|
||||
"[": 18,
|
||||
"]": 18,
|
||||
"noreverse": 13,
|
||||
"nowriteback": 12,
|
||||
"yrange": 4,
|
||||
"bmargin": 1,
|
||||
"unset": 2,
|
||||
"colorbox": 3,
|
||||
"plot": 3,
|
||||
"cos": 9,
|
||||
"(": 52,
|
||||
"x": 7,
|
||||
")": 52,
|
||||
"ls": 4,
|
||||
".2": 1,
|
||||
".4": 1,
|
||||
".6": 1,
|
||||
".8": 1,
|
||||
"lc": 3,
|
||||
"boxwidth": 1,
|
||||
"absolute": 1,
|
||||
"fill": 1,
|
||||
"solid": 1,
|
||||
"border": 3,
|
||||
"key": 1,
|
||||
"inside": 1,
|
||||
"right": 1,
|
||||
"top": 1,
|
||||
"vertical": 2,
|
||||
"Right": 1,
|
||||
"noenhanced": 1,
|
||||
"autotitles": 1,
|
||||
"nobox": 1,
|
||||
"histogram": 1,
|
||||
"clustered": 1,
|
||||
"gap": 1,
|
||||
"datafile": 1,
|
||||
"missing": 1,
|
||||
"data": 1,
|
||||
"histograms": 1,
|
||||
"xtics": 3,
|
||||
"in": 1,
|
||||
"scale": 1,
|
||||
"nomirror": 1,
|
||||
"rotate": 3,
|
||||
"by": 3,
|
||||
"autojustify": 1,
|
||||
"norangelimit": 3,
|
||||
"font": 8,
|
||||
"i": 1,
|
||||
"using": 2,
|
||||
"xtic": 1,
|
||||
"ti": 4,
|
||||
"col": 4,
|
||||
"u": 25,
|
||||
"SHEBANG#!gnuplot": 1,
|
||||
"reset": 1,
|
||||
"terminal": 1,
|
||||
"png": 1,
|
||||
"output": 1,
|
||||
"ylabel": 5,
|
||||
"#set": 2,
|
||||
"xr": 1,
|
||||
"yr": 1,
|
||||
"pt": 2,
|
||||
"notitle": 15,
|
||||
"dummy": 3,
|
||||
"v": 31,
|
||||
"arrow": 7,
|
||||
"from": 7,
|
||||
"to": 7,
|
||||
"head": 7,
|
||||
"nofilled": 7,
|
||||
"parametric": 3,
|
||||
"view": 3,
|
||||
"samples": 3,
|
||||
"isosamples": 3,
|
||||
"hidden3d": 2,
|
||||
"trianglepattern": 2,
|
||||
"undefined": 2,
|
||||
"altdiagonal": 2,
|
||||
"bentover": 2,
|
||||
"ztics": 2,
|
||||
"zlabel": 4,
|
||||
"zrange": 2,
|
||||
"sinc": 13,
|
||||
"sin": 3,
|
||||
"sqrt": 4,
|
||||
"u**2": 4,
|
||||
"+": 6,
|
||||
"v**2": 4,
|
||||
"/": 2,
|
||||
"GPFUN_sinc": 2,
|
||||
"xx": 2,
|
||||
"dx": 2,
|
||||
"x0": 4,
|
||||
"x1": 4,
|
||||
"x2": 4,
|
||||
"x3": 4,
|
||||
"x4": 4,
|
||||
"x5": 4,
|
||||
"x6": 4,
|
||||
"x7": 4,
|
||||
"x8": 4,
|
||||
"x9": 4,
|
||||
"splot": 3,
|
||||
"<": 10,
|
||||
"xmin": 3,
|
||||
"xmax": 1,
|
||||
"n": 1,
|
||||
"zbase": 2,
|
||||
".5": 2,
|
||||
"*n": 1,
|
||||
"floor": 3,
|
||||
"u/3": 1,
|
||||
"*dx": 1,
|
||||
"%": 2,
|
||||
"u/3.*dx": 1,
|
||||
"/0": 1,
|
||||
"angles": 1,
|
||||
"degrees": 1,
|
||||
"mapping": 1,
|
||||
"spherical": 1,
|
||||
"noztics": 1,
|
||||
"urange": 1,
|
||||
"vrange": 1,
|
||||
"cblabel": 1,
|
||||
"cbrange": 1,
|
||||
"user": 1,
|
||||
"origin": 1,
|
||||
"screen": 2,
|
||||
"size": 1,
|
||||
"front": 1,
|
||||
"bdefault": 1,
|
||||
"*cos": 1,
|
||||
"*sin": 1,
|
||||
"with": 3,
|
||||
"lines": 2,
|
||||
"labels": 1,
|
||||
"point": 1,
|
||||
"lw": 1,
|
||||
".1": 1,
|
||||
"tc": 1,
|
||||
"pal": 1
|
||||
},
|
||||
"Gosu": {
|
||||
"<%!-->": 1,
|
||||
"defined": 1,
|
||||
@@ -47799,6 +48016,7 @@
|
||||
"C#": 278,
|
||||
"C++": 31181,
|
||||
"Ceylon": 50,
|
||||
"Cirru": 244,
|
||||
"Clojure": 510,
|
||||
"COBOL": 90,
|
||||
"CoffeeScript": 2951,
|
||||
@@ -47819,6 +48037,7 @@
|
||||
"Forth": 1516,
|
||||
"GAS": 133,
|
||||
"GLSL": 3766,
|
||||
"Gnuplot": 1023,
|
||||
"Gosu": 410,
|
||||
"Groovy": 69,
|
||||
"Groovy Server Pages": 91,
|
||||
@@ -47941,6 +48160,7 @@
|
||||
"C#": 2,
|
||||
"C++": 27,
|
||||
"Ceylon": 1,
|
||||
"Cirru": 9,
|
||||
"Clojure": 7,
|
||||
"COBOL": 4,
|
||||
"CoffeeScript": 9,
|
||||
@@ -47961,6 +48181,7 @@
|
||||
"Forth": 7,
|
||||
"GAS": 1,
|
||||
"GLSL": 3,
|
||||
"Gnuplot": 6,
|
||||
"Gosu": 4,
|
||||
"Groovy": 2,
|
||||
"Groovy Server Pages": 4,
|
||||
@@ -48066,5 +48287,5 @@
|
||||
"Xtend": 2,
|
||||
"YAML": 1
|
||||
},
|
||||
"md5": "a46f14929a6e9e4356fda95beb035439"
|
||||
"md5": "d4e8cbba40490dac32dba0dc32ed49ad"
|
||||
}
|
||||
22
samples/Gnuplot/dashcolor.1.gnu
Normal file
22
samples/Gnuplot/dashcolor.1.gnu
Normal file
@@ -0,0 +1,22 @@
|
||||
# set terminal pngcairo background "#ffffff" fontscale 1.0 dashed size 640, 480
|
||||
# set output 'dashcolor.1.png'
|
||||
set label 1 "set style line 1 lt 2 lc rgb \"red\" lw 3" at -0.4, -0.25, 0 left norotate back textcolor rgb "red" nopoint offset character 0, 0, 0
|
||||
set label 2 "set style line 2 lt 2 lc rgb \"orange\" lw 2" at -0.4, -0.35, 0 left norotate back textcolor rgb "orange" nopoint offset character 0, 0, 0
|
||||
set label 3 "set style line 3 lt 2 lc rgb \"yellow\" lw 3" at -0.4, -0.45, 0 left norotate back textcolor rgb "yellow" nopoint offset character 0, 0, 0
|
||||
set label 4 "set style line 4 lt 2 lc rgb \"green\" lw 2" at -0.4, -0.55, 0 left norotate back textcolor rgb "green" nopoint offset character 0, 0, 0
|
||||
set label 5 "plot ... lt 1 lc 3 " at -0.4, -0.65, 0 left norotate back textcolor lt 3 nopoint offset character 0, 0, 0
|
||||
set label 6 "plot ... lt 3 lc 3 " at -0.4, -0.75, 0 left norotate back textcolor lt 3 nopoint offset character 0, 0, 0
|
||||
set label 7 "plot ... lt 5 lc 3 " at -0.4, -0.85, 0 left norotate back textcolor lt 3 nopoint offset character 0, 0, 0
|
||||
set style line 1 linetype 2 linecolor rgb "red" linewidth 3.000 pointtype 2 pointsize default pointinterval 0
|
||||
set style line 2 linetype 2 linecolor rgb "orange" linewidth 2.000 pointtype 2 pointsize default pointinterval 0
|
||||
set style line 3 linetype 2 linecolor rgb "yellow" linewidth 3.000 pointtype 2 pointsize default pointinterval 0
|
||||
set style line 4 linetype 2 linecolor rgb "green" linewidth 2.000 pointtype 2 pointsize default pointinterval 0
|
||||
set noxtics
|
||||
set noytics
|
||||
set title "Independent colors and dot/dash styles"
|
||||
set xlabel "You will only see dashed lines if your current terminal setting permits it"
|
||||
set xrange [ -0.500000 : 3.50000 ] noreverse nowriteback
|
||||
set yrange [ -1.00000 : 1.40000 ] noreverse nowriteback
|
||||
set bmargin 7
|
||||
unset colorbox
|
||||
plot cos(x) ls 1 title 'ls 1', cos(x-.2) ls 2 title 'ls 2', cos(x-.4) ls 3 title 'ls 3', cos(x-.6) ls 4 title 'ls 4', cos(x-.8) lt 1 lc 3 title 'lt 1 lc 3', cos(x-1.) lt 3 lc 3 title 'lt 3 lc 3', cos(x-1.2) lt 5 lc 3 title 'lt 5 lc 3'
|
||||
15
samples/Gnuplot/histograms.2.gnu
Normal file
15
samples/Gnuplot/histograms.2.gnu
Normal file
@@ -0,0 +1,15 @@
|
||||
# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350
|
||||
# set output 'histograms.2.png'
|
||||
set boxwidth 0.9 absolute
|
||||
set style fill solid 1.00 border lt -1
|
||||
set key inside right top vertical Right noreverse noenhanced autotitles nobox
|
||||
set style histogram clustered gap 1 title offset character 0, 0, 0
|
||||
set datafile missing '-'
|
||||
set style data histograms
|
||||
set xtics border in scale 0,0 nomirror rotate by -45 offset character 0, 0, 0 autojustify
|
||||
set xtics norangelimit font ",8"
|
||||
set xtics ()
|
||||
set title "US immigration from Northern Europe\nPlot selected data columns as histogram of clustered boxes"
|
||||
set yrange [ 0.00000 : 300000. ] noreverse nowriteback
|
||||
i = 22
|
||||
plot 'immigration.dat' using 6:xtic(1) ti col, '' u 12 ti col, '' u 13 ti col, '' u 14 ti col
|
||||
14
samples/Gnuplot/rates.gp
Normal file
14
samples/Gnuplot/rates.gp
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env gnuplot
|
||||
|
||||
reset
|
||||
|
||||
set terminal png
|
||||
set output 'rates100.png'
|
||||
|
||||
set xlabel "A2A price"
|
||||
set ylabel "Response Rate"
|
||||
|
||||
#set xr [0:5]
|
||||
#set yr [0:6]
|
||||
|
||||
plot 'rates100.dat' pt 7 notitle
|
||||
40
samples/Gnuplot/surface1.16.gnu
Normal file
40
samples/Gnuplot/surface1.16.gnu
Normal file
@@ -0,0 +1,40 @@
|
||||
# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350
|
||||
# set output 'surface1.16.png'
|
||||
set dummy u,v
|
||||
set label 1 "increasing v" at 6, 0, -1 left norotate back nopoint offset character 0, 0, 0
|
||||
set label 2 "u=0" at 5, 6.5, -1 left norotate back nopoint offset character 0, 0, 0
|
||||
set label 3 "u=1" at 5, 6.5, 0.100248 left norotate back nopoint offset character 0, 0, 0
|
||||
set arrow 1 from 5, -5, -1.2 to 5, 5, -1.2 head back nofilled linetype -1 linewidth 1.000
|
||||
set arrow 2 from 5, 6, -1 to 5, 5, -1 head back nofilled linetype -1 linewidth 1.000
|
||||
set arrow 3 from 5, 6, 0.100248 to 5, 5, 0.100248 head back nofilled linetype -1 linewidth 1.000
|
||||
set parametric
|
||||
set view 70, 20, 1, 1
|
||||
set samples 51, 51
|
||||
set isosamples 2, 33
|
||||
set hidden3d back offset 1 trianglepattern 3 undefined 1 altdiagonal bentover
|
||||
set ztics -1.00000,0.25,1.00000 norangelimit
|
||||
set title "\"fence plot\" using separate parametric surfaces"
|
||||
set xlabel "X axis"
|
||||
set xlabel offset character -3, -2, 0 font "" textcolor lt -1 norotate
|
||||
set xrange [ -5.00000 : 5.00000 ] noreverse nowriteback
|
||||
set ylabel "Y axis"
|
||||
set ylabel offset character 3, -2, 0 font "" textcolor lt -1 rotate by -270
|
||||
set yrange [ -5.00000 : 5.00000 ] noreverse nowriteback
|
||||
set zlabel "Z axis"
|
||||
set zlabel offset character -5, 0, 0 font "" textcolor lt -1 norotate
|
||||
set zrange [ -1.00000 : 1.00000 ] noreverse nowriteback
|
||||
sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)
|
||||
GPFUN_sinc = "sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)"
|
||||
xx = 6.08888888888889
|
||||
dx = 1.10888888888889
|
||||
x0 = -5
|
||||
x1 = -3.89111111111111
|
||||
x2 = -2.78222222222222
|
||||
x3 = -1.67333333333333
|
||||
x4 = -0.564444444444444
|
||||
x5 = 0.544444444444445
|
||||
x6 = 1.65333333333333
|
||||
x7 = 2.76222222222222
|
||||
x8 = 3.87111111111111
|
||||
x9 = 4.98
|
||||
splot [u=0:1][v=-4.99:4.99] x0, v, (u<0.5) ? -1 : sinc(x0,v) notitle, x1, v, (u<0.5) ? -1 : sinc(x1,v) notitle, x2, v, (u<0.5) ? -1 : sinc(x2,v) notitle, x3, v, (u<0.5) ? -1 : sinc(x3,v) notitle, x4, v, (u<0.5) ? -1 : sinc(x4,v) notitle, x5, v, (u<0.5) ? -1 : sinc(x5,v) notitle, x6, v, (u<0.5) ? -1 : sinc(x6,v) notitle, x7, v, (u<0.5) ? -1 : sinc(x7,v) notitle, x8, v, (u<0.5) ? -1 : sinc(x8,v) notitle, x9, v, (u<0.5) ? -1 : sinc(x9,v) notitle
|
||||
46
samples/Gnuplot/surface1.17.gnu
Normal file
46
samples/Gnuplot/surface1.17.gnu
Normal file
@@ -0,0 +1,46 @@
|
||||
# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350
|
||||
# set output 'surface1.17.png'
|
||||
set dummy u,v
|
||||
set label 1 "increasing v" at 6, 0, -1 left norotate back nopoint offset character 0, 0, 0
|
||||
set label 2 "increasing u" at 0, -5, -1.5 left norotate back nopoint offset character 0, 0, 0
|
||||
set label 3 "floor(u)%3=0" at 5, 6.5, -1 left norotate back nopoint offset character 0, 0, 0
|
||||
set label 4 "floor(u)%3=1" at 5, 6.5, 0.100248 left norotate back nopoint offset character 0, 0, 0
|
||||
set arrow 1 from 5, -5, -1.2 to 5, 5, -1.2 head back nofilled linetype -1 linewidth 1.000
|
||||
set arrow 2 from -5, -5, -1.2 to 5, -5, -1.2 head back nofilled linetype -1 linewidth 1.000
|
||||
set arrow 3 from 5, 6, -1 to 5, 5, -1 head back nofilled linetype -1 linewidth 1.000
|
||||
set arrow 4 from 5, 6, 0.100248 to 5, 5, 0.100248 head back nofilled linetype -1 linewidth 1.000
|
||||
set parametric
|
||||
set view 70, 20, 1, 1
|
||||
set samples 51, 51
|
||||
set isosamples 30, 33
|
||||
set hidden3d back offset 1 trianglepattern 3 undefined 1 altdiagonal bentover
|
||||
set ztics -1.00000,0.25,1.00000 norangelimit
|
||||
set title "\"fence plot\" using single parametric surface with undefined points"
|
||||
set xlabel "X axis"
|
||||
set xlabel offset character -3, -2, 0 font "" textcolor lt -1 norotate
|
||||
set xrange [ -5.00000 : 5.00000 ] noreverse nowriteback
|
||||
set ylabel "Y axis"
|
||||
set ylabel offset character 3, -2, 0 font "" textcolor lt -1 rotate by -270
|
||||
set yrange [ -5.00000 : 5.00000 ] noreverse nowriteback
|
||||
set zlabel "Z axis"
|
||||
set zlabel offset character -5, 0, 0 font "" textcolor lt -1 norotate
|
||||
set zrange [ -1.00000 : 1.00000 ] noreverse nowriteback
|
||||
sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)
|
||||
GPFUN_sinc = "sinc(u,v) = sin(sqrt(u**2+v**2)) / sqrt(u**2+v**2)"
|
||||
xx = 6.08888888888889
|
||||
dx = 1.11
|
||||
x0 = -5
|
||||
x1 = -3.89111111111111
|
||||
x2 = -2.78222222222222
|
||||
x3 = -1.67333333333333
|
||||
x4 = -0.564444444444444
|
||||
x5 = 0.544444444444445
|
||||
x6 = 1.65333333333333
|
||||
x7 = 2.76222222222222
|
||||
x8 = 3.87111111111111
|
||||
x9 = 4.98
|
||||
xmin = -4.99
|
||||
xmax = 5
|
||||
n = 10
|
||||
zbase = -1
|
||||
splot [u=.5:3*n-.5][v=-4.99:4.99] xmin+floor(u/3)*dx, v, ((floor(u)%3)==0) ? zbase : (((floor(u)%3)==1) ? sinc(xmin+u/3.*dx,v) : 1/0) notitle
|
||||
21
samples/Gnuplot/world2.1.gnu
Normal file
21
samples/Gnuplot/world2.1.gnu
Normal file
@@ -0,0 +1,21 @@
|
||||
# set terminal pngcairo transparent enhanced font "arial,10" fontscale 1.0 size 500, 350
|
||||
# set output 'world2.1.png'
|
||||
unset border
|
||||
set dummy u,v
|
||||
set angles degrees
|
||||
set parametric
|
||||
set view 60, 136, 1.22, 1.26
|
||||
set samples 64, 64
|
||||
set isosamples 13, 13
|
||||
set mapping spherical
|
||||
set noxtics
|
||||
set noytics
|
||||
set noztics
|
||||
set title "Labels colored by GeV plotted in spherical coordinate system"
|
||||
set urange [ -90.0000 : 90.0000 ] noreverse nowriteback
|
||||
set vrange [ 0.00000 : 360.000 ] noreverse nowriteback
|
||||
set cblabel "GeV"
|
||||
set cbrange [ 0.00000 : 8.00000 ] noreverse nowriteback
|
||||
set colorbox user
|
||||
set colorbox vertical origin screen 0.9, 0.2, 0 size screen 0.02, 0.75, 0 front bdefault
|
||||
splot cos(u)*cos(v),cos(u)*sin(v),sin(u) notitle with lines lt 5, 'world.dat' notitle with lines lt 2, 'srl.dat' using 3:2:(1):1:4 with labels notitle point pt 6 lw .1 left offset 1,0 font "Helvetica,7" tc pal
|
||||
Reference in New Issue
Block a user