Path: csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=c3=b6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Can I use the same gnuplot script file to plot different data files? Date: Thu, 22 Nov 2018 11:16:49 +0100 Organization: A noiseless patient Spider Lines: 105 Message-ID: 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 22 Nov 2018 10:16:47 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="075010a8ef6f5df344d6f932186aed5f"; logging-data="7783"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+0uZVul/94Kt7hnZTVjV4mgXvv0q4n9WA=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.1 Cancel-Lock: sha1:DEhxXQM8nNDx2NxIrf7xvm+nTqk= In-Reply-To: <2403805d-ccaa-4116-b167-e332a3713894@googlegroups.com> Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4092 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