About the Y axis values on the graph: they "eat up" too
much screen space!
Could you print only the integer part of the numbers? Or
use a small font. Or both :)
The font used for the graph is the stdFont i.e. the smallest
font available by default on the Palm. You can use "Small
Standard Font v1.0" to have a smaller stdFont.
I can change the number of decimal for the label to be the
one in preference or I can move the label somewhere else.
What do you think about that ?
If you have an idea let me know
Remi
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
>The font used for the graph is the stdFont i.e. the smallest
>font available by default on the Palm. You can use "Small
>Standard Font v1.0" to have a smaller stdFont.
>I can change the number of decimal for the label to be the
>one in preference or I can move the label somewhere else.
>What do you think about that ?
>If you have an idea let me know
I think the values on the Y axis should not mark the exact
values but rather the "fence-posts". i.e. marking 11, 12, 13,
14, 15, 16 instead of 11.92, 13.86, 15.84. This way you'd
save two digit's space (plus the decimal point).
The fence-post marks are integer values in sequence starting
at or just below the minimum value and up to or just above
the maximum value.
Another way, [that could be merged with the above] is to
load a bitmap resource outside the visible screen. This b/w
bitmap should contain all digits [0123456789] drawn with a
smaller font. Then instead of using labels you might just clip a
rectangle from this bitmap for every digit you need to display
and blit it into the right position.
hth
Claudiu
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Here are two small fonts [digits only] (uuencoded - I'm not
allowed to upload files on this thread). At the end it's a simple
perl script to decode uuencoded ascii back to bitmap (you
need the Convert-UU perl module from CPAN.org).
cut'n'paste the uuencoded text and save each one to a file
(say f1.uue and f2.uue)
the same for the perl script say in uudecode.pl
now you should have small font digits for low and high
resolution.
hth
Claudiu
--- cut here ---
begin 0666 font2.bmp
M0DV&`````````#X````H````+`````D````!
``$``````$@```#$#@``Q`X`
M`````````````````/___P#_______```-Z-
Z=W;L```KKKNK:WP``"NWHZM
LKO```*[=J9W<\```KNZKOJKP``"LJJO>JO```-
[=N.C=\```_______P````
`
end
--- cut here ---
--- cut here ---
begin 0666 font1.bmp
M0DT6`0```````#X````H````5P```!(````!``$``````-
@```#$#@``Q`X`
M`````````````````/___P#______________@#___________
___@#AX<#A
M_.'A\^'CS@#`X<#`_,#`\\#AS@#,\\?,_,S,\\SY_@#,\^?
\_/S,\\SX_@#,
M\^/\P/S,\\S\_@#,\_/
\P/S,^<S@_@#,\_'\S/S,^<S`_@#,\_GPY,#`^<#,
M_@#,\_CQY,'!
^>',_@#,\_S\\,_/_,S,_@#,\_S\\,_'_,S,_@#,X\S,^,_G
M_,S,_@#`X\#`^,#AP,#`_@#A\^'A_,#QP.'A_@#__________
____@#_____
(_________@``
`
end
--- cut here ---
--- cut here ---
#!/usr/bin/perl
use strict;
use Convert::UU 'uudecode';
die "Usage: $0 encfile outfile\n" unless @ARGV==2;
open F, $ARGV[0] or die "Couldn't open $ARGV[0]: $!";
my($uudecoded_string,$file,$mode) = uudecode(\*F);
open F, ">$ARGV[1]" or die "Can't open >$ARGV[1]: $!";
binmode(F);
print F $uudecoded_string;
close F;
chmod oct($mode), $ARGV[1];
--- cut here ---
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm not able to decode the file.
I have a "line too short"
Can you send it to me as tgz or zip file at
papaDocYoupidoo@videotron.ca
Before the @ you should have only my sourceforge username!!
So remove every else.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=145206
Hi Claudiu,
The font used for the graph is the stdFont i.e. the smallest
font available by default on the Palm. You can use "Small
Standard Font v1.0" to have a smaller stdFont.
I can change the number of decimal for the label to be the
one in preference or I can move the label somewhere else.
What do you think about that ?
If you have an idea let me know
Remi
Logged In: NO
>The font used for the graph is the stdFont i.e. the smallest
>font available by default on the Palm. You can use "Small
>Standard Font v1.0" to have a smaller stdFont.
>I can change the number of decimal for the label to be the
>one in preference or I can move the label somewhere else.
>What do you think about that ?
>If you have an idea let me know
I think the values on the Y axis should not mark the exact
values but rather the "fence-posts". i.e. marking 11, 12, 13,
14, 15, 16 instead of 11.92, 13.86, 15.84. This way you'd
save two digit's space (plus the decimal point).
The fence-post marks are integer values in sequence starting
at or just below the minimum value and up to or just above
the maximum value.
Another way, [that could be merged with the above] is to
load a bitmap resource outside the visible screen. This b/w
bitmap should contain all digits [0123456789] drawn with a
smaller font. Then instead of using labels you might just clip a
rectangle from this bitmap for every digit you need to display
and blit it into the right position.
hth
Claudiu
Logged In: YES
user_id=145206
Hi Claudiu,
The bitmap approach is interesting.
But I'm not good ad drawing font.
Do you want to do it ?
The principle of having fence-post instead if min and max
value is you loose the only way of finding the max and min
value for the efficiency.
Remi
Logged In: NO
Hi Remy,
Here are two small fonts [digits only] (uuencoded - I'm not
allowed to upload files on this thread). At the end it's a simple
perl script to decode uuencoded ascii back to bitmap (you
need the Convert-UU perl module from CPAN.org).
cut'n'paste the uuencoded text and save each one to a file
(say f1.uue and f2.uue)
the same for the perl script say in uudecode.pl
then invoke perl
perl uudecode.pl f1.uue font1.bmp
perl uudecode.pl f2.uue font2.bmp
now you should have small font digits for low and high
resolution.
hth
Claudiu
--- cut here ---
begin 0666 font2.bmp
M0DV&`````````#X````H````+`````D````!
``$``````$@```#$#@``Q`X`
M`````````````````/___P#_______```-Z-
Z=W;L```KKKNK:WP``"NWHZM
LKO```*[=J9W<\```KNZKOJKP``"LJJO>JO```-
[=N.C=\```_______P````
`
end
--- cut here ---
--- cut here ---
begin 0666 font1.bmp
M0DT6`0```````#X````H````5P```!(````!``$``````-
@```#$#@``Q`X`
M`````````````````/___P#______________@#___________
___@#AX<#A
M_.'A\^'CS@#`X<#`_,#`\\#AS@#,\\?,_,S,\\SY_@#,\^?
\_/S,\\SX_@#,
M\^/\P/S,\\S\_@#,\_/
\P/S,^<S@_@#,\_'\S/S,^<S`_@#,\_GPY,#`^<#,
M_@#,\_CQY,'!
^>',_@#,\_S\\,_/_,S,_@#,\_S\\,_'_,S,_@#,X\S,^,_G
M_,S,_@#`X\#`^,#AP,#`_@#A\^'A_,#QP.'A_@#__________
____@#_____
(_________@``
`
end
--- cut here ---
--- cut here ---
#!/usr/bin/perl
use strict;
use Convert::UU 'uudecode';
die "Usage: $0 encfile outfile\n" unless @ARGV==2;
open F, $ARGV[0] or die "Couldn't open $ARGV[0]: $!";
my($uudecoded_string,$file,$mode) = uudecode(\*F);
open F, ">$ARGV[1]" or die "Can't open >$ARGV[1]: $!";
binmode(F);
print F $uudecoded_string;
close F;
chmod oct($mode), $ARGV[1];
--- cut here ---
Logged In: YES
user_id=145206
Hi Claudiu,
I'm not able to decode the file.
I have a "line too short"
Can you send it to me as tgz or zip file at
papaDocYoupidoo@videotron.ca
Before the @ you should have only my sourceforge username!!
So remove every else.