The current set mytics
command, which specifies minor tic frequency, is not particularly well-suited for use with logarithmic axes. Therefore, I propose introducing a new command specifically designed for finer control of minor tics on log-scale axes.
Proposed Syntax
set mylogtics m1 m2 m3 ...
set mylogtics 1 2 3 4 5 6 7 8 9
.set ytics logscale
) and overrides the set mytics
setting.set ytics nologscale
is specified, the 'mylogtics' setting is ignored, and the mytics
setting is used instead.There might be a more suitable name than "mylogtics".
Example
For example, with the setting:
set yrange [1:1000]
set mylogtics 1 5
Minor tics would be placed at: 1, 5, 10, 50, 100, 500, and 1000.
In matplotlib, the keyword argument subs
in LogLocator
has the role of minor tick setting like above description. https://matplotlib.org/stable/api/ticker_api.html#matplotlib.ticker.LogLocator
I have prepared a script that emulates the behavior of the proposed set mylogtics
command.
I would appreciate it if you could review it and let me know whether you find it useful.
I personally consider example plots 1, 2, and 3 in the emulation script to be terrible - to the point that I would consider it a bug if the program produced such a plot. The presence of minor tics with no corresponding major tics was, in fact, one of the complaints in Bug 2717.
Plot 4 is fine. But you can get that exact plot now with the script below.
Thank you for reply.
Well, I guess that’s true.
OK, this is not a very important point. I may have been asking for too much, so I’ll take it back.
Reviced Proposed Syntax Ver.2
set mylogtics 1 2 3 4 5 6 7 8 9
.The modified emulation_script is also attached.
I would be grateful if you could continue to give it some thought.