Menu

#1971 tic problem with logscale in 5.2.0

None
closed-fixed
nobody
None
2020-08-27
2017-09-22
Anonymous
No

I have just updated to 5.2 (mac OS via macports). I notice that I am now having trouble with the setting of tic frequency when I use logscale.
For example:
set logscale y
set ytics 10

this is now producing the "too many axis ticks requested" error in most circumstances. I read in the release notes for 5.2 that there has been a change to the way logscale is handled (now a subset of nonlinear axis type). In the manual (pg 186 of 5.2 pdf) it states "If the axis is logarithmic, the increment will be used as a multiplicative factor." - it seems this is no longer the case.

Discussion

  • Ethan Merritt

    Ethan Merritt - 2017-09-23
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2017-09-23

    Fixed in CVS for 5.2 and 5.3

    Yes this was a bug, or at least an unintended change. The intent was that the old behaviour would remain the default and could be explicitly selected using a new keyword set xtics {no}logscale. The nologscale option would produce the behaviour that you found. Unfortunately that wasn't explained and anyhow the bug prevented it from working as intended. The documentation has been revised to describe this keyword and give examples.

     
  • ptheguy

    ptheguy - 2017-10-06

    Hi,
    I don't know if this issue has been fixed yet or not, but according to documenation one can say set term logscale; set xtics 1,10,100 to obtain a logscale that starts with 1 and ends with 100 with major axis seeing the effect of the multiplicative factor 10.
    With gnuplot 5.2, the incremenet value seems to be interpreted as additive and not multiplicative.
    The attached plot was made as follows:

    set logscale x
    set xtics 1,10,100
    set xrange [1:100]
    plot 1/x
    
     

    Last edit: ptheguy 2017-10-06
  • Ethan Merritt

    Ethan Merritt - 2017-11-17
    • Status: pending-fixed --> closed-fixed
     
  • Tibor Kibedi

    Tibor Kibedi - 2020-08-27

    Using the lates versions (5.28 or 5.4 patchlevel rc1) the problem is still persists. Using logaritmic scale when the range is large (~10 order of magnitude or more) . Any workaround of this problem?

     
    • Ethan Merritt

      Ethan Merritt - 2020-08-27

      Could you please provide an example script that demonstrates the problem? So far as I can see the following works correctly in 5.2.8 and in 5.4.0. Perhaps I misunderstand what to look at.

      set xrange [1.e0 : 1.e10]
      set log
      set xtics 10.
      set ytics 10.
      plot x
      
       

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.