Redian新闻
>
how to plot the matrix in GNUplot?
avatar
how to plot the matrix in GNUplot?# Computation - 科学计算
s*y
1
thanks.I have matrix file, and I need to plot it by GNUplot, who knows how to
do it ? thanks lot.
avatar
t*t
2
If you already have grid data, just splot them.
If not, you need to set dgrid3d first.
If your file is in matrix format already.
splot "data-file" matrix
command you may need to check in gnuplot mannual.
1. splot (pay attention to the interpretation of data-file)
2. set dgrid3d
3. set surface
4. set pm3d
5. set contour

【在 s*****y 的大作中提到】
: thanks.I have matrix file, and I need to plot it by GNUplot, who knows how to
: do it ? thanks lot.

avatar
s*y
3
thanks so much,tlenet.
I want to plot a 2D graph,in my matrix file, all elements are 0 or 1, so I
need to plot all 1s,and discard all 0s, how do I do? like sequence match,if
two sequence are match, then plot a dot , if not match, then ignore.
thanks .

to

【在 t****t 的大作中提到】
: If you already have grid data, just splot them.
: If not, you need to set dgrid3d first.
: If your file is in matrix format already.
: splot "data-file" matrix
: command you may need to check in gnuplot mannual.
: 1. splot (pay attention to the interpretation of data-file)
: 2. set dgrid3d
: 3. set surface
: 4. set pm3d
: 5. set contour

avatar
t*t
4
then just plot the pairs with value 1, dicarding those with 0.
Don't use matrix, just use a regular data file with three columns.
set view 0,0
splot "file" using 1:2:3

【在 s*****y 的大作中提到】
: thanks so much,tlenet.
: I want to plot a 2D graph,in my matrix file, all elements are 0 or 1, so I
: need to plot all 1s,and discard all 0s, how do I do? like sequence match,if
: two sequence are match, then plot a dot , if not match, then ignore.
: thanks .
:
: to

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。