Skip to content

Axis label disappears when axis style are different #515

@Why-not-now

Description

@Why-not-now

When the axis lines are different style, i.e. using the code below,

\documentclass[a4paper]{article}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}[
    ]
    \begin{axis}[
        axis x line = center,
        axis y line = center,
        axis z line = none,
        xmin = 0, xmax = 30,
        ymin = -200, ymax = 1000,
        zmin = 0, zmax = 1,
        ]
    \end{axis}
\end{tikzpicture}
\end{document}

The axis tick labels do not show up.

Image

But when the axis lines are the same style,

\documentclass[a4paper]{article}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}[
    ]
    \begin{axis}[
        axis x line = center,
        axis y line = center,
        axis z line = center,
        xmin = 0, xmax = 30,
        ymin = -200, ymax = 1000,
        zmin = 0, zmax = 1,
        ]
    \end{axis}
\end{tikzpicture}
\end{document}

The axis tick labels do show up.

Image

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