From 92f4c51fc46b91d2caf4264158259a6c715d1b8d Mon Sep 17 00:00:00 2001 From: sabertazimi Date: Wed, 12 Dec 2018 11:37:40 +0800 Subject: [PATCH] update(linux-plot): basic usage of gnuplot issue sabertazimi/awesome-notes#104 --- programming/linux/linuxBasicNotes.md | 19 +++++++++++++++++++ .../linux/setUp/ubuntu/ubuntu_16.04.ini | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/programming/linux/linuxBasicNotes.md b/programming/linux/linuxBasicNotes.md index 3f1c4960d0..e1f9fa301d 100755 --- a/programming/linux/linuxBasicNotes.md +++ b/programming/linux/linuxBasicNotes.md @@ -125,6 +125,7 @@ - [Monitor Info](#monitor-info) - [Touchpad Synaptics](#touchpad-synaptics) - [并行命令](#并行命令) + - [Plot Command](#plot-command) - [Other Command](#other-command) - [Time](#time) - [Shell编程](#shell编程) @@ -1002,6 +1003,24 @@ synclient TouchpadOff=0 > e.g ls && echo yes >> .log || echo no >> .log +### Plot Command + +chart.gp + +```bash +#!/usr/bin/env gnuplot + +set term wxt enhanced +set xtics +set view +set multiplot +set size +set origin +fit + +plot 'data.dat' using 1:2, 'data.dat' using 1:3 +``` + ### Other Command #### Time diff --git a/programming/linux/setUp/ubuntu/ubuntu_16.04.ini b/programming/linux/setUp/ubuntu/ubuntu_16.04.ini index 9eb1d15582..5b7d42d90d 100644 --- a/programming/linux/setUp/ubuntu/ubuntu_16.04.ini +++ b/programming/linux/setUp/ubuntu/ubuntu_16.04.ini @@ -58,7 +58,7 @@ packages = screen zsh - packages = doxygen graphviz ctags cscope manpages-zh + packages = gnuplot doxygen graphviz ctags cscope manpages-zh packages = octave transfig epstool cifs-utils