Hi there,

I am using the PLOT package.
When using the pd commands text, textc and textr, we have ... 
<quote>
Argument is x y text, where x y are coordinates relative to the current window.
</quote>
with x, y  element of [0 .. 1000] or pixels (using x suffix).

This is fine for some situations, but I would like to accurately place text 
using the problem space coordinates, in this case time (in years) for X and 
area (in square km) for Y.  For example I need to place text at position  
[2009, 92000].  I can use a series of trials to position the text, but then 
with new data providing a changed scale for either X or Y axis (or both) such 
action is not a sustainable option.
The commands Xticposn and Yticposn use problem space coordinates (the values to 
place ticks for the coordinate measured along the particular axis). 
I have trawled through the variables in locale jzplot looking for obvious 
transformations without success.  Is there such a transformation available?

I can see the usefulness in writing text using window co-ordinates, but there 
are other cases (eg labelling particular points on plotted lines) where problem 
space coordinates are necessary.

Additionally the transformation of current text size would also be useful. This 
would easily enable calculation of (say) a text font character box size being, 
say, 1.24 years x 7256 sq kms.

Thanks,

Ian
----------------------------------------------------------------------------------------------------------------------------------------------------------------------
This email is intended for the addressee(s) named and may contain confidential 
and/or privileged information. 
If you are not the intended recipient, please notify the sender and then delete 
it immediately.
Any views expressed in this email are those of the individual sender except 
where the sender expressly and with authority states them to be the views of 
the Office of Environment and Heritage, NSW Department of Premier and Cabinet.

PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to