summaryrefslogtreecommitdiff
path: root/web/latency/ploticus/plot-autorange.pls
diff options
context:
space:
mode:
Diffstat (limited to 'web/latency/ploticus/plot-autorange.pls')
-rw-r--r--web/latency/ploticus/plot-autorange.pls46
1 files changed, 46 insertions, 0 deletions
diff --git a/web/latency/ploticus/plot-autorange.pls b/web/latency/ploticus/plot-autorange.pls
new file mode 100644
index 0000000..c2a6bd5
--- /dev/null
+++ b/web/latency/ploticus/plot-autorange.pls
@@ -0,0 +1,46 @@
+#
+
+#set X1 = 1
+#set Y1 = 1
+#set X2 = 5
+#set Y2 = 2
+
+#proc getdata
+ file: tmp/values
+#endproc
+
+#set SAMPLES = @NRECORDS
+
+#proc areadef
+ rectangle: @X1 @Y1 @X2 @Y2
+ yrange: 0 1
+ xautorange: datafields=1 lowfix=0
+#proc yaxis
+ label: received pings
+ stubs: incremental 0.5
+ tics: none
+#proc yaxis
+ stubs: none
+ ticincrement: 0.25
+ grid: color=green
+#proc xaxis
+ tics: yes
+ stubs: incremental
+ label: latency [m]
+#proc xaxis
+ tics: none
+ selflocatingstubs: file tmp/stubs
+ grid: color=blue width=1
+ stubdetails: adjust=0,+1.3
+
+/////////////////////////////////////
+
+#proc areadef
+ rectangle: @X1 @Y1 @X2 @Y2
+ yrange: 0 @SAMPLES
+ xautorange: datafields=1
+#proc lineplot
+ xfield: 1
+ // sort: yes
+ accum: yes
+ instancemode: yes