Dear Denis, the problem is caused by the fact that pgfplots internally opens a *second* tikzpicture... and the every picture style is applied twice.
I am not sure if this is a bug (it probably is) - anyway, a work-around could be to try \tikzset{ every picture/.style={scale=0.7,every picture/.style={}}, } This resets the style after it has been applied for the first time, i.e. nested pictures are not affected. Alternatively, you could try one of the scaling styles of pgfplots (like small,tiny, etc) -- which apply only to pgfplots, of course (but they use the correct fonts). I hope this helps. Best regards Christian Am 20.06.2011 22:35, schrieb Denis Bitouzé: > Hi, > > for a pgfplots course I'll give to PhD students :), I'll give a Beamer > presentation and I need the pictures' dimensions to be reduced, > together with font sizes or axis descriptions (so width and/or height > options are not solutions). > > OK, this can be easily achieved thanks to scale option given to the > tikzpicture environment: > > \documentclass{article} > \usepackage{pgfplots} > \pgfplotsset{compat=1.3} > > \begin{document} > \begin{tikzpicture}[scale=0.7] > \begin{axis} > \addplot coordinates { > (0,0.2) (0.4,0.6) (0.6,0) > }; > \legend{Blah} > \end{axis} > \end{tikzpicture} > \end{document} > > I'd like now apply this scaling to /all/ pictures in my document and > the only solution I found is to make use of: > > \tikzset{every picture/.style={scale=<factor>}} > > but, in this case, the legend placement is rather strange: > > \documentclass{article} > \usepackage{pgfplots} > \pgfplotsset{compat=1.3} > > \tikzset{every picture/.style={scale=0.7}} > > \begin{document} > \begin{tikzpicture} > \begin{axis} > \addplot coordinates { > (0,0.2) (0.4,0.6) (0.6,0) > }; > \legend{Blah} > \end{axis} > \end{tikzpicture} > \end{document} > > Could you suggest a workaround? > > Thanks in anticipation. ------------------------------------------------------------------------------ Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-sfdev2dev _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features