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/
200 stars 35 forks source link

scale and axix labels #61

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 11 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/61/ Author: *anonymous Timestamp: 2013-01-16 18:13:58

Axis labels are not consistently positioned when the tikz scale option is set to a value that is different to 1.

pgf-tikz-bot commented 11 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/61/#fe14 Author: nobody Timestamp: 2013-01-16 18:13:58

https://sourceforge.net/p/pgfplots/bugs/_discuss/thread/89f1f294/fe14/attachment/bug.tex Source file

pgf-tikz-bot commented 11 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/61/#cd4f Author: cfeuersaenger Timestamp: 2013-06-21 20:53:23.445000

I see... this appears to be an unfortunate backwards compatibility problem. Apparently, versions before pgfplots 1.8 had this problem when using 'axis lines=center' as in your example.

However, adding

\pgfplotsset{compat=1.8}

switches to a more recent label placement code for which the problems vanishes.

Although this is quite tedious, I tend to close the bug with this hint, especially since the manual recommends this statement as best-practise.

pgf-tikz-bot commented 11 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/61/#4920 Author: cfeuersaenger Timestamp: 2013-06-21 20:53:37.993000