gromacs xpm eps文件查看

作者&投稿:赵凯 (若有异议请与网页底部的电邮联系)
~ xpm文件是矩阵格式,删除上方的注释后,可以用Irfanview打开,But没有注释Label,没有xy轴label,而且颜色也不好(黑白,而且感觉不到80level),需要采用gromacs xpm2ps转换成eps文件查看。

EPS免费软件:EPS Viewer

注意:xpm2ps关于设置矩阵在画布上的位置和离画布边距离有bug,一般无法把标题和标注显示全,不要在参数文件调,直接在别的画图软件手动拼接!!

首先,需要提供一个参数文件 -di  rmsdpara.m2p

然后 用xpm2ps命令将xpm文件转化为eps文件

gmx_mpi xpm2ps -f rmsd.xpm -di rmsdpara.m2p -o rmsd.eps -rainbow blue

一个矩阵的m2p文件(rmsd.xpm):

linewidth = 6 

titlefont                = Arial //标题字符类型

titlefontsize            = 80 //标题字符大小

legend                  = yes //显示legend

legendfont              = Arial //legend字符类型,u sed when there is none in the .xpm

legendlabel              = RMSD (nm) //legend 名字,

legend2label            = // when merging two xpm's

legendfontsize          = 66  //legend字符大小

xbox                    = 10 // x-size of a matrix element 该值的大小影响画布的大小,得到的像素*像素的值改变,当xbox和ybox设置的值一样时,矩阵正方形,不一样时,是长方形

ybox                    = 10

matrixspacing            = 20  // Space between 2 matrices

xoffset                  = 300  // Between matrix and bounding box控制矩阵左边离box边的距离,同时改变x size,例如本来是2600*3400,当设置xoffset为300,则变成了2300*3400,左边离画布边的留白变小300,但是右边离画布边没有任何变化!真是bug!但是可以通过左边留白,把标题放左边

yoffset                  = 300 //控制矩阵下面离box边的距离

boxlinewidth            = 20 //box边框的宽度

ticklinewidth            = 8 //标度tick的宽度

zerolinewidth            = 0 

x-lineat0value          = none //  Draw line at matrix value==0

x-major                  = 20 //x轴大分隔符间距为20,根据自己的数值设定

x-minor                  = 10 //x轴小分隔符间距为20,一般设置为major的一半

x-firstmajor            = 0  // Offset for major tick 调节第一个标度从?开始

x-majorat0              = no  //  Additional Major tick at first frame

x-majorticklen          = 30 //大标度tick的长度

x-minorticklen          = 25 //小标度tick的长度

x-label                  = Time (ns)  //x轴标题

x-fontsize              = 66 //x轴标题字体大小

x-font                  = Arial //x轴标题字体类型 (Time (ns))

x-tickfontsize          = 60 //x轴标度数字大小(0,20,40...) 我发现设置为60时大小刚好,但是!右侧的最后一个数值显示不全,如上图所示,200被截断 了,只显示20,怎么调画布都不行,是个bug!自己画图时需要自己手动补全

x-tickfont              = Arial   //x轴标度数字类型

y-lineat0value          = none

y-major                  = 20 

y-minor                  = 10

y-firstmajor            = 0

y-majorat0              = no

y-majorticklen          = 30

y-minorticklen          = 25

y-label                  = Time (ns)

y-fontsize              = 66

y-font                  = Arial

y-tickfontsize          = 60

black&white              = no

y-tickfont              = Arial

gmx xpm2ps [-f [<.xpm>]] [-f2 [<.xpm>]] [-di [<.m2p>]] [-do [<.m2p>]]

          [-o [<.eps>]] [-xpm [<.xpm>]] [-[no]w] [-[no]frame]

          [-title <enum>] [-[no]yonce] [-legend <enum>] [-diag <enum>]

          [-size <real>] [-bx <real>] [-by <real>] [-rainbow <enum>]

          [-gradient <vector>] [-skip <int>] [-[no]zeroline]

          [-legoffset <int>] [-combine <enum>] [-cmin <real>] [-cmax <real>]

DESCRIPTION

