简介: CSDN博客专家,专注Android/Linux系统,分享多mic语音方案、音视频、编解码等技术,与大家一起成长!
优质专栏:Audio工程师进阶系列【原创干货持续更新中……】
人生格言: 人生从来没有捷径,只有行动才是治疗恐惧和懒惰的唯一良药.
本篇目的:Linux平台利用gnuplot工具,绘制正弦波曲线图。
# sudo apt install gnuplot
# gnuplot
G N U P L O T
Version 5.4 patchlevel 2 last modified 2021-06-01
Copyright (C) 1986-1993, 1998, 2004, 2007-2021
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
Terminal type is now 'wxt'
gnuplot>
gnuplot> plot sin(x)
gnuplot> plot cos(x)
创建数据集01.txt
0 0
1 8
3 9
10 20
绘制
# gnuplot
# plot "01.txt" with linespoints
或者:
# gnuplot -e "plot '01.txt' with linespoints" -p