Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Plotting the same thing, just with different values for log basis y, the minor ticks disappear.

\documentclass{article}
\usepackage{fullpage}
\usepackage{tikz}
\usepackage{pgfplots}

\begin{document}
\begin{tikzpicture}
\begin{semilogyaxis}[log basis y=10]
\addplot coordinates {
    (0, 1)
    (1, 2)
    (2, 4)
    (3, 8)
    (4, 16)
    (5, 32)
};
\end{semilogyaxis}
\end{tikzpicture}
\begin{tikzpicture}
\begin{semilogyaxis}[log basis y=5]
\addplot coordinates {
    (0, 1)
    (1, 2)
    (2, 4)
    (3, 8)
    (4, 16)
    (5, 32)
};
\end{semilogyaxis}
\end{tikzpicture}
\end{document}

enter image description here

Is there any way to make them reappear?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

Pgfplots can only generate minor ticks for log basis y=10. These are at positions {2,3,4,5,6,7,8,9} * 10^k .

Are you sure that you want minor ticks of sorts {2,3,4} * 5^k ? Sounds quite uncommon. If you are sure, you can post a feature request on sourceforge.

share|improve this answer
    
Thinking about it, I agree. I prefer to use ytickten={0, 0.5, ..., 2}, which gives ticks at 5^0, 5^0.5, 5^1, etc. when the base is 5. Thanks! –  Vegard Aug 25 '12 at 13:39

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.