gmx xpm2ps makes a beautiful color plot of an XPixelMap file. Labels and axis can be displayed, when they are supplied in the correct matrix format. Matrix data may be generated by programs such as gmx do_dssp, gmx rms or gmx mdmat.

When no .m2p file is supplied, many settings are taken from command line options. The most important option is -size , which sets the size of the whole matrix in postscript units. This option can be overridden with the -bx and -by options (and the corresponding parameters in the .m2p file), which set the size of a single matrix element.

With -f2 a second matrix file can be supplied. Both matrix files will be read simultaneously and the upper left half of the first one (-f) is plotted together with the lower right half of the second one (-f2) . The diagonal will contain values from the matrix file selected with -diag. 

Plotting of the diagonal values can be suppressed altogether by setting -diag to none. In this case, a new color map will be generated with a red gradient for negative numbers and a blue for positive.对角线值默认显示的是左上矩阵,可以通过-diag变为右下矩阵。

 If the color coding and legend labels of both matrices are identical, only one legend will be displayed, else two separate legends are displayed. 

OPTIONS

Options to specify input files:

-f      [<.xpm>]          (root.xpm)

          X PixMap compatible matrix file

-f2    [<.xpm>]          (root2.xpm)      (Opt.) //第二个矩阵

          X PixMap compatible matrix file

-di    [<.m2p>]          (ps.m2p)        (Opt., Lib.) //参数文件

          Input file for mat2ps

Parameters are set in the .m2p file optionally supplied with -di. Reasonable defaults are provided. Settings for the y-axis default to those for the x-axis. Font names have a defaulting hierarchy: titlefont -> legendfont; titlefont -> (xfont -> yfont -> ytickfont) -> xtickfont, e.g. setting titlefont sets all fonts, setting xfont sets yfont, ytickfont and xtickfont.

Options to specify output files:

-do    [<.m2p>]          (out.m2p)        (Opt.)

          Input file for mat2ps

-o      [<.eps>]          (plot.eps)      (Opt.)

          Encapsulated PostScript (tm) file

-xpm    [<.xpm>]          (root.xpm)      (Opt.) //可以输出一个彩色的或merge的新矩阵

          X PixMap compatible matrix file

Merged  or  rainbowed matrices  can be written to an XPixelMap file with the -xpm option.

Other options:

-[no]w                    (no)

          View output .xvg, .xpm, .eps and .pdb files

-[no]frame                (yes)

          Display frame, ticks, labels, title and legend

-title  <enum>            (top) //更改标题显示的位置,尝试过更改为ylabel,还是不显示,矩阵离边框的距离设置太bug

          Show title at: top, once, ylabel, none

-title can be set to none to suppress the title, or to ylabel to show the title in the Y-label position (alongside the y-axis).

-[no]yonce                (no)

          Show y-label only once

-legend <enum>            (both)

          Show legend: both, first, second, none

-diag  <enum>            (first) //对角线数值默认来自第一个

          Diagonal: first, second, none

-size  <real>            (400) 

          Horizontal size of the matrix in ps units

-bx    <real>            (0) 

          Element x-size, overrides -size (also y-size when -by is not set)

-by    <real>            (0)

          Element y-size

-rainbow <enum>            (no)

          Rainbow colors, convert white to: no, blue, red

With the -rainbow option, dull grayscale matrices can be turned into attractive color pictures.

-gradient <vector>        (0 0 0)

          Re-scale colormap to a smooth gradient from white {1,1,1} to

          {r,g,b}

-skip  <int>              (1)

          only write out every nr-th row and column

-[no]zeroline              (no) 

          insert line in .xpm matrix where axis label is zero

-legoffset <int>          (0)

          Skip first N colors from .xpm file for the legend

-combine <enum>            (halves) //当xpm中有两个矩阵的时候,结合模式默认为一半一半

          Combine two matrices: halves, add, sub, mult, div

With -combine, an alternative operation can be selected to combine the matrices. The output range is automatically set to the actual range of the combined matrix. This can be overridden with -cmin and -cmax.

-cmin  <real>            (0)

          Minimum for combination output

-cmax  <real>            (0)

          Maximum for combination output


