Plot is a great package. And it solves 90% of needes
out of the box. Though I have tired a seemingly trivial
specific real-world example and it isn't easy to see
how to do it right.

I need a density plot with custom axis labels
and ability to mark certain cells with short text.

 * When I make a density plot with small number of cells
   it shows that the X axis marks are off: they mark the
   boundaries, whereas I need to mark the cells:

     'density' plot +/~i.5

   whereas I need like this:

     'bar,density' plot +/~i.5   NB. looks like a hack

   Is it the official way to get the axis labels against cells?

 * Also while it shows the X axis correctly, the problem is
   with the Y axis, it remains off by one cell.

 * Next, I need custom labels, like xlabel, but to be able to
   spread automatically, like continuous labels do: 0 .. 5 .. 10,
   not 1 2 3 4 5 6 7 8 9 10. The solution is calculate the spread
   with the same 'bar,density' pair:

     'bar,density;xlabel 3 8 13 18 23 28' plot +/~i.30

   Is there a better way?

 * I need to place some kind of marker, like number of short text,
   or symbol inside some selective cells, which I can do manually
   for specific plot. 'text' could be used, but how to make sure
   that it always lands on the correct cell in the data space.

     'bar,density;text 130 200 A' plot (10+0.2*i.5);+/~i.5

    How to make sure that the text stays in the cell and not
    move around with resizing.

    I guess it would involve a function that takes data space
    coords, like (0,0) for bottom left cell and string 'A' and
    will calculate the plot coordinates dynamically.

    Or maybe I could superimpose a marker XY-plot on top of
    the density plot?


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to