Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #4094

Re: Can I use the same gnuplot script file to plot different data files?

Newsgroups comp.graphics.apps.gnuplot
Date 2018-11-22 02:44 -0800
References (4 earlier) <738fc952-1faa-4c4a-a51a-7bda36f485d6@googlegroups.com> <pt47j2$3bf$1@dont-email.me> <2d568b4a-d353-42e8-a3c4-b4eb6b73f8f1@googlegroups.com> <2403805d-ccaa-4116-b167-e332a3713894@googlegroups.com> <pt5vmf$7j7$1@dont-email.me>
Message-ID <6ef0919d-05be-4c69-b061-22abf4a80043@googlegroups.com> (permalink)
Subject Re: Can I use the same gnuplot script file to plot different data files?
From srishtinagu19@gmail.com

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

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

csiph-web