Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1729)

Unified Diff: DB/API_REST/utils/graphs.plt

Issue 335100043: DB with histogram
Patch Set: Fixing last bug Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DB/API_REST/thread_database.php ('k') | DB/API_REST/utils/link.plt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: DB/API_REST/utils/graphs.plt
diff --git a/DB/API_REST/utils/graphs.plt b/DB/API_REST/utils/graphs.plt
new file mode 100755
index 0000000000000000000000000000000000000000..b2f8c239154d0e5a995a46dfe3aade0ab91524c1
--- /dev/null
+++ b/DB/API_REST/utils/graphs.plt
@@ -0,0 +1,28 @@
+set terminal jpeg size 1200,500
+# reset all options to default, just for precaution
+reset
+set output "img/figure_graphs.jpg"
+#set style data histograms
+# set the figure size
+#set size ratio 0.5
+
+# set the x axis
+set xlabel "Object index"
+set xtics rotate out
+set style fill solid border
+# set the y axis
+set yrange [0:1] noreverse nowriteback
+set ylabel "Average topology link utilization(%)"
+set ytics 0,.1,1
+
+# set no grid (grid lines start from tics on both x and y axis)
+#unset grid
+set key outside;
+set key right top;
+#set style line 10 linetype 1 linecolor rgb "cyan"
+#show style line
+# plot the points from the data file
+#set style histogram clustered
+#plot for [COL=2:2] "log_graph/graphs.log" u COL:xticlabels(1) title columnheader
+
+plot "log_graph/graphs.log" u 1:2 with linespoints ls 1 title columnheader
« no previous file with comments | « DB/API_REST/thread_database.php ('k') | DB/API_REST/utils/link.plt » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b