In the MWE below (a coordinate system having its first axis logarithmized), major and minor ticks misalign. I have tried to figure out which logic for I should apply for the yticksize=0 8 option, but fiddling with this using trial and error only gives me alignment of the minor gridlines - I fail to control the length of the minor and major horizontal gridlines.

          Ox={-4},% Origin for X
          dy=0.2,Dy=5,yticksize=0 8,ysubticks=4,
          Oy={-25},% Origin for Y

Coordinate system, first axis logarithmized - major and minor ticks misaligned!

Thus my question:

How do I control the minor ticklines providing a rightmost (upper) limit somehow in concord with the units of the x-scale?


Shortened \psset{} statement. Changing to yticksize=0 8 solves alignment problem with the major horizontal ticklines.

Added the picture below, corresponding to yticksize=0 7 in stead of yticksize=0 8 (uppermost image). Note that righthand endpoints of the minor gridlines and the major gridlines both move when changing the upper limit of yticksize, but they have different lengths, the major being the longer. enter image description here

  • 1
    ysubticksize=1 It is a factor, relative to the major lines! – user2478 Jan 26 '18 at 18:59

you have 8 units in x direction:

yticksize=0 8,ysubticksize=1,

and the sub ticks should be of the same size.

enter image description here

  • Yes, yticksize=0 8,ysubticksize=1 fixes it. The value corresponding to 8 fixes the alignment issue across my implementations of this. Most obliged. – Morten Engelsmann Jan 26 '18 at 19:37
  • And yticksize=8,ysubticksize=1 works, too. – Morten Engelsmann Jan 26 '18 at 19:47
  • Ahh, when ticks have default size, minor ticks are just that: about 90% -- smaller. The ysubticksize=1 make size of the minor exactly 100% the size of the major ticks. – Morten Engelsmann Jan 26 '18 at 21:37
  • 1
    see documentation of pst-plot (Table 1) on page 26 for the default value. – user2478 Jan 27 '18 at 8:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.