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

Part of grid is sometimes missing #497

Open
tgkolda opened this issue Jan 1, 2025 · 0 comments
Open

Part of grid is sometimes missing #497

tgkolda opened this issue Jan 1, 2025 · 0 comments

Comments

@tgkolda
Copy link

tgkolda commented Jan 1, 2025

I have noticed that the upper/right parts of the grid are sometimes missing in pgfplots. I include an example. This fails with my local installation uisng MikTeX as well as on Overleaf. Observe that the lower & lefts parts of the grid are fine. This does not always happen. For instance, using xtick distance=2, minor x tick num=1, the left grid is fine. This is certainly a minor problem, but perhaps worthwhile to fix in some future edition.

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

\begin{document}

\begin{tikzpicture}
    \begin{axis}[
        scale only axis, height=10cm, width=8cm,
        axis lines=middle,
        grid=both,
        xmin=-8, xmax=8,
        xtick distance=4, minor x tick num=3,
        ymin=-12, ymax=12, 
        ytick distance=4, minor y tick num=3,
        enlargelimits={abs=1.9},
        ]
    \end{axis}
\end{tikzpicture}

\end{document}

The result is:
image

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

No branches or pull requests

1 participant