[Therion] Hiding small objects at large scales

Bruce dangle at tomo.co.nz
Sun Feb 7 11:29:50 CET 2010


     % label with minimum text height condition
     vardef p_label@#(expr txt,pos,rot,mode) =
       if abs(llcorner txt - ulcorner txt) > 5pt:
         p_label_orig@#(txt,pos,rot,mode)
       fi;
     enddef;

Thomas
The above does not seem to work.  It seems likely to me that the third to
last line is missing a ; although adding it does not seem to help that much.

The definition p_label_orig does not seem familiar to me.  The data.mp file
produced by Therion does not contain one of that name, only a p_label.
In the above code I changed p_label_orig to p_label (assuming recursive
definitions might be OK), but I get an error,
>> p_label_orig.lft
! Isolated expression.

culminating in "can't open file" and no pdf output.


The differences between what you posted and what I have been using are...

code metapost
  fonts_setup(6,8,10,12,16)

instead of...
     % set xs and s to 1pt
     verbatimtex
       \def\thsmallsize{\size[1]}
       \def\thtinysize{\size[1]}
     etex

(first trials are to get it to work when its not hiding any text)

I did not define my own p_label_orig (because I assumed the default must
already be defined somewhere).  If I do define as per your entire example I
get different, and perhaps less serious errors, "can't open file" and still
no output...

[20] [21] [22] [23] [24] [25] (./mptextmp.mp) (./mptextmp.mp)
(./mptextmp.mp)
(./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) (./mptextmp.mp) [26]

(Actually these probably are not errors, when I remove this metapost code
altogether, they are still logged, and I get a perfect output.)

If I run therion in debug mode I get an output with most of the text
removed.  I'm not sure that it is producing all of the text that should be
plotted however.  Therion does give a warning condition on exit, and the
cavern log file has a red hyperlink suggesting an error has occurred (10> in
the following list)

8>  127 numeric registers used out of 32768
 9> 
10> [1] ) 
11> Here is how much of TeX's memory you used:
12>  314 strings out of 95622
13>  3125 string characters out of 1...

So, the best I can get is a truncated pdf output if I run Therion in debug
mode, regardless of whether any text should be hidden or not. (Actually my
data contains wall altitude points - perhaps these are always smaller than 6
points?)

Any ideas?
Bruce
(sorry for the long rambling post)





More information about the Therion mailing list