Hi Alan,
> However, that was because I replaced
> -    plbox("bc", 0.0, 0, "bc", 0.0, 0);
> +    Box_Around_Viewport(TUB("bc"), 0.0, 0, TUB("bc"), 0.0, 0);
>
> If I use plbox rather than Box_Around_Viewport, then the result has
> extraneous tick marks. I don't understand the cause of this problem.  The
> same example has a call to plptex with another character array, and that
> works without problems.  I have also carefully compared how plptex and plbox
> are set up in plplotthin.ads, and I cannot spot anything. I also tried the
> TUB("bc") in the argument list for plbox, but the compiler complained about
> something being inconsistent before erroring out so I dropped it.
I found the solution to this problem. Have a look into example x12. The 
thin bindings of plplot need as strings char_array , but in Ada a '\0' 
is not automatically added. You need to do this on you own. You need the 
"Interfaces.C" library/module/whatever and than add "& Nul" to the 
strings so that they have the correct ending. Maybe Jerry can tell you 
how exactly this is supposed to work, or give a better/nicer solution to 
this problem.

Regards,
Werner


-- 
Dipl. Ing. Werner Smekal
Institut fuer Allgemeine Physik
Technische Universitaet Wien
Wiedner Hauptstr 8-10
A-1040 Wien
Austria

email: [EMAIL PROTECTED]
web:   http://www.iap.tuwien.ac.at/~smekal
phone: +43-(0)1-58801-13463 (office)
       +43-(0)1-58801-13469 (laboratory)
fax:   +43-(0)1-58801-13499


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to