更新时间:2023-10-09 11:01:04
嘿.我是一个分子图形学的专家,自1970年代的研究生时代起就开始编写查看器和可视化工具.你知道吗?我真的不喜欢在分子图形学中使用透视图.如此之多,我将gnuplot中的缺失称为功能而不是限制.
Heh. I'm a molecular graphics wonk myself, having written viewers and visualization tools since grad student days in the 1970s. And you know what? I really dislike the use of perspective in molecular graphics. So much so that I'll call the absence in gnuplot a feature rather than a limitation.
gnuplot集合中有一个演示molecule.dem
,显示了简单的分子图形.它在gnuplot(5.3)的开发版本中效果更好,在这里您可以对原子使用带有圆圈"而不是带有点"的绘图样式.在这里,您去了:
There is demo molecule.dem
in the gnuplot collection showing simple molecular graphics. It works better in the development version of gnuplot (5.3), where you can use plotting style "with circles" rather than "with points" for the atoms. Here you go:
set title "GM1 pentasaccharide ball-and-stick representation"
set hidden3d
set border 0
unset tics
unset key
set title offset 0, screen -0.85
set view equal xyz
set view 348, 163, 1.64872, 1.14
set style fill transparent solid 0.9 border -1
atomcolor(name) = name[1:1] eq "O" ? 0xdd2222 : name [1:1] eq "N" ? 0x4444ff : 0x888888
splot 'GM1_sugar.pdb' using 6:7:8:(0.6):(atomcolor(strcol(3))) with circles fc rgb var, \
'GM1_bonds.r3d' using 1:2:3:($5-$1):($6-$2):($7-$3) with vectors nohead lw 3 lc "black"
注意: