error bars for data



El lun, 18-10-2010 a las 04:53 -0400, barakatster escribi?:
> Hello everyone,
> 
> I'd like to know if you have any suggestions on introducing error bars
> to data plots in maxima as I can not find any documentation on how to
> do it. Please advise. 
> 
> Thanks,
> 
> Mike Johnson

Hello,

There is not any Maxima interface to Gnuplot's errorbars in the official
release, but I have just commited a first experimental version:

http://maxima.cvs.sourceforge.net/viewvc/maxima/maxima/share/draw/draw.lisp

I'll write some documentation later. In the meantime, to get a general
idea on how it works, type:

load("draw")$

set_draw_defaults  (
   title = "My error bars",
   xrange = [0,20],
   yrange = [-5,10],
   grid = true) $

/* Now, start plotting */

draw2d(
   error_type =y,
   errors([[1,2,1], [3,5,3], [10,3,1], [17,6,2]]));

draw2d(
   points_joined = true,
   error_type = x,
   errors([[1,2,1], [3,5,3], [10,3,1], [17,6,2]]));

draw2d(
   error_type =xy,
   points_joined = true,
   color = blue,
   errors([[1,2,1,2], [3,5,2,1], [10,3,1,1], [17,6,1/2,2]]));

draw2d(
   error_type =xy,
   points_joined = true,
   line_width = 2,
   errors([[1,2,0,1.5,1.5,4],
           [3,5,2.8,4,4,6],
           [10,3,7,10.2,0,8],
           [17,6,15,18,-2,8]]));

draw2d(
   error_type =xy,

   /* 1st sample */
   points_joined = true,
   color = blue,
   errors([[1,2,1,2], [3,5,2,1], [10,3,1,1], [17,6,1/2,2]]),

   /* 2nd sample */
   color = red,
   points_joined= false,
   errors([[1,8,1/2,1/2], [3,-2,1,1], [10,0,1,1], [15,0,2,1/2]]));


Hope this helps.

--
Mario