Steve,
Congratulations! You are the first to discover that "feature". OSLO
6.6 is the first version to allow users to put their private folder
wherever they want. Previously, the private folder was right next to
the public folder, so the #include worked as advertised. To get it to
work now you will need to copy the entire OSLO66 EDU/public/ccl/inc
folder to your private/ccl folder and use
#include "inc/gendefs.h"
The tic marks work in my copy of OSLO66 EDU. Please check the
following lines of code:
moveto(0, 0);// draw x-axis (range 0...1)
lineto(1, 0);
for (iplt = 1; iplt <11; iplt++)
{
moveto(iplt*0.1, 0);//draw x-axis ticks
linerel(0, -2);
}
moverel(-0.2,-10);
label("
Rel.Obj.Ht.");//label x-axis
moveto(0, 0);// draw y-axis (range 0...100)
lineto(0, 100);
for (iplt = 1; iplt <11; iplt++)
{
moveto(0,iplt*10);//draw y-axis ticks
linerel(-0.02,0.0);
}
moverel(-0.1,0);
label("%s","100%");//label y-axis
The tic marks are drawn using moveto and linerel, just like all of the
other lines, so I can't think of a reason they wouldn't work.
Steve E.
On May 23, 11:17 am, Steve King <
steveandkathyk...@sbcglobal.net>
wrote:
> In the OSLO User Guide in Chapter 8 - Programming there is an example "*Defining
> a new command: xmt*". Following their example works fine up to and
> including producing the first graph. However, when I cut and pasted the
> full ccl listing (I put in the correct path for the gendefs.h file) and
> tried to run it I got the error "*Cannot open #include file*". I tried
> moving the gendefs.h file to the C root directory (and changed ccl #include
> path) but with no success.
>
> Typing in the *xmt* command still produces a graph but there are no tick