Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing minor ticks at the end of axes #180

Open
pgf-tikz-bot opened this issue Aug 13, 2017 · 1 comment · May be fixed by #478
Open

Missing minor ticks at the end of axes #180

pgf-tikz-bot opened this issue Aug 13, 2017 · 1 comment · May be fixed by #478

Comments

@pgf-tikz-bot
Copy link
Collaborator

pgf-tikz-bot commented Aug 13, 2017

Migrated from SourceForge
https://sourceforge.net/p/pgfplots/bugs/180/
Author: lbaeni
Timestamp: 2017-08-13 21:57:14.278000

This report refers to https://tex.stackexchange.com/questions/386155/pgfplots-missing-minor-ticks-at-the-end-of-axes/
In version 1.15, minor ticks are not drawn to the end of the axis but stop at the last major tick.
In the following MWE the minor ticks stop at last major tick (at x=1.5 and at y=100).

\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
    \begin{axis}[
        minor tick num=4,
        enlarge x limits={
            abs=0.20,   % <-- minor ticks larger than last major tick are not drawn
%            abs=0.25,   % <-- minor ticks larger than last major tick are drawn
        },
    ]
        \addplot table {
            x    y
            0.0    100
            1.5    10
        };
    \end{axis}
\end{tikzpicture}
\end{document}

image showing the result of above code in v1.14

This was not the case in version 1.14.

image showing the result of above code in v1.15

@lbaeni
Copy link

lbaeni commented Apr 15, 2020

This issue was introduced with the changes in b3e65b9 to fix #165.

The minor ticks between the last major tick and the end of the axis are missing if the distance between the last major tick and the end of the axis is less than half of the space between two major ticks. E.g. with xmax = 1.75 the minor ticks appear at the end of the axis in the above example. With xmax = 1.74 the minor ticks are missing.

Any chance this could be fixed?

@schtandard schtandard linked a pull request May 30, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants