pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
198 stars 34 forks source link

[log mode] sampling in 2D and 3D different #154

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/154/ Author: mo-gul Timestamp: 2017-02-15 11:21:12.172000

While working on the answer http://tex.stackexchange.com/a/353990/95441 I realized that the sampling seems to be different for 2D and 3D plots.

Have a look at the follwing MWE. Is that a bug or a feature? (I consider this as a bug.)

\documentclass[border=5pt]{standalone}
\usepackage{pgfplots}
    \pgfplotsset{
        compat=1.14,
        my axis style/.style={
            only marks,
            domain=1:100,
            samples=21,
            samples y=1,
        },
    }
\begin{document}
    \begin{tikzpicture}
        \begin{axis}[
            my axis style,
            xmode=log,
        ]
            \addplot {1};
        \end{axis}
    \end{tikzpicture}
    \begin{tikzpicture}
        \begin{axis}[
            my axis style,
            xmode=log,
        ]
            \addplot3 {1};
        \end{axis}
    \end{tikzpicture}
\end{document}
pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/154/#d996 Author: cfeuersaenger Timestamp: 2017-03-18 16:26:54.811000

I believe it was the desire to get the 3d capabilities "out of the door" back when 3d was introduced in pgfplots 1.3. But you are the first to complain about it in the past years. I will fix it.

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/154/#da51 Author: cfeuersaenger Timestamp: 2017-03-18 17:15:55.815000

I managed to extend log sampling for just ONE of either x or y coordinate easily.

log sampling in both x and y requires a little more stupid TeX hackery for which I have no time at the moment.

The partial functionality is off by default and can be switched on using \pgfplotsset{3d log sampling=true}

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/154/#0f76 Author: cfeuersaenger Timestamp: 2017-04-29 14:19:26.112000

I decided to activate the partial fix for 'compat=1.15'. It supports 3d log sampling in one direction, but not in both simultaneously.

I will file a separate issue to implement it (with lower priority)

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/154/#e844 Author: cfeuersaenger Timestamp: 2017-04-29 14:19:38.333000

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/154/#4206 Author: cfeuersaenger Timestamp: 2017-04-29 14:22:47.168000

pgf-tikz-bot commented 7 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/154/#7980 Author: cfeuersaenger Timestamp: 2017-04-29 14:22:47.456000

https://sourceforge.net/p/pgfplots/bugs/167/