Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4082 > unrolled thread
| Started by | srishtinagu19@gmail.com |
|---|---|
| First post | 2018-11-20 23:22 -0800 |
| Last post | 2018-11-25 08:52 -0800 |
| Articles | 14 — 2 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-20 23:22 -0800
Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-21 11:53 +0100
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 03:40 -0800
Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-21 14:23 +0100
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 06:03 -0800
Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-21 19:19 +0100
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 22:00 -0800
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-21 22:12 -0800
Re: Can I use the same gnuplot script file to plot different data files? Jörg Buchholz <bookwood4new@freenet.de> - 2018-11-22 11:16 +0100
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-22 02:28 -0800
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-22 02:44 -0800
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-23 01:34 -0800
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-24 22:47 -0800
Re: Can I use the same gnuplot script file to plot different data files? srishtinagu19@gmail.com - 2018-11-25 08:52 -0800
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-20 23:22 -0800 |
| Subject | Re: Can I use the same gnuplot script file to plot different data files? |
| Message-ID | <ec6e2983-99a2-4a40-9a1f-51b8760c8fc9@googlegroups.com> |
On Wednesday, August 10, 2005 at 9:13:36 PM UTC+5:30, Peng Yu wrote: > Hi, > > Suppose I have a few data files with the same format to plot, I have > the following script. But I have to change the last line for each data > file. Is there any way such that I can specify the file name as an > argument to gnuplot when I envoke this script file? > > Best wishes, > Peng > > set term postscript landscape enhanced color solid > set output "heat_map.eps" > set xlabel "X(um)" > set ylabel "Y(um)" > set view map > unset surface > set size ratio -1 > set pm3d > set palette mode RGB > set xtics rotate > set title "Error Map" > splot "heat_map.dat" using (-10+$1*5):(-10+$2*5):3 Hello , I just saw this topic, I am making a gnuplot script and want to know- How do we invoke the gnuplot script ? I am working with the following script below.. Do we have to keep a filename extension for using the script ? "" set terminal pdf set output "myplot.pdf" set contour set view map unset surface set cntrparam levels discrete 2.3,6.2,11.8 splot [0:360][0:0.9] "test1.dat" with lines "" Thank you.
[toc] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2018-11-21 11:53 +0100 |
| Message-ID | <pt3deq$ri3$1@dont-email.me> |
| In reply to | #4082 |
On 21.11.2018 08:22, srishtinagu19@gmail.com wrote: > On Wednesday, August 10, 2005 at 9:13:36 PM UTC+5:30, Peng Yu wrote: > > Hello , > I just saw this topic, I am making a gnuplot script and want to know- > How do we invoke the gnuplot script ? load 'scriptname' from inside gnuplot, or 'gnuplot sriptname' from a terminal/shell. > I am working with the following script below.. > Do we have to keep a filename extension for using the script ? No, Jörg
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-21 03:40 -0800 |
| Message-ID | <8392b610-487d-4688-ab1c-0cc15de51cc5@googlegroups.com> |
| In reply to | #4082 |
On Wednesday, November 21, 2018 at 12:52:47 PM UTC+5:30, srisht...@gmail.com wrote: > On Wednesday, August 10, 2005 at 9:13:36 PM UTC+5:30, Peng Yu wrote: > > Hi, > > > > Suppose I have a few data files with the same format to plot, I have > > the following script. But I have to change the last line for each data > > file. Is there any way such that I can specify the file name as an > > argument to gnuplot when I envoke this script file? > > > > Best wishes, > > Peng > > > > set term postscript landscape enhanced color solid > > set output "heat_map.eps" > > set xlabel "X(um)" > > set ylabel "Y(um)" > > set view map > > unset surface > > set size ratio -1 > > set pm3d > > set palette mode RGB > > set xtics rotate > > set title "Error Map" > > splot "heat_map.dat" using (-10+$1*5):(-10+$2*5):3 > > > Hello , > I just saw this topic, I am making a gnuplot script and want to know- > How do we invoke the gnuplot script ? > I am working with the following script below.. > Do we have to keep a filename extension for using the script ? > "" > set terminal pdf > set output "myplot.pdf" > set contour > set view map > unset surface > set cntrparam levels discrete 2.3,6.2,11.8 > splot [0:360][0:0.9] "test1.dat" with lines > "" > > Thank you. I am using : $gnuplot scriptname from terminal shell and also $load scriptname but it is not working either of the ways.. What should I do ?
[toc] | [prev] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2018-11-21 14:23 +0100 |
| Message-ID | <pt3m8a$hk8$1@dont-email.me> |
| In reply to | #4085 |
On 21.11.2018 12:40, srishtinagu19@gmail.com wrote:
> On Wednesday, November 21, 2018 at 12:52:47 PM UTC+5:30, srisht...@gmail.com wrote:
>> On Wednesday, August 10, 2005 at 9:13:36 PM UTC+5:30, Peng Yu wrote:
>>> Hi,
>>>
>>> Suppose I have a few data files with the same format to plot, I have
>>> the following script. But I have to change the last line for each data
>>> file. Is there any way such that I can specify the file name as an
>>> argument to gnuplot when I envoke this script file?
>>>
>>> Best wishes,
>>> Peng
>>>
>>> set term postscript landscape enhanced color solid
>>> set output "heat_map.eps"
>>> set xlabel "X(um)"
>>> set ylabel "Y(um)"
>>> set view map
>>> unset surface
>>> set size ratio -1
>>> set pm3d
>>> set palette mode RGB
>>> set xtics rotate
>>> set title "Error Map"
>>> splot "heat_map.dat" using (-10+$1*5):(-10+$2*5):3
>>
>>
>> Hello ,
>> I just saw this topic, I am making a gnuplot script and want to know-
>> How do we invoke the gnuplot script ?
>> I am working with the following script below..
>> Do we have to keep a filename extension for using the script ?
>> ""
>> set terminal pdf
>> set output "myplot.pdf"
>> set contour
>> set view map
>> unset surface
>> set cntrparam levels discrete 2.3,6.2,11.8
>> splot [0:360][0:0.9] "test1.dat" with lines
>> ""
>>
>> Thank you.
>
> I am using : $gnuplot scriptname from terminal shell and also $load scriptname
> but it is not working either of the ways.. What should I do ?
If there is a error in your script and you use "gnuplot scriptname" from
the shell then you see often nothing.
From inside gnuplot, have first open gnuplot, you must use the following:
gnuplot> load 'scriptname'
There must be some quotes at the scriptname (' or ").
If there is an error in your script, or gnuplot can't find your script,
you get an error message. See "gnuplot> help load"
Jörg
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-21 06:03 -0800 |
| Message-ID | <738fc952-1faa-4c4a-a51a-7bda36f485d6@googlegroups.com> |
| In reply to | #4086 |
On Wednesday, November 21, 2018 at 6:53:23 PM UTC+5:30, Jörg Buchholz wrote:
> On 21.11.2018 12:40, srishtinagu19@gmail.com wrote:
> > On Wednesday, November 21, 2018 at 12:52:47 PM UTC+5:30, srisht...@gmail.com wrote:
> >> On Wednesday, August 10, 2005 at 9:13:36 PM UTC+5:30, Peng Yu wrote:
> >>> Hi,
> >>>
> >>> Suppose I have a few data files with the same format to plot, I have
> >>> the following script. But I have to change the last line for each data
> >>> file. Is there any way such that I can specify the file name as an
> >>> argument to gnuplot when I envoke this script file?
> >>>
> >>> Best wishes,
> >>> Peng
> >>>
> >>> set term postscript landscape enhanced color solid
> >>> set output "heat_map.eps"
> >>> set xlabel "X(um)"
> >>> set ylabel "Y(um)"
> >>> set view map
> >>> unset surface
> >>> set size ratio -1
> >>> set pm3d
> >>> set palette mode RGB
> >>> set xtics rotate
> >>> set title "Error Map"
> >>> splot "heat_map.dat" using (-10+$1*5):(-10+$2*5):3
> >>
> >>
> >> Hello ,
> >> I just saw this topic, I am making a gnuplot script and want to know-
> >> How do we invoke the gnuplot script ?
> >> I am working with the following script below..
> >> Do we have to keep a filename extension for using the script ?
> >> ""
> >> set terminal pdf
> >> set output "myplot.pdf"
> >> set contour
> >> set view map
> >> unset surface
> >> set cntrparam levels discrete 2.3,6.2,11.8
> >> splot [0:360][0:0.9] "test1.dat" with lines
> >> ""
> >>
> >> Thank you.
> >
> > I am using : $gnuplot scriptname from terminal shell and also $load scriptname
> > but it is not working either of the ways.. What should I do ?
>
> If there is a error in your script and you use "gnuplot scriptname" from
> the shell then you see often nothing.
>
> From inside gnuplot, have first open gnuplot, you must use the following:
>
> gnuplot> load 'scriptname'
>
> There must be some quotes at the scriptname (' or ").
>
> If there is an error in your script, or gnuplot can't find your script,
> you get an error message. See "gnuplot> help load"
>
> Jörg
Thanks a lot.. Its working with :gnuplot> load 'scriptname'
I am writing greek letters but its not printing that letter.
For that I am using-
gnuplot>set termoption enhanced
gnuplot> set xlabel "{/Symbol d}" (I want to print delta)
its giving me /Symbol d... What should I do ?
[toc] | [prev] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2018-11-21 19:19 +0100 |
| Message-ID | <pt47j2$3bf$1@dont-email.me> |
| In reply to | #4087 |
On 21/11/2018 15:03, srishtinagu19@gmail.com wrote:
> Thanks a lot.. Its working with :gnuplot> load 'scriptname'
> I am writing greek letters but its not printing that letter.
> For that I am using-
> gnuplot>set termoption enhanced
> gnuplot> set xlabel "{/Symbol d}" (I want to print delta)
>
> its giving me /Symbol d... What should I do ?
What "pdf-termianl" do you use? What says "gnuplot> show term"?
Here with pdfcairo as "pdf-termianl" there is a Δ in the pdf output file
when I use gnuplot> set xlabel "{/Symbol D}".
Instead of "/Symbol D" you can wrote your script in unicode (UTF8). Than
you can use all unicode signs directly in gnuplot.
Example script (utf8test.plt):
set encoding utf8
set xlabel 'Δ Delta'
set term pdfcairo
set out 'test.pdf'
plot sin(x)
set out
gnuplot> load 'utf8test.plt'
Now there is "Δ Delta" as xlabel in the pdf file
Jörg
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-21 22:00 -0800 |
| Message-ID | <2d568b4a-d353-42e8-a3c4-b4eb6b73f8f1@googlegroups.com> |
| In reply to | #4088 |
On Wednesday, November 21, 2018 at 11:49:15 PM UTC+5:30, Jörg Buchholz wrote:
> On 21/11/2018 15:03, srishtinagu19@gmail.com wrote:
>
> > Thanks a lot.. Its working with :gnuplot> load 'scriptname'
> > I am writing greek letters but its not printing that letter.
> > For that I am using-
> > gnuplot>set termoption enhanced
> > gnuplot> set xlabel "{/Symbol d}" (I want to print delta)
> >
> > its giving me /Symbol d... What should I do ?
>
> What "pdf-termianl" do you use? What says "gnuplot> show term"?
>
> Here with pdfcairo as "pdf-termianl" there is a Δ in the pdf output file
> when I use gnuplot> set xlabel "{/Symbol D}".
>
> Instead of "/Symbol D" you can wrote your script in unicode (UTF8). Than
> you can use all unicode signs directly in gnuplot.
>
> Example script (utf8test.plt):
>
> set encoding utf8
> set xlabel 'Δ Delta'
> set term pdfcairo
> set out 'test.pdf'
> plot sin(x)
> set out
>
>
> gnuplot> load 'utf8test.plt'
>
> Now there is "Δ Delta" as xlabel in the pdf file
>
> Jörg
Hi,
My gnuplot version is-
G N U P L O T
Version 4.6 patchlevel 2 last modified 2013-03-14
Build System: Linux x86_64
I am using the following script-
""
# set terminal pdf
# set output "myplot.pdf"
# set encoding utf8
# set term pdfcairo
set contour
set view map
unset surface
set xlabel '{/Symbol a}'
set cntrparam levels discrete 2.3,6.2,11.8
splot [0:360][0:0.9] "test1.dat" with lines
""
it is simply printing- {/Symbol a}
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-21 22:12 -0800 |
| Message-ID | <2403805d-ccaa-4116-b167-e332a3713894@googlegroups.com> |
| In reply to | #4089 |
On Thursday, November 22, 2018 at 11:30:33 AM UTC+5:30, srisht...@gmail.com wrote:
> On Wednesday, November 21, 2018 at 11:49:15 PM UTC+5:30, Jörg Buchholz wrote:
> > On 21/11/2018 15:03, srishtinagu19@gmail.com wrote:
> >
> > > Thanks a lot.. Its working with :gnuplot> load 'scriptname'
> > > I am writing greek letters but its not printing that letter.
> > > For that I am using-
> > > gnuplot>set termoption enhanced
> > > gnuplot> set xlabel "{/Symbol d}" (I want to print delta)
> > >
> > > its giving me /Symbol d... What should I do ?
> >
> > What "pdf-termianl" do you use? What says "gnuplot> show term"?
> >
> > Here with pdfcairo as "pdf-termianl" there is a Δ in the pdf output file
> > when I use gnuplot> set xlabel "{/Symbol D}".
> >
> > Instead of "/Symbol D" you can wrote your script in unicode (UTF8). Than
> > you can use all unicode signs directly in gnuplot.
> >
> > Example script (utf8test.plt):
> >
> > set encoding utf8
> > set xlabel 'Δ Delta'
> > set term pdfcairo
> > set out 'test.pdf'
> > plot sin(x)
> > set out
> >
> >
> > gnuplot> load 'utf8test.plt'
> >
> > Now there is "Δ Delta" as xlabel in the pdf file
> >
> > Jörg
>
>
> Hi,
> My gnuplot version is-
>
> G N U P L O T
> Version 4.6 patchlevel 2 last modified 2013-03-14
> Build System: Linux x86_64
>
> I am using the following script-
> ""
> # set terminal pdf
> # set output "myplot.pdf"
> # set encoding utf8
> # set term pdfcairo
> set contour
> set view map
> unset surface
> set xlabel '{/Symbol a}'
> set cntrparam levels discrete 2.3,6.2,11.8
> splot [0:360][0:0.9] "test1.dat" with lines
> ""
>
> it is simply printing- {/Symbol a}
There is one more issue in my script, it is working very well.. but it is not saving the plot automatically...
If I am running the script its showing me the plot but it is not saving it by itself-
My script is as below- Please help...
# set terminal pdf
# set output "myplot1.pdf"
set contour
set view map
unset surface
set xlabel "{/Symbol D}"
set ylabel "sin^{2} Theta23"
set label 1"" at 270,0.62 point pt 1 ps 2
set cntrparam levels discrete 2.3,6.2,11.8
splot [0:360][0:0.9] "test1.dat" with lines
Also not printing the symbols....
Thank you...
[toc] | [prev] | [next] | [standalone]
| From | Jörg Buchholz <bookwood4new@freenet.de> |
|---|---|
| Date | 2018-11-22 11:16 +0100 |
| Message-ID | <pt5vmf$7j7$1@dont-email.me> |
| In reply to | #4090 |
On 22.11.2018 07:12, srishtinagu19@gmail.com wrote:
> On Thursday, November 22, 2018 at 11:30:33 AM UTC+5:30, srisht...@gmail.com wrote:
>> On Wednesday, November 21, 2018 at 11:49:15 PM UTC+5:30, Jörg Buchholz wrote:
>>> On 21/11/2018 15:03, srishtinagu19@gmail.com wrote:
>>>
>>>> Thanks a lot.. Its working with :gnuplot> load 'scriptname'
>>>> I am writing greek letters but its not printing that letter.
>>>> For that I am using-
>>>> gnuplot>set termoption enhanced
>>>> gnuplot> set xlabel "{/Symbol d}" (I want to print delta)
>>>>
>>>> its giving me /Symbol d... What should I do ?
>>>
>>> What "pdf-termianl" do you use? What says "gnuplot> show term"?
>>>
>>> Here with pdfcairo as "pdf-termianl" there is a Δ in the pdf output file
>>> when I use gnuplot> set xlabel "{/Symbol D}".
>>>
>>> Instead of "/Symbol D" you can wrote your script in unicode (UTF8). Than
>>> you can use all unicode signs directly in gnuplot.
>>>
>>> Example script (utf8test.plt):
>>>
>>> set encoding utf8
>>> set xlabel 'Δ Delta'
>>> set term pdfcairo
>>> set out 'test.pdf'
>>> plot sin(x)
>>> set out
>>>
>>>
>>> gnuplot> load 'utf8test.plt'
>>>
>>> Now there is "Δ Delta" as xlabel in the pdf file
>>>
>>> Jörg
>>
>>
>> Hi,
>> My gnuplot version is-
>>
>> G N U P L O T
>> Version 4.6 patchlevel 2 last modified 2013-03-14
>> Build System: Linux x86_64
>>
>> I am using the following script-
>> ""
>> # set terminal pdf
>> # set output "myplot.pdf"
>> # set encoding utf8
>> # set term pdfcairo
>> set contour
>> set view map
>> unset surface
>> set xlabel '{/Symbol a}'
>> set cntrparam levels discrete 2.3,6.2,11.8
>> splot [0:360][0:0.9] "test1.dat" with lines
>> ""
>>
>> it is simply printing- {/Symbol a}
>
>
> There is one more issue in my script, it is working very well.. but it is not saving the plot automatically...
> If I am running the script its showing me the plot but it is not saving it by itself-
> My script is as below- Please help...
> # set terminal pdf
> # set output "myplot1.pdf"
remove the two "#"
> set contour
> set view map
> unset surface
> set xlabel "{/Symbol D}"
> set ylabel "sin^{2} Theta23"
> set label 1"" at 270,0.62 point pt 1 ps 2
> set cntrparam levels discrete 2.3,6.2,11.8
> splot [0:360][0:0.9] "test1.dat" with lines
add "set out"
> Also not printing the symbols....
Version 4.6 is very old. 5.2 is up-to-date.
For plotting symbols your terminal must support the enhanced mode. In
early times there are two different pdf terminals in gnuplot. I'am not
sure if the older pdf terminal supports the enhanced mode.
What shows "gnuplot> show term".
With "gnuplot> help term pdf" you can see what your terminal can do.
Please use pdfcairo enhanced.
gnuplot> set term pdfcairo noenhanced
The pdf-file was generated after a "gnuplot> set out" after the plot
command.
Jörg
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-22 02:28 -0800 |
| Message-ID | <38785980-d708-4892-bd2b-6ee147b4bebb@googlegroups.com> |
| In reply to | #4092 |
On Thursday, November 22, 2018 at 3:46:48 PM UTC+5:30, Jörg Buchholz wrote:
> On 22.11.2018 07:12, srishtinagu19@gmail.com wrote:
> > On Thursday, November 22, 2018 at 11:30:33 AM UTC+5:30, srisht...@gmail.com wrote:
> >> On Wednesday, November 21, 2018 at 11:49:15 PM UTC+5:30, Jörg Buchholz wrote:
> >>> On 21/11/2018 15:03, srishtinagu19@gmail.com wrote:
> >>>
> >>>> Thanks a lot.. Its working with :gnuplot> load 'scriptname'
> >>>> I am writing greek letters but its not printing that letter.
> >>>> For that I am using-
> >>>> gnuplot>set termoption enhanced
> >>>> gnuplot> set xlabel "{/Symbol d}" (I want to print delta)
> >>>>
> >>>> its giving me /Symbol d... What should I do ?
> >>>
> >>> What "pdf-termianl" do you use? What says "gnuplot> show term"?
> >>>
> >>> Here with pdfcairo as "pdf-termianl" there is a Δ in the pdf output file
> >>> when I use gnuplot> set xlabel "{/Symbol D}".
> >>>
> >>> Instead of "/Symbol D" you can wrote your script in unicode (UTF8). Than
> >>> you can use all unicode signs directly in gnuplot.
> >>>
> >>> Example script (utf8test.plt):
> >>>
> >>> set encoding utf8
> >>> set xlabel 'Δ Delta'
> >>> set term pdfcairo
> >>> set out 'test.pdf'
> >>> plot sin(x)
> >>> set out
> >>>
> >>>
> >>> gnuplot> load 'utf8test.plt'
> >>>
> >>> Now there is "Δ Delta" as xlabel in the pdf file
> >>>
> >>> Jörg
> >>
> >>
> >> Hi,
> >> My gnuplot version is-
> >>
> >> G N U P L O T
> >> Version 4.6 patchlevel 2 last modified 2013-03-14
> >> Build System: Linux x86_64
> >>
> >> I am using the following script-
> >> ""
> >> # set terminal pdf
> >> # set output "myplot.pdf"
> >> # set encoding utf8
> >> # set term pdfcairo
> >> set contour
> >> set view map
> >> unset surface
> >> set xlabel '{/Symbol a}'
> >> set cntrparam levels discrete 2.3,6.2,11.8
> >> splot [0:360][0:0.9] "test1.dat" with lines
> >> ""
> >>
> >> it is simply printing- {/Symbol a}
> >
> >
> > There is one more issue in my script, it is working very well.. but it is not saving the plot automatically...
> > If I am running the script its showing me the plot but it is not saving it by itself-
> > My script is as below- Please help...
> > # set terminal pdf
> > # set output "myplot1.pdf"
>
> remove the two "#"
>
> > set contour
> > set view map
> > unset surface
> > set xlabel "{/Symbol D}"
> > set ylabel "sin^{2} Theta23"
> > set label 1"" at 270,0.62 point pt 1 ps 2
> > set cntrparam levels discrete 2.3,6.2,11.8
> > splot [0:360][0:0.9] "test1.dat" with lines
>
> add "set out"
It is printing now.... Thanks a lot
>
>
> > Also not printing the symbols....
>
> Version 4.6 is very old. 5.2 is up-to-date.
>
> For plotting symbols your terminal must support the enhanced mode. In
> early times there are two different pdf terminals in gnuplot. I'am not
> sure if the older pdf terminal supports the enhanced mode.
>
> What shows "gnuplot> show term".
>
> With "gnuplot> help term pdf" you can see what your terminal can do.
>
> Please use pdfcairo enhanced.
> gnuplot> set term pdfcairo noenhanced
>
> The pdf-file was generated after a "gnuplot> set out" after the plot
> command.
>
> Jörg
This is my pdf terminal specifications... What should i use to print the x and y labels in greek symbols and super/sub script symbols..
I tried - gnuplot> set term pdfcairo noenhanced but didnt work
gnuplot> help term pdf
The `pdfcairo` terminal device generates output in pdf. The actual
drawing is done via cairo, a 2D graphics library, and pango, a library for
laying out and rendering text.
Syntax:
set term pdfcairo
{{no}enhanced} {mono|color} {solid|dashed}
{font <font>} {fontscale <scale>}
{linewidth <lw>} {rounded|butt} {dashlength <dl>}
{size <XX>{unit},<YY>{unit}}
This terminal supports an enhanced text mode, which allows font and other
formatting commands (subscripts, superscripts, etc.) to be embedded in labels
and other text strings. The enhanced text mode syntax is shared with other
gnuplot terminal types. See `enhanced` for more details.
The width of all lines in the plot can be modified by the factor <lw>
specified in `linewidth`. The default linewidth is 0.25 points.
(1 "PostScript" point = 1/72 inch = 0.353 mm)
`rounded` sets line caps and line joins to be rounded; `butt` is the
default, butt caps and mitered joins.
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-22 02:44 -0800 |
| Message-ID | <6ef0919d-05be-4c69-b061-22abf4a80043@googlegroups.com> |
| In reply to | #4092 |
On Thursday, November 22, 2018 at 3:46:48 PM UTC+5:30, Jörg Buchholz wrote:
> On 22.11.2018 07:12, srishtinagu19@gmail.com wrote:
> > On Thursday, November 22, 2018 at 11:30:33 AM UTC+5:30, srisht...@gmail.com wrote:
> >> On Wednesday, November 21, 2018 at 11:49:15 PM UTC+5:30, Jörg Buchholz wrote:
> >>> On 21/11/2018 15:03, srishtinagu19@gmail.com wrote:
> >>>
> >>>> Thanks a lot.. Its working with :gnuplot> load 'scriptname'
> >>>> I am writing greek letters but its not printing that letter.
> >>>> For that I am using-
> >>>> gnuplot>set termoption enhanced
> >>>> gnuplot> set xlabel "{/Symbol d}" (I want to print delta)
> >>>>
> >>>> its giving me /Symbol d... What should I do ?
> >>>
> >>> What "pdf-termianl" do you use? What says "gnuplot> show term"?
> >>>
> >>> Here with pdfcairo as "pdf-termianl" there is a Δ in the pdf output file
> >>> when I use gnuplot> set xlabel "{/Symbol D}".
> >>>
> >>> Instead of "/Symbol D" you can wrote your script in unicode (UTF8). Than
> >>> you can use all unicode signs directly in gnuplot.
> >>>
> >>> Example script (utf8test.plt):
> >>>
> >>> set encoding utf8
> >>> set xlabel 'Δ Delta'
> >>> set term pdfcairo
> >>> set out 'test.pdf'
> >>> plot sin(x)
> >>> set out
> >>>
> >>>
> >>> gnuplot> load 'utf8test.plt'
> >>>
> >>> Now there is "Δ Delta" as xlabel in the pdf file
> >>>
> >>> Jörg
> >>
> >>
> >> Hi,
> >> My gnuplot version is-
> >>
> >> G N U P L O T
> >> Version 4.6 patchlevel 2 last modified 2013-03-14
> >> Build System: Linux x86_64
> >>
> >> I am using the following script-
> >> ""
> >> # set terminal pdf
> >> # set output "myplot.pdf"
> >> # set encoding utf8
> >> # set term pdfcairo
> >> set contour
> >> set view map
> >> unset surface
> >> set xlabel '{/Symbol a}'
> >> set cntrparam levels discrete 2.3,6.2,11.8
> >> splot [0:360][0:0.9] "test1.dat" with lines
> >> ""
> >>
> >> it is simply printing- {/Symbol a}
> >
> >
> > There is one more issue in my script, it is working very well.. but it is not saving the plot automatically...
> > If I am running the script its showing me the plot but it is not saving it by itself-
> > My script is as below- Please help...
> > # set terminal pdf
> > # set output "myplot1.pdf"
>
> remove the two "#"
>
> > set contour
> > set view map
> > unset surface
> > set xlabel "{/Symbol D}"
> > set ylabel "sin^{2} Theta23"
> > set label 1"" at 270,0.62 point pt 1 ps 2
> > set cntrparam levels discrete 2.3,6.2,11.8
> > splot [0:360][0:0.9] "test1.dat" with lines
>
> add "set out"
>
>
> > Also not printing the symbols....
>
> Version 4.6 is very old. 5.2 is up-to-date.
>
> For plotting symbols your terminal must support the enhanced mode. In
> early times there are two different pdf terminals in gnuplot. I'am not
> sure if the older pdf terminal supports the enhanced mode.
>
> What shows "gnuplot> show term".
>
> With "gnuplot> help term pdf" you can see what your terminal can do.
>
> Please use pdfcairo enhanced.
> gnuplot> set term pdfcairo noenhanced
>
> The pdf-file was generated after a "gnuplot> set out" after the plot
> command.
>
> Jörg
Hi...
Its working now... with- set term pdfcairo enhanced
Thank you...
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-23 01:34 -0800 |
| Message-ID | <7a561c4f-585c-4949-b574-54332db6a07b@googlegroups.com> |
| In reply to | #4092 |
Hi,
I am trying to set different labels in the key of my contour plot by gnuplot.
How to get different labels at my defined values int key.
Also I want to increase the line width of the key box...
Please tell how to do..
I am posting my script below-
""
set terminal pdf
set output "myplot1.pdf"
set term pdfcairo enhanced
set contour
set view map
unset surface
set xlabel '{/Symbol d}_{CP}'
set ylabel 'sin^{2}{/Symbol Q}_{23}'
set xtics
set border lw 4
set label 1"" at 270,0.62 point pt 7 ps 0.5
set key inside left bottom Left title 'Confidence Levels' noautotitles width 0.50 height 0.75 box 7
set clabel '3 sigma'
set clabel '2 sigma'
set cntrparam levels discrete 2.3,6.2,11.8
splot [0:360][0:0.9] "test1.dat" with lines
set out
""
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-24 22:47 -0800 |
| Message-ID | <024d107d-d875-4543-ac30-d12ddfdd4d26@googlegroups.com> |
| In reply to | #4096 |
Hi...
[toc] | [prev] | [next] | [standalone]
| From | srishtinagu19@gmail.com |
|---|---|
| Date | 2018-11-25 08:52 -0800 |
| Message-ID | <c5f48c4c-c444-427a-82fe-4b8018249a98@googlegroups.com> |
| In reply to | #4098 |
On Sunday, November 25, 2018 at 12:17:40 PM UTC+5:30, srisht...@gmail.com wrote: > Hi... Hii, I am still trying to set my contour lables at each different contour level. Please let me know. Thanks..
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web