Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Mathematica 6: How to plot multiple lists with error bars?

260 views
Skip to first unread message

Kezhao Zhang

unread,
May 30, 2008, 2:57:59 AM5/30/08
to
I want to plot multiple series of data points in Mathematica 6. Each
data point has an error bar. ErrorListPlot plots only a single list.
Is there a way to plot multiple lists with error bars?

Thanks.

Kezhao

dh

unread,
Jun 1, 2008, 3:36:39 AM6/1/08
to

Hi Kezhao,

ErrrorListPlot can deal with multiple datasets.E.g.:

d1=Table[{i,RandomReal[]},{i,0,20}];

d2=Table[{.5i,RandomReal[]},{i,0,20}];

ErrorListPlot[{d1,d2}]

hope this helps, Daniel

Kezhao Zhang wrote:

>

> Thanks.

>

> Kezhao

>

--

Daniel Huber

Metrohm Ltd.

Oberdorfstr. 68

CH-9100 Herisau

Tel. +41 71 353 8585, Fax +41 71 353 8907

E-Mail:<mailto:d...@metrohm.com>

Internet:<http://www.metrohm.com>

Curtis Osterhoudt

unread,
Jun 1, 2008, 3:38:27 AM6/1/08
to
Hm. Works for me. If it continues to not work for you, try making the plots
individually and then combining them with Show (as in the second example
below):

Needs["ErrorBarPlots`"]

ErrorListPlot[{Table[{i + 1, RandomReal[0.5]}, {i, 10}],
Table[{i, RandomReal[0.5]}, {i, 10}]}]

Show[ErrorListPlot /@ {Table[{i + 1, RandomReal[0.5]}, {i, 10}],
Table[{i, RandomReal[0.5]}, {i, 10}]}]

Hope that helps!
C

On Friday 30 May 2008 00:57:01 Kezhao Zhang wrote:
> I want to plot multiple series of data points in Mathematica 6. Each
> data point has an error bar. ErrorListPlot plots only a single list.
> Is there a way to plot multiple lists with error bars?
>
> Thanks.
>
> Kezhao

--
==========================================================
Curtis Osterhoudt
cfo@remove_this.lanl.and_this.gov
PGP Key ID: 0x4DCA2A10
Please avoid sending me Word or PowerPoint attachments
See http://www.gnu.org/philosophy/no-word-attachments.html
==========================================================

0 new messages