X-Received: by 2002:a6b:d315:: with SMTP id s21mr6218671iob.23.1542882513674; Thu, 22 Nov 2018 02:28:33 -0800 (PST) X-Received: by 2002:a9d:24c3:: with SMTP id z61mr184382ota.1.1542882513274; Thu, 22 Nov 2018 02:28:33 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!z5-v6no42804ite.0!news-out.google.com!v141ni62ita.0!nntp.google.com!q69no42927itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Thu, 22 Nov 2018 02:28:32 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=14.139.236.243; posting-account=QLJ3mAoAAABT4Plmu7vwBG2bcvTSTo_B NNTP-Posting-Host: 14.139.236.243 References: <1123688616.067028.222910@o13g2000cwo.googlegroups.com> <8392b610-487d-4688-ab1c-0cc15de51cc5@googlegroups.com> <738fc952-1faa-4c4a-a51a-7bda36f485d6@googlegroups.com> <2d568b4a-d353-42e8-a3c4-b4eb6b73f8f1@googlegroups.com> <2403805d-ccaa-4116-b167-e332a3713894@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <38785980-d708-4892-bd2b-6ee147b4bebb@googlegroups.com> Subject: Re: Can I use the same gnuplot script file to plot different data files? From: srishtinagu19@gmail.com Injection-Date: Thu, 22 Nov 2018 10:28:33 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Lines: 145 Xref: csiph.com comp.graphics.apps.gnuplot:4093 On Thursday, November 22, 2018 at 3:46:48 PM UTC+5:30, J=C3=B6rg Buchholz w= rote: > 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=C3=B6rg Buc= hholz 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-=20 > >>>> 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 =CE=94 in the pdf out= put file > >>> when I use gnuplot> set xlabel "{/Symbol D}". > >>> > >>> Instead of "/Symbol D" you can wrote your script in unicode (UTF8). T= han > >>> you can use all unicode signs directly in gnuplot. > >>> > >>> Example script (utf8test.plt): > >>> > >>> set encoding utf8 > >>> set xlabel '=CE=94 Delta' > >>> set term pdfcairo > >>> set out 'test.pdf' > >>> plot sin(x) > >>> set out > >>> > >>> > >>> gnuplot> load 'utf8test.plt' > >>> > >>> Now there is "=CE=94 Delta" as xlabel in the pdf file > >>> > >>> J=C3=B6rg > >> > >> > >> Hi, > >> My gnuplot version is- > >> > >> G N U P L O T > >> Version 4.6 patchlevel 2 last modified 2013-03-14=20 > >> Build System: Linux x86_64 > >> > >> I am using the following script- > >> "" > >> # set terminal pdf > >> # set output "myplot.pdf" > >> # set encoding utf8=20 > >> # set term pdfcairo > >> set contour > >> set view map > >> unset surface > >> set xlabel '{/Symbol a}'=20 > >> 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} > >=20 > >=20 > > 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" >=20 > remove the two "#" >=20 > > set contour > > set view map > > unset surface > > set xlabel "{/Symbol D}"=20 > > 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 >=20 > add "set out" It is printing now.... Thanks a lot >=20 >=20 > > Also not printing the symbols.... >=20 > Version 4.6 is very old. 5.2 is up-to-date. >=20 > 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. >=20 > What shows "gnuplot> show term". >=20 > With "gnuplot> help term pdf" you can see what your terminal can do. >=20 > Please use pdfcairo enhanced. > gnuplot> set term pdfcairo noenhanced >=20 > The pdf-file was generated after a "gnuplot> set out" after the plot > command. >=20 > J=C3=B6rg 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 } {fontscale } {linewidth } {rounded|butt} {dashlength
} {size {unit},{unit}} This terminal supports an enhanced text mode, which allows font and other formatting commands (subscripts, superscripts, etc.) to be embedded in lab= els 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 specified in `linewidth`. The default linewidth is 0.25 points. (1 "PostScript" point =3D 1/72 inch =3D 0.353 mm) `rounded` sets line caps and line joins to be rounded; `butt` is the default, butt caps and mitered joins.