代县18390021121: matlab 中eps 文件是什么?有什么作用? -
展看金得: 跨平台的标准格式 Encapsulated PostScript的缩写,是跨平台的标准格式,专用的打印机描述语言,可以描述矢量信息和位图信息. 作为跨平台的标准格式,它类似COREL DRAW的CDR...

代县18390021121: 什么是EPS -
展看金得: EPS称为被封装的PostScript格式,它主要包含以下几个特征. (1)EPS文件格式又被称为带有预视图象的PS格式,它是由一个PostScript语言的文本文件和一个(可选)低分辨率的由PICT或TIFF格式描述的代表像组成.(2)EPS文件格式的“封...

代县18390021121: 为什么有些EPS文件放到CORELDRAW里面打不开,出现以下情况,如图所述,要怎样才能解决这样的问题呢 -
展看金得: 说明你的CORELDRAW版本不对,一般EPS文件都是用CORELDRAW 12才能打开的,打开之后,你用CORELDRAW 12保存一次你经常使用CORELDRAW版本.就可以打开了.

代县18390021121: 为什么CAD导出的EPS文件在PS中打不开 -
展看金得: 如果你的电脑里专了AI软件的话,eps格式的文件时默认从ai软件打开的,如果你希望在PS中打开的话,就要点击右键选择打开方式为PS,还有一个方法是,你可以先打开ps,然后在ps中选择打开eps的文件,再有,如果你设定好了画布尺寸,可以选择置入的方式打开EPS文件的.

代县18390021121: eps文件如何打开? -
展看金得: 1、用"Photoshop"打开 EPS文件就是包括文件头信息的PostScript 文件,利用文件头信息可使其他应用程序将此文件嵌入文档之内.EPS文件还有一些限制,而这些限制并不适用于标准的PostScript文件.这些限制主要就是一些规则,以保证EPS文件可以插入到不同的文件中,而不会损伤该文件. 2、用ILLUSTATOR、Coreldraw软件打开EPS文件,可保持原文件中的矢量信息. eps是通用交换格式,跟TIF一样,并不需要一个专门的软件来打开它,而是有多种软件支持这种格式.希望对读者有所帮助!

代县18390021121: eps怎么打开? -
展看金得: EPS文件可以用PHOTOSHOP可以打开,你还可以用PHOTOSHOP转成其它格式的. EPS 文件格式可用于像素图像、文本以及矢量图形的编码.如果EPS只用于像秦基图像(例如选择Adobe Photoshop程序作为输出),挂网信息以及色调复制...

代县18390021121: CDR转AI后为什么会出现上百个EPS文件? -
展看金得: eps格式有些可以直接在cdr X3中打开. 不过如果文件太大就不可以开了.就必须用ai打开另存为ai3.0的格式才可以,当然也可以试着另存为pdf格式的,不过如果pdf与eps样,如果cdr X3开不了eps也一样开不了pdf的.cdr X3的文件另存为cdr8.0的就可以在cdr9里面打开 完毕.

代县18390021121: 为什么我家ps打不开cad出来的eps文件?不是所指类型的文档? -
展看金得: 首先要在cad中添加一个虚拟打印机,文件-----绘图仪管理器----添加绘图仪向导-----下一步-----我的电脑---下一步----Adobe---PostScripe Level 2-----下一步-----打印到文件----自己设定一个名字---下一步----完成 然后在cad中打印时选择你设定好名字的打印机,调整好笔号的大小,然后点打印,之后就会产生一个eps文件,把这个eps文件在ps中打开,就会看到一个透明底板,上面有图案,之后就可以进行ps制作彩平了

代县18390021121: PHOTOSHOP打不开EPS文件?急 -
展看金得: 文件-打开为-在打开为那选EPS,如果还是打不开,那就是图片损坏了或你后缀名弄错了.

代县18390021121: 求助 EPS文件如何打开
展看金得: PHOTOSHOP、ILLUSTATOR、CORELDRAW软件都能打开EPS文件,用PHOTOSHOP打开后,得到的是点阵格式的图像,用后二者则可保持原文件中的矢量信息.EPS是通用交换格式,跟TIF一样,并不需要一个专门的软件来打开它,而是有多种软件支持这种格式.

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 星空见康网