Hi Yuliya,
it is possible to use "forget plot": this will exclude the plot when
shifts are computed.
A complete solution could be
\documentclass[a4paper]{article}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[ybar,samples=4]
\addplot+[forget plot,yellow] coordinates {(1,1)};
\addplot coordinates {(0,0.2) (2,2)};
%\addplot coordinates {(0,1) (1,-1) (2,2)};
\end{axis}
\end{tikzpicture}
\end{document}
It is only important that the special coordinate (the one with 'forget
plot') is placed before its reference. The '+[forget plot,yellow]' means
that the plot inherits the same style arguments.
I hope this helps.
Best regards
Christian
Am 20.09.2011 02:31, schrieb [email protected]:
> Hello. I would like to have a bar plot which has one color for some
> of the values and another for the rest. I tried doing it using
> addplot twice, but it shifts the bars and doesn't look right.
>
> Thanks,
>
> Yuliya
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense.
> http://p.sf.net/sfu/splunk-d2dcopy1
> _______________________________________________
> Pgfplots-features mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pgfplots-features
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Pgfplots-features mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pgfplots-features