Skip to content

Missing minor ticks at the end of axes #180

@pgf-tikz-bot

Description

@pgf-tikz-bot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions