manpagez: man pages & more
info mathgl
Home | html | info | man
[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

9.1.16 BoxPlot sample

../png/boxplot

C++ code

mglData a(10,7);
a.Modify("(2*rnd-1)^3/2");
gr->BoxPlot(a);
gr->Box();
gr->Plot(a," ko");

MGL code

new a 10 7
modify a '(2*rnd-1)^3/2'
boxplot a
box:plot a ' ko'

Pure C code

HMDT a = mgl_create_data_size(10,7,1);
mgl_data_modify(a,"(2*rnd-1)^3/2",0);
mgl_box(gr,1);
mgl_plot(gr,a," ko");
mgl_boxplot(gr,a,NULL);
mgl_delete_data(a);

Fortran code

integer a, mgl_create_data_size
y = mgl_create_data_size(10,7,1)
call mgl_data_modify(a,'(2*rnd-1)^3/2',0);
call mgl_box(gr,1)
call mgl_plot(gr,a,' ko')
call mgl_boxplot(gr,a,'')
call mgl_delete_data(a)

Python

a = mglData(10,7);
a.Modify("(2*rnd-1)^3/2");
gr.Box();
gr.Plot(a," ko");
gr.BoxPlot(a);

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.