Menu

#1347 different tick and labels result for log plots

None
closed-out-of-date
nobody
None
2022-02-28
2014-03-08
Fabio Rossi
No

I attach a gnuplot script generated by octave. When I process the same file on two systems, a 32 and a 64 bit system, with the same version of gnuplot (4.6.4), I get two different outputs. I use the following command line

$ gnuplot --default-settings --persist < debug.gp

Basically I have a log plot, the differences are the presence/absence of minor ticks and the number of major ticks and their labels.

3 Attachments

Discussion

  • Fabio Rossi

    Fabio Rossi - 2014-03-08

    I'm using Linux under X11. The distribution is Gentoo so gnuplot is compiled from source.

     
  • Ethan Merritt

    Ethan Merritt - 2014-03-08

    Confirmed. Current cvs also produces different output on 32- and 64- bit builds.

     
  • Tatsuro MATSUOKA

    On windows

    CVS 32 bit : hangs (MinGW w64), works correct (MSVC)
    CVS 64 bit : works correct (MinGW w64, MSVC)

    5.0.4 32 bit : hangs (MinGW w64)
    5.0.4 64 bit : works but no minor ticks (MinGW w64)

    5.0.3 32 bit : works but no minor ticks (MinGW original site)
    5.0.3 64 bit : works but no minor ticks (MinGW w64)

    5.0.1 32 bit : hangs (MinGW w64)
    5.0.1 64 bit : works but no minor ticks (MinGW w64)

    5.0.1 32 bit : works but no minor ticks (MinGW original site)
    5.0.1 64 bit : works but no minor ticks (MinGW w64)

    4.6.7 32 bit : hangs (MinGW w64)
    4.6.7 64 bit : works but no minor ticks (MinGW w64)

     
  • Tatsuro MATSUOKA

    For gnuplot 5.0.3 on cygwin 32 and 64 bit , results are the same as those on original post.
    For cvs version gnuplot hangs.

     
  • Tatsuro MATSUOKA

    I made short script to narrow the issue

    set terminal GNUTERM enhanced size 560,420
    reset;
    set format x "10^{%T}";
    set mxtics 10;
    set format y "10^{%T}";
    set mytics 10;
    unset logscale;
    set logscale x;
    set logscale y;
    set xrange [1e+0:1e+10] noreverse;
    set yrange [1e+0:1e+10] noreverse;
    unset key;
    plot x
    

    Behavior changes if mtics value chages e. g. set mxtics 9;
    But behavior is buggy.
    On cvs version, log scale mechanism is changed so that this issue disappeared.
    The issue is limitied to on version 5.0 and earlier.

    If logscale range is narrow like set xrange [1e+0:1e+3]

    set mxtics 10;

    works.

     

    Last edit: Tatsuro MATSUOKA 2016-08-29
  • Tatsuro MATSUOKA

    Sorry situation seems not to be simple.
    Snapshot cvs version (32 and 64 bit ) on windows:tics interval is 10^2:
    The behavior is the same on windows, wxt and qt terminals. (cvs_win.png)
    On cygwin, behavior 32 and 64 bit are different.
    (cvs_32_x11.png, cvs_64_x11.png)
    (I executed also on wxt terminal. Resulits are the same as x11.)

     

    Last edit: Tatsuro MATSUOKA 2016-08-29
  • Tatsuro MATSUOKA

    All results show that gnuplot behavior is buggy on wide logscale range.

     
  • Tatsuro MATSUOKA

    I have execute the test on lubutu 14.04 (32 bit) and lubuntu 16.04 (64 bit). Results are the same as those on the Cygwin.

     
  • Ethan Merritt

    Ethan Merritt - 2022-02-28
    • status: open --> closed-out-of-date
    • Group: -->
    • Priority: 5 -->
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.