Menu

#2724 Tics change to "nomirror" when setting tics scale

None
pending-fixed
nobody
None
2024-07-29
2024-07-25
Anonymous
No

The default behavior of having mirrored tics changes to nomirror when their scale is changed via the set tics scale command.

Steps to reproduce:
1. Start gnuplot with an empty gnuplotrc (default parameters).
2. Type set terminal block; plot cos(x). This plot should have mirrored tics.
3. (Extra) Type set tics scale default; plot cos(x). Tics are still mirrored.
4. Type set tics scale 1.; plot cos(x). Tics are not mirrored anymore.
5. (Extra) Type set tics scale default; plot cos(x). Tics are still not mirrored.

This does not apply to individual set {x,y,...}tics scale commands.

gnuplot v6.0 pl 1

Discussion

  • Ethan Merritt

    Ethan Merritt - 2024-07-29
    • status: open --> pending-fixed
    • Group: -->
    • Priority: -->
     
  • Ethan Merritt

    Ethan Merritt - 2024-07-29

    There is a messy history behind this one. I think there will likely be some unhappy people or old scripts whichever way we take this. But I agree with you that setting the scale should not alter the setting for mirroring. So I have made that change even though it will affect some scripts, including a couple in the project unit tests and demo collection. In retrospect I wish this had been done prior to the 6.0 release.

    Part of the issue here is that "set tics" with no other keywords on the command line has apparently been buggy for a long time, so people used "set tics scale 1" instead because it kinda/sorta did the same thing. I have tried to fixed "set tics" as well, so that should now work as documented to reset all axes to their default initial state.

     

Log in to post a comment.