From: Joao C. <jca...@in...> - 2001-10-26 19:02:18
|
On Friday 26 October 2001 00:49, Alan W. Irwin wrote: | On Thu, 25 Oct 2001, Joao Cardoso wrote: | > On Thursday 18 October 2001 18:14, Alan W. Irwin wrote: | > | On Thu, 18 Oct 2001, [iso-8859-1] Jo=E3o Cardoso wrote: | > | > On Thursday 18 October 2001 01:32, Alan W. Irwin wrote: | > | > ... | > | > | FURTHER TESTS.... | > | | > | I also ran the script for the png driver this morning, and there ar= e | > | some problems (for real this time ....;-)) with the octave stuff in | > | that case. There are severe size problems with the legends for all | > | plots. | > | > As it didn't happen for me, I was assuming that the fault was yours. | | Note my comment was for the png driver only.=20 I have checked it, and the tk and ps drivers are OK (possibly others too)= =2E The xwin and png drivers have the problem. Try the "p1" octave demo, and = you=20 will see it. As you say bellow, the problem is getting the correct character size. Oct= ave=20 just don't know what driver it is working on, it just looks at the value=20 returned from plgchar(): octave:1> fig(1,"xwin"); octave:2> [a b]=3Dplgchr=20 a =3D 2.0000 b =3D 2.0000 octave:3> fig(2,"tk"); octave:4> [a b]=3Dplgchr=20 a =3D 4.4449 b =3D 4.4449 octave:5> fig(3,"ps","po.ps"); octave:6> [a b]=3Dplgchr=20 a =3D 4.4436 b =3D 4.4436 octave:7> fig(4,"png","po.png"); octave:8> [a b]=3Dplgchr=20 a =3D 1.9950 b =3D 1.9950 octave:9>=20 So, you see, the returned value is different for each driver. Octave has = no=20 other way to know the character size. There is no other API entry to know= =20 this, I think. What does others think? To summarize: the problem is to know the size of = the=20 bounding box of a plplot string, knowing the string length, to enclose it= in=20 a box. This has to be done using the API calls. Joao PS-I will leave to a short holiday now, don't expect answers to the=20 (eventual) thread. |