Hello,
I'm having some problems with setting the cycle list for bar plots:
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}
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}
Would appreciate advice on this issues.
TIA,
Joel
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/pgfplots-features