it is possible to have ytics printed with thousand separator?
Thanks :)
> Hi all,
>
> it is possible to have ytics printed with thousand separator?
If your local glibc and LC_NUMERIC locale settings support it.
gnuplot> set decimal locale
decimal_sign in locale is .
gnuplot> show locale
gnuplot LC_CTYPE en_US.UTF-8
gnuplot encoding default
gnuplot LC_TIME en_US.UTF-8
gnuplot LC_NUMERIC en_US.UTF-8
gnuplot> print sprintf("%'g",12345.678)
12,345.7
gnuplot> set format y "%'g"
it works wery well...tanks a lot :)
Does not work for me. I have
gnuplot> show locale
gnuplot LC_CTYPE C
gnuplot encoding default
gnuplot LC_TIME C
gnuplot LC_NUMERIC C
gnuplot> print sprintf("%'g",12345.678)
12345.7
Is there any way for me to fix this? Thanks!
> gnuplot> show locale
>
> gnuplot LC_CTYPE C
> gnuplot encoding default
> gnuplot LC_TIME C
> gnuplot LC_NUMERIC C
That means your locale is set to the international default, called "C"
in this context. Among other things that implies '.' as the decimal
separator.
> Is there any way for me to fix this? Thanks!
Read the fine manual. What does it say about 'set decimalsign locale',
and about its optional argument?