Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Warning: 'gnuplot' returned 256

162 views
Skip to first unread message

Rana Rehan Khalid

unread,
Dec 20, 2017, 10:45:38 AM12/20/17
to
ERROR message show when i tried to open .gnu file. I also copy the .gnu script lines kindly guide what is going wrong. Thanks

>gnuplot ss.gnu

set cbtics 0.000 7.000 1.0
^
"ss.gnu", line 10: increment must be positive

Warning: 'gnuplot' returned 256

script is here

set terminal jpeg size 1024,768
set output "ss.gnu.jpg"
set pm3d map corners2color c1
set ytics 1.000, 1.000
set ytics("MET:1" 1.000,"TYR:2

set cbrange [ -0.500: 7.500]
set cbtics 0.000 7.000 1.0
set palette maxcolors 8
set palette defined (0 "#000000",1 "#0000FF",4 "#00FF00",7 "#FF0000")
set cbtics("None" 0.000,"Para" 1.000,"Anti" 2.000,"3-10" 3.000,"Alpha" 4.000,"Pi" 5.000,"Turn" 6.000,"Bend" 7.000)
set xlabel "Frame"
set ylabel ""
set yrange [ 0.000: 191.000]
set xrange [ 0.000:84002.000]
splot "-" with pm3d title "ss.gnu"
1.000 1.000 0
1.000 2.000 2

Karl Ratzsch

unread,
Dec 20, 2017, 1:40:22 PM12/20/17
to
Am 20.12.2017 um 16:45 schrieb Rana Rehan Khalid:
> ERROR message show when i tried to open .gnu file. I also copy the .gnu script lines kindly guide what is going wrong. Thanks

That scripts seems to be corrupted. Following lines make little sense:

> set ytics 1.000, 1.000
Why set ytics, when you change them again in the next line?

> set ytics("MET:1" 1.000,"TYR:2
Where is the closing bracket? I guess there is half a line missing.

> set cbtics 0.000 7.000 1.0

Interval zero makes no sense, although you can give any amount of
numbers here, the one actually used is the last one. That's a small
parser bug imo. You should give only one number here, and it must be
>0. (See "help xtics")

Also you have a second line with "set cbtics" further down, so you
can just delete this one.

You only give two lines of data, that's not enough to actually plot
anything.

Karl

Rana Rehan Khalid

unread,
Dec 20, 2017, 5:29:27 PM12/20/17
to
Here is the complete script

set terminal jpeg size 1024,768
set output "dssp.gnu.jpg"
set pm3d map corners2color c1
set ytics 1.000, 1.000
set ytics("ASN:100" 1.000,"LEU:101" 2.000,"ASP:102" 3.000,"ALA:103" 4.000,"LEU:104" 5.000,"HD1:105" 6.000,"ASP:106" 7.000,"HIP:107" 8.000,"LEU:108" 9.000,"ALA:109" 10.000,"THR:110" 11.000,"ILE:111" 12.000,"TYR:112" 13.000,"PRO:113" 14.000,"GLY:114" 15.000,"MET:115" 16.000,"ARG:116" 17.000,"ALA:117" 18.000,"PRO:118" 19.000,"SER:119" 20.000,"PHE:120" 21.000,"ARG:121" 22.000,"CYS:122" 23.000,"THR:123" 24.000,"ASP:124" 25.000,"ALA:125" 26.000,"GLU:126" 27.000,"LYS:127" 28.000,"GLY:128" 29.000,"LYS:129" 30.000,"GLY:130" 31.000,"LEU:131" 32.000,"ILE:132" 33.000,"LEU:133" 34.000,"HIE:134" 35.000,"TYR:135" 36.000)
set cbrange [ -0.500: 7.500]
set cbtics 0.000 7.000 1.0
set palette maxcolors 8
set palette defined (0 "#000000",1 "#0000FF",4 "#00FF00",7 "#FF0000")
set cbtics("None" 0.000,"Para" 1.000,"Anti" 2.000,"3-10" 3.000,"Alpha" 4.000,"Pi" 5.000,"Turn" 6.000,"Bend" 7.000)
set xlabel "Frame"
set ylabel ""
set yrange [ 0.000: 38.000]
set xrange [ 0.000:7002.000]
splot "-" with pm3d title "dssp.gnu"
1.000 1.000 0
1.000 2.000 4
1.000 3.000 4
1.000 4.000 4
1.000 5.000 4
1.000 6.000 4
1.000 7.000 4
1.000 8.000 4
and so on ....
file is large
this script is produced by CPPTRAJ tool.

Rana Rehan Khalid

unread,
Dec 20, 2017, 5:35:19 PM12/20/17
to
Thank you so much. It works for me.
Best regards.

myriam...@gmail.com

unread,
Mar 12, 2019, 10:06:23 AM3/12/19
to
Hello Rana, I have exactly the same problem, how did you manage to make it work?
0 new messages