python调用gnuplot
来源:互联网 发布:windows桌面文件路径 编辑:程序博客网 时间:2024/05/22 08:23
#! /usr/bin/python3.5 from subprocess import * gnuplot= Popen('gnuplot',stdin = PIPE, stderr=PIPE,stdout=PIPE) #gnuplot.stdin .write(b"set terminal jpeg \n") #gnuplot.stdin .write(b"set output 'plot.jpg' \n") #存到图片时候不会跳出gnuplot界面gnuplot.stdin .write(b"set xlabel 'sample' \n") gnuplot.stdin .write(b"set ylabel 'value'\n") gnuplot.stdin .write(b"set title 'svm' \n") gnuplot.stdin .write(b"plot 'svmout\\plotdata.txt' using 1:2 with p pointsize 0.5 linetype 8,") gnuplot.stdin .write(b" 'svmout\\plotdata.txt' using 1:3 with p pointsize 0.5 linetype 7 \n") gnuplot.stdin .flush()input('Press the Return key to quit: ')#暂停一下,防止gnuplot界面自动关闭gnuplot.stdin .close()#这条语句执后gnuplot界面关闭
0 0
- python调用gnuplot
- libsvm+python+gnuplot之一
- Python产生Gnuplot绘图数据
- gnuplot
- gnuplot
- gnuplot
- gnuplot
- gnuplot
- c++调用gnuplot显示数据图
- Python,gnuplot,libsvm配置详细步骤
- libsvm+python+gnuplot之二--接口配置
- 利用 gnuplot_i 在你的 c 程序中调用 GNUPLOT
- libsvm的使用(Python、gnuplot的下载安装)
- GNUPLOT使用手册
- 安装gnuplot
- Gnuplot绘图
- gnuplot用法
- gnuplot 学习
- CNN中Max Pooling的作用
- 深度学习小白——CS231n Assignment2(CNN)
- 网页加载的思考
- [leetcode: Python]258. Add Digits
- C#中Newtonsoft.Json(Json.NET)的使用
- python调用gnuplot
- ActivityManager的使用
- (一)虚拟环境
- Express中使用自定义视图模板引擎
- 访问glashfish里面的servlet的时候一直提示404错误见解
- 关于BIOS的故事
- Tensorflow一些常用基本概念与函数(1)
- java的加密与解密
- win10安装python3,tensorflow,numpy,scipy和matplotlib