Dear all,
I am trying to plot each row of a matrix in a separate graph, all of which
should have the same scale on the y-axis. Using the DrawAdjust command in
the manner described below results in only the *first* graph being modified.
Does anyone see how I can adjust the remaining ones as well?
Any comment welcome. Many thanks!
Michael
#include <oxstd.h>
#include <oxdraw.h>
main()
{
decl mY = diag(<2, 0.5>) * rann(2, 100);
decl asY = {"Y1", "Y2"};
decl i;
for(i = 0; i < rows(mY); ++i)
{
DrawXMatrix(i, mY[i][], asY[i], range(1, 100), "");
DrawAdjust(ADJ_AREA_Y, 0, -10, 10);
}
ShowDrawWindow();
}
___________________________________________
Michael Massmann
NIESR and Lincoln College, Oxford
mail: NIESR, 2 Dean Trench St, London SW1P 3HE
phone: 020 7654 1933
fax: 020 7654 1900
email: [log in to unmask]
|