Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hai..

i need to use this command in GNUPLOT

set title "something"

but this "something" will load from a file like data.dat

any one help me to resolve it

regads
Posted
Comments
Sergey Alexandrovich Kryukov 25-Feb-14 12:28pm    
"GNU"..? Well, please: language, platform? What's the problem? Not how to read your own file, I hope?... :-)
—SA

1 solution

you can use gnuplot script file. example:

1- edit set_title.plot with notepad:
notepad <path>\set_title.plot
set title 'my_title'

2- in gnuplot:
>load '<path>\set_title.plot'
 
Share this answer
 
v2
Comments
aboutjayesh 25-Feb-14 22:06pm    
Thankns Vedat Ozan Oner..but i have something more to tel you..now i need to load like this

1:first file have string like "part1"
2:second file have string like "part2"
3: now from gnu plot i need to set title like "part1 part2"

Can you solve it ? i am a new user in GNUPLOT

Thank you
Vedat Ozan Oner 26-Feb-14 1:30am    
I don't know if a direct way exists for what you want (maybe shell escape??). But actually, it can be done via os shell scripting. for example using bash:
assume that file.1 contains 'part1', file.2 contains 'part2', then:
$ echo set title \'$(cat file.1) $(cat file.2)\' > 1.plot
prepares your gnuplot script.
You can search it as 'gnuplot shell escape' as a starting point.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900