Hi Joel, Am 27.12.2011 12:23, schrieb Joel: > 1. With this code, the pgfplotsset doesn't change the fill patterns for > barplots: > \pgfplotsset{ > /pgfplots/cycle list={ > {fill=black!100,mark=none}, > {fill=black!75,mark=none}, > {fill=black!50,mark=none}, > }, > ybar, > } > > \begin{tikzpicture} > \begin{axis} > \addplot coordinates { (0,1) (1,2) (2,3) }; > \addplot coordinates { (0,2) (1,3) (2,4) }; > \end{axis} > \end{tikzpicture}
In this case, the 'ybar' key activates a suitable cycle list (see 'bar cycle list'). If you move your '/pgfplots/cycle list=...' key after 'ybar' you get the desired effect. > 2. I've managed to define a cycle list with \pgfplotscreateplotcyclelist, but > it doesn't take affect when set in pgfplotsset, only when provided as an > option in the axis environment: > > \pgfplotscreateplotcyclelist{mylist}{% > {black,fill=black,mark=none}, > {black,fill=black!50,mark=none}, > {black,fill=black!25,mark=none}, > } > > \pgfplotsset{ > ybar, > % the following line has no effect > cycle list name=mylist, > } > > \begin{tikzpicture} > \begin{axis} > \addplot coordinates { (0,1) (1,2) (2,3) }; > \addplot coordinates { (0,2) (1,3) (2,4) }; > \end{axis} > \end{tikzpicture} It works for me (with both version 1.5.1 and version 1.5)... could you provide more input here, especially about the version of pgfplots you are using? Best regards Christian ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Pgfplots-features mailing list Pgfplots-features@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pgfplots-features