- 积分
- 892
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2014-2-25
- 最后登录
- 1970-1-1
|
登录后查看更多精彩内容~
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
本帖最后由 addison 于 2015-9-10 08:48 编辑
看到有人求泰勒图(Taylor diagram)用Grapher软件作图,分享自己写的代码,适合Grapher10/11
输入数据格式:
'file format: for example "xy2.dat"
'1st line: referenced point value (x0,0.0) in x axis, here x0 should be the std of referenced/observed value
'2nd line: std*cos(fai), std*sin(fai) where std is one of the standard deviation of input model to compare with the referenced value, and cos(fai)==correlation coefficients, fai =acos(correlation_coefficient)
'3rd line: std*cos(fai), std*sin(fai) another model result like 2nd line
'contents of xy2.dat as test0.7 0
1.0 0
0.95 0.2
1.2 0.3
运行程序需修改的4个参数:
' to run the program correctly, please modify below lines
File_path="G:\xy2.dat" 'x and y coordinate (Note: NOT radian and angle in Taylor (2001), x=r*cos(fai), y=r*sin(fai))
x_col=1 : y_col=2 'colonum to be used for plotR=1.5 'the maximum x and y axis value, R is the maximum std, and should be choice suitable by your self (e.g. a suitable value larger than maxi. std for easy read)
X0=0.7 'reference point at x axis (0<X0<R)==the 1st line value, this is used to mark reference point in the plot corretly.
axis_step=0.3 'axis increase step length, this value also the 1st raidan circle radius
运行方法:如果你装了Grapher,双击附件,并点击运行(类似play的一个小三角)
当然,运行完了,还需要进行手工美化(主要是线型、颜色等调整,很容易的事情了。这些本来可以在bas文件中设置,线型要自己定义好再用,请看bas程序相关内容自行修改,但颜色在grapher11中好像不起作用,不知是否是bug)。
Taylor Diagram
|
评分
-
查看全部评分
|