Thanks very much Chris. Plot_jwplot_ looks as if it will contain sufficient
information.
If I get it all working it could be a simple addon combined with a few
specialised statistical tools for handling and analysing the data.
Fraser
-----Original Message-----
From: chris burke
Sent: Tuesday, August 23, 2016 5:54 PM
To: Programming forum
Subject: Re: [Jprogramming] ternary plots in J
Unfortunately, the layout calculations are not exposed to the end user, so
there is no direct way to associate a pixel position with a data point.
There is a global "Plot" that has the results of the layout calculations,
and you may be able to get the relevant numbers from it, e.g. the following
shows the pixel positions for the plot line:
load'plot'
plot 2 3 5
$Plot_jwplot_
11 9
_2{Plot_jwplot_
┌─┬────┬──┬─┬─┬─┬───────┬─┬───────────────────────────┐
│1│line│28│1│0│0│0 0 255│0│37 36 248.5 135.333 460 334│
└─┴────┴──┴─┴─┴─┴───────┴─┴───────────────────────────┘
Perhaps Plot should support ternary graphs. If I were doing this myself, I
might draw the graphs without using Plot.
On 22 August 2016 at 21:29, Fraser Jackson <fraser.jack...@xtra.co.nz>
wrote:
I have constructed a large number of ternary plots in J, but have not been
able to find a way of labelling tic marks on the boundaries of the plot.
All of the defaults for grids and tics are inappropriate and eliminated
with pd 'frame 0;axes 0 0; grids 0 0;tics 0 0;labels 0 0;'. All has been
done within Jqt.
I think what I need to do is find a way of conveniently determining the
coordinates a specified point will map to in the graphbox Gxywh. and of
locating text relative to that point.
Using the capabilities of 'plot' may not be the best tool but has worked
well so far.
Any help would be appreciated.
Fraser
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm