gromacs xpm eps文件查看

xpm文件是矩陣格式诽表,刪除上方的注釋后起趾,可以用Irfanview打開诗舰,But沒有注釋Label,沒有xy軸label训裆,而且顏色也不好(黑白眶根,而且感覺不到80level)蜀铲,需要采用gromacs xpm2ps轉(zhuǎn)換成eps文件查看。

EPS免費(fèi)軟件:EPS Viewer

注意:xpm2ps關(guān)于設(shè)置矩陣在畫布上的位置和離畫布邊距離有bug属百,一般無法把標(biāo)題和標(biāo)注顯示全记劝,不要在參數(shù)文件調(diào),直接在別的畫圖軟件手動(dòng)拼接W迦拧厌丑!

xpm文件直接打開
eps文件,該圖是-rainbow blue(中間那條線是blue)渔呵。注意怒竿,此圖的標(biāo)題和x tick的最后一個(gè)200顯示均有問題,且無法通過調(diào)整畫布大小和矩陣離畫布邊的位置來改變扩氢,是個(gè)bug耕驰,畫圖時(shí)要注意,要手動(dòng)調(diào)整

首先录豺,需要提供一個(gè)參數(shù)文件 -di ?rmsdpara.m2p

然后 用xpm2ps命令將xpm文件轉(zhuǎn)化為eps文件

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



一個(gè)矩陣的m2p文件(rmsd.xpm):

linewidth = 6?

titlefont? ? ? ? ? ? ? ? = Arial //標(biāo)題字符類型

titlefontsize? ? ? ? ? ? = 80?//標(biāo)題字符大小

legend? ? ? ? ? ? ? ? ? = yes //顯示legend

legendfont? ? ? ? ? ? ? = Arial //legend字符類型朦肘,used 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 該值的大小影響畫布的大小巩检,得到的像素*像素的值改變厚骗,當(dāng)xbox和ybox設(shè)置的值一樣時(shí)示启,矩陣正方形兢哭,不一樣時(shí),是長方形

ybox? ? ? ? ? ? ? ? ? ? = 10

matrixspacing? ? ? ? ? ? = 20 ?//Space between 2 matrices

xoffset? ? ? ? ? ? ? ? ? = 300 ?//Between matrix and bounding box控制矩陣左邊離box邊的距離夫嗓,同時(shí)改變x size迟螺,例如本來是2600*3400,當(dāng)設(shè)置xoffset為300,則變成了2300*3400舍咖,左邊離畫布邊的留白變小300矩父,但是右邊離畫布邊沒有任何變化!真是bug排霉!但是可以通過左邊留白窍株,把標(biāo)題放左邊

yoffset? ? ? ? ? ? ? ? ? = 300 //控制矩陣下面離box邊的距離

boxlinewidth? ? ? ? ? ? = 20 //box邊框的寬度

ticklinewidth? ? ? ? ? ? = 8 //標(biāo)度tick的寬度

zerolinewidth? ? ? ? ? ? = 0?

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

x-major? ? ? ? ? ? ? ? ? = 20?//x軸大分隔符間距為20,根據(jù)自己的數(shù)值設(shè)定

x-minor? ? ? ? ? ? ? ? ? = 10 //x軸小分隔符間距為20攻柠,一般設(shè)置為major的一半

x-firstmajor? ? ? ? ? ? = 0 ?//Offset for major tick 調(diào)節(jié)第一個(gè)標(biāo)度從?開始

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

x-majorticklen? ? ? ? ? = 30 //大標(biāo)度tick的長度

x-minorticklen? ? ? ? ? = 25 //小標(biāo)度tick的長度

x-label? ? ? ? ? ? ? ? ? = Time (ns) ?//x軸標(biāo)題

x-fontsize? ? ? ? ? ? ? = 66 //x軸標(biāo)題字體大小

x-font? ? ? ? ? ? ? ? ? = Arial //x軸標(biāo)題字體類型 (Time (ns))

x-tickfontsize? ? ? ? ? = 60 //x軸標(biāo)度數(shù)字大小(0,20,40...) 我發(fā)現(xiàn)設(shè)置為60時(shí)大小剛好球订,但是!右側(cè)的最后一個(gè)數(shù)值顯示不全瑰钮,如上圖所示冒滩,200被截?cái)?了,只顯示20浪谴,怎么調(diào)畫布都不行开睡,是個(gè)bug因苹!自己畫圖時(shí)需要自己手動(dòng)補(bǔ)全

x-tickfont? ? ? ? ? ? ? = Arial ??//x軸標(biāo)度數(shù)字類型

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.對(duì)角線值默認(rèn)顯示的是左上矩陣,可以通過-diag變?yōu)橛蚁戮仃嚒?/p>

?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.) //第二個(gè)矩陣

? ? ? ? ? X PixMap compatible matrix file

-di? ? [<.m2p>]? ? ? ? ? (ps.m2p)? ? ? ? (Opt., Lib.) //參數(shù)文件

? ? ? ? ? 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.) //可以輸出一個(gè)彩色的或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) //更改標(biāo)題顯示的位置篇恒,嘗試過更改為ylabel扶檐,還是不顯示,矩陣離邊框的距離設(shè)置太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) //對(duì)角線數(shù)值默認(rèn)來自第一個(gè)

? ? ? ? ? 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) //當(dāng)xpm中有兩個(gè)矩陣的時(shí)候婚度,結(jié)合模式默認(rèn)為一半一半

? ? ? ? ? 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

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末蘸秘,一起剝皮案震驚了整個(gè)濱河市,隨后出現(xiàn)的幾起案子蝗茁,更是在濱河造成了極大的恐慌醋虏,老刑警劉巖,帶你破解...
    沈念sama閱讀 219,188評(píng)論 6 508
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件哮翘,死亡現(xiàn)場離奇詭異颈嚼,居然都是意外死亡,警方通過查閱死者的電腦和手機(jī)饭寺,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 93,464評(píng)論 3 395
  • 文/潘曉璐 我一進(jìn)店門阻课,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人艰匙,你說我怎么就攤上這事限煞。” “怎么了员凝?”我有些...
    開封第一講書人閱讀 165,562評(píng)論 0 356
  • 文/不壞的土叔 我叫張陵署驻,是天一觀的道長。 經(jīng)常有香客問我健霹,道長旺上,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 58,893評(píng)論 1 295
  • 正文 為了忘掉前任糖埋,我火速辦了婚禮宣吱,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘瞳别。我一直安慰自己征候,他們只是感情好,可當(dāng)我...
    茶點(diǎn)故事閱讀 67,917評(píng)論 6 392
  • 文/花漫 我一把揭開白布祟敛。 她就那樣靜靜地躺著疤坝,像睡著了一般。 火紅的嫁衣襯著肌膚如雪垒棋。 梳的紋絲不亂的頭發(fā)上卒煞,一...
    開封第一講書人閱讀 51,708評(píng)論 1 305
  • 那天,我揣著相機(jī)與錄音叼架,去河邊找鬼畔裕。 笑死衣撬,一個(gè)胖子當(dāng)著我的面吹牛,可吹牛的內(nèi)容都是我干的扮饶。 我是一名探鬼主播具练,決...
    沈念sama閱讀 40,430評(píng)論 3 420
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢(mèng)啊……” “哼甜无!你這毒婦竟也來了扛点?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,342評(píng)論 0 276
  • 序言:老撾萬榮一對(duì)情侶失蹤岂丘,失蹤者是張志新(化名)和其女友劉穎陵究,沒想到半個(gè)月后,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體奥帘,經(jīng)...
    沈念sama閱讀 45,801評(píng)論 1 317
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡铜邮,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 37,976評(píng)論 3 337
  • 正文 我和宋清朗相戀三年,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了寨蹋。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片松蒜。...
    茶點(diǎn)故事閱讀 40,115評(píng)論 1 351
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖已旧,靈堂內(nèi)的尸體忽然破棺而出秸苗,到底是詐尸還是另有隱情,我是刑警寧澤运褪,帶...
    沈念sama閱讀 35,804評(píng)論 5 346
  • 正文 年R本政府宣布惊楼,位于F島的核電站,受9級(jí)特大地震影響吐句,放射性物質(zhì)發(fā)生泄漏胁后。R本人自食惡果不足惜店读,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 41,458評(píng)論 3 331
  • 文/蒙蒙 一嗦枢、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧屯断,春花似錦文虏、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,008評(píng)論 0 22
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至趴久,卻和暖如春丸相,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背彼棍。 一陣腳步聲響...
    開封第一講書人閱讀 33,135評(píng)論 1 272
  • 我被黑心中介騙來泰國打工灭忠, 沒想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留膳算,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 48,365評(píng)論 3 373
  • 正文 我出身青樓弛作,卻偏偏與公主長得像涕蜂,于是被迫代替她去往敵國和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子映琳,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,055評(píng)論 2 355

推薦閱讀更多精彩內(nèi)容