gnuplot读取mysql数据库_在gnuplot中读取外部数据文件(Reading external data files in gnuplot)...

Well, this is a continuation of my previous question. As, I mentioned, the data files are produced from a Fortran code. All the data files contain two columns of data. In the Fortran code I use the FORMAT (2(1X,D22.16)). So, the output files look like

-.4515533388641104D-01 -.6842652196656712D+01

-.1381692033642749D+00 0.6762844180244199D+01

-.5741668880663318D-01 -.7891086299010933D+01

-.1051164522902431D+00 0.7758389636011907D+01

-.7574000988697732D-01 -.8180315630079706D+01

-.7939204753736680D-01 0.8167097825331970D+01

-.1003250672387262D+00 -.7865995561517515D+01

-.6006135667296913D-01 0.7987393828927278D+01

..................... ......................

This is only a small sample portion of one data file. In order to plot this data file I use

plot "data001.out" u 1:2 w d lc rgb 'black'

However, gnuplot fails to read the data correctly and produced this plot

N5Zcf.png

The correct plot, using Mathematica program, is this

sUibE.png

I noticed, that if I change the FORMAT to (2(1X,F22.16)) (in decimal form) everything is OK. Why gnuplot cannot read data in exponential form? Is there a way to tell the program how to read this type of data?

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值