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


Groups > comp.graphics.apps.gnuplot > #4680 > unrolled thread

Many digits

Started bydb <dieterhansbritz@gmail.com>
First post2025-01-02 15:21 +0000
Last post2025-01-05 13:22 +0000
Articles 3 — 2 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Many digits db <dieterhansbritz@gmail.com> - 2025-01-02 15:21 +0000
    Re: Many digits Olaf Schultz <o.schultz@enhydralutris.de> - 2025-01-02 17:07 +0100
      Re: Many digits db <dieterhansbritz@gmail.com> - 2025-01-05 13:22 +0000

#4680 — Many digits

Fromdb <dieterhansbritz@gmail.com>
Date2025-01-02 15:21 +0000
SubjectMany digits
Message-ID<vl6asv$3d221$1@dont-email.me>
I am using this gnuplot script:

gnuplot << eoi
set term postscript enh eps 24
set output 'concs.eps'
set nokey
set xlabel 'X'
set ylabel 'C'
set ytics 0, 0.5, 1
set xtics 0, 1, 6
plot 'concs.dat' w l lt 1
quit
eoi

If I don't specify tic marks, I get, e.g, for Y, 0.0, 0.1, .2, ... 1.0
and for X 0, 1, 2, ...6. I don't want so many, so I put in the tic
mark specs, and now I get for Y, 0.000000, 0.500000 and 1.000000, and for 
X 0.00000, 1.00000 etc.
I know I can specify the number format but I never got this before.
I have G N U P L O T
        Version 5.4 patchlevel 2    last modified 2021-06-01

so it is not an update. I must be causing this - but how?

-- 
db

[toc] | [next] | [standalone]


#4681

FromOlaf Schultz <o.schultz@enhydralutris.de>
Date2025-01-02 17:07 +0100
Message-ID<ltnrt9Fqdk3U2@mid.individual.net>
In reply to#4680
Am 02.01.25 um 16:21 schrieb db:
> I am using this gnuplot script:
> 
> gnuplot << eoi
> set term postscript enh eps 24
> set output 'concs.eps'
> set nokey
> set xlabel 'X'
> set ylabel 'C'
> set ytics 0, 0.5, 1
> set xtics 0, 1, 6
> plot 'concs.dat' w l lt 1
> quit
> eoi
> 
> If I don't specify tic marks, I get, e.g, for Y, 0.0, 0.1, .2, ... 1.0
> and for X 0, 1, 2, ...6. I don't want so many, so I put in the tic
> mark specs, and now I get for Y, 0.000000, 0.500000 and 1.000000, and for
> X 0.00000, 1.00000 etc.
> I know I can specify the number format but I never got this before.
> I have G N U P L O T
>          Version 5.4 patchlevel 2    last modified 2021-06-01
> 
> so it is not an update. I must be causing this - but how?
> 

hm, have you tried sommething like:
set format x ".1f"


What I also like:
set format x "%d.%m.\n%Y"
;-)

Healthy new year,

Olaf

[toc] | [prev] | [next] | [standalone]


#4682

Fromdb <dieterhansbritz@gmail.com>
Date2025-01-05 13:22 +0000
Message-ID<vle125$11tep$1@dont-email.me>
In reply to#4681
On Thu, 2 Jan 2025 17:07:05 +0100, Olaf Schultz wrote:

> Am 02.01.25 um 16:21 schrieb db:
>> I am using this gnuplot script:
>> 
>> gnuplot << eoi set term postscript enh eps 24 set output 'concs.eps'
>> set nokey set xlabel 'X'
>> set ylabel 'C'
>> set ytics 0, 0.5, 1 set xtics 0, 1, 6 plot 'concs.dat' w l lt 1 quit
>> eoi
>> 
>> If I don't specify tic marks, I get, e.g, for Y, 0.0, 0.1, .2, ... 1.0
>> and for X 0, 1, 2, ...6. I don't want so many, so I put in the tic mark
>> specs, and now I get for Y, 0.000000, 0.500000 and 1.000000, and for X
>> 0.00000, 1.00000 etc.
>> I know I can specify the number format but I never got this before.
>> I have G N U P L O T
>>          Version 5.4 patchlevel 2    last modified 2021-06-01
>> 
>> so it is not an update. I must be causing this - but how?
>> 
>> 
> hm, have you tried sommething like:
> set format x ".1f"
> 
> 
> What I also like:
> set format x "%d.%m.\n%Y"
> ;-)
> 
> Healthy new year,
> 
> Olaf

Yes, "%1.f" fixed it. But I am wondering why I needed
to use it, which I have not, before. I don't see
anything in my script that would cause the many digits.
Ah well, academic.

-- 
db

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web