On 19 December 2011 15:04, Christian Feuersaenger <cfeuersaen...@googlemail.com> wrote: > > Hi Xavier, > > There is, indeed, a way to define that stuff globally: just collect all your > options which make up the global configuration and > place them into the document's preamble using \pgfplotsset: > > \pgfplotsset{ > every axis y label/.style={...}, > <other common key>=<value>, > } > > That's it. Settings assigned with \pgfplotsset{} constitue variables which > remain in effect until the end of the environment in which \pgfplotsset was > invoked or until the option has been reset manually.
Thank you. Now that I have had a look a bit further in the manual this was explained very clearly there too. > In case you are also interested in my personal experience with such global > settings, here are a couple of best-practises: > > a) always use a trailing comma (even for the last option) > b) properly indend your code with one key per line (allows simply > (un)commenting) > c) consider using named custom styles, i.e. > > \pgfplotsset{ > xavier standard/.style={ > every axis y label/.style={...}, > <other common key>=<value>, > }, > } > > \begin{document} > ... > \begin{axis}[xavier standard] > ... Great! It is very valuable to start learning and already use best-practices. :-) The whole pgfplots and these custom styles are really powerful. Thank you. Cheers, Xavier -- Xavier Scheuer <x.sche...@gmail.com> ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features