Dear Daniel
2012/5/14 Daniel-M <
daniel...@gmail.com>:
Here you receive data array as matrix 2 * (iterations+1). As I
understand first column of it contain x-values, second one -- y-
values. So, let write it explicitly
mglData xdat=y.SubData(0), ydat=y.SubData(1);
Now you need to set axis ranges as xdat, ydat ranges:
gr->XRange(xdat); gr->YRange(ydat); // for v.1.*
//gr->SetRanges(xdat,ydat); // for v.2.*
> gr->Box();
> gr->Mark(y,"r#."); // the type of plot that i
> want is only points
Mark() function require 2 arguments mark positions and mark radius. In
yours case the more appropriate is Plot() function, which draw mark of
the same size.
gr->Plot(xdat,ydat,"r#. ");
I add ' ' style for disabling line drawing between marks.
--
All the best,
Alexey Balakin