Dear All,
I am trying to make a return level plot where the X-axis has a logarithmic
scale using the following code:
#include <oxstd.h>
//#include <oxdraw.h>
#include <packages/gnudraw/gnudraw.h>
#include <oxprob.h>
#include <oxfloat.h>
#import <database>
main(){
decl vY,vX,cObs;
vX=range(0.001,0.009,0.001)~range(0.01,0.09,0.01)~range(0.1,0.9,0.05)~
range(0.905,0.99,0.005)~range(0.995,0.999,0.001);
cObs = columns(vX);
vY = range(1,cObs);
SetDrawWindow("Cross plot");
DrawX(0,vY, (-1.0./log(vX)));
DrawAdjust(ADJ_AXISSCALE,AXIS_LOG);
ShowDrawWindow();
}
However, the numbers that appear on the X-axis do not correspond to what I
would like to see, namely, 0.1 1 10 100 1000 etc. Any suggestions on how
to enforce those numbers on the X-axis?
Thank you.
Borissssssssssssssssssssssssssssssssss
--
die Evolution, die von der Amöbe zum Menschen führt ist laut den
Philosophen ein offensichtlicher Fortschritt, jedoch fragt niemand nach
der Meinung der Amöbe.
Bertrand Russell
--
Rem tene, verba sequentur.
Catone
--
Si vis doceri, doce.
Tullius Cicero
|