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

Minor ticks in log axis missing #435

Open
tndrle opened this issue May 15, 2022 · 2 comments
Open

Minor ticks in log axis missing #435

tndrle opened this issue May 15, 2022 · 2 comments

Comments

@tndrle
Copy link

tndrle commented May 15, 2022

This is based on a question on TeX.SE: https://tex.stackexchange.com/q/642981/263192

I'm missing some minor y ticks in a logarithmic pgfplots axis:

This has been generated with:

\begin{tikzpicture}
\begin{axis}[
    ymode=log,
    ymax=31,
]
    \addplot[only marks] coordinates {(0,0.1) (1,11)};
\end{axis}
\end{tikzpicture}

Notice that ymax=31, so I would expect minor y ticks at y = 20 and y = 30.

If I change ymax slightly to 32, it works as expected:

Full MWE:

\documentclass{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}

\begin{document}
\begin{tikzpicture}
\begin{axis}[
    ymode=log,
    ymax=31,
]
    \addplot[only marks] coordinates {(0,0.1) (1,11)};
\end{axis}
\end{tikzpicture}

\begin{tikzpicture}
\begin{axis}[
    ymode=log,
    ymax=32,
]
    \addplot[only marks] coordinates {(0,0.1) (1,11)};
\end{axis}
\end{tikzpicture}
\end{document}
@judober
Copy link

judober commented Oct 10, 2022

I have the same problem on the xaxis. Is this behaviour intended?

@lbaeni
Copy link

lbaeni commented Jun 28, 2024

This issue is a duplicate of #180. A pull request (#478) has been submitted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants