Why yes it does, thanks. It also works with boxes instead of complex
values. I didn't know that a sequence of pds changes the color.
Henry Rich
On 4/15/2021 7:08 PM, Devon McCormick wrote:
Does this do what you want?
pd 'reset'
pd 'type point;pensize 3'
pd 0 1 2 j. 3 4 5
pd 0 1 2 3 j. 4 5 6 7
pd 'show'
On Thu, Apr 15, 2021 at 6:28 PM Henry Rich <[email protected]> wrote:
I have an array A of boxes, shape (N,2).
Each row of A is 2 boxes. The first box is x coordinates, the second is
y coordinates.
I want to plot the points in a point plot, with each row's points having
a different color. The ROWS do not have the same numbers of points.
I want to avoid a loop that would require me to specify the color of
each point set.
Example:
+-------+-------+
|0 1 2 |3 4 5 | (0,3), (1,4),(2,5) in (say) blue
+-------+-------+
|0 1 2 3|4 5 6 7| (0,4),(1,5),(2,6),(3,7) in (say) red
+-------+-------+
Can I do this?
Henry Rich
--
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
--
This email has been checked for viruses by AVG.
https://www.avg.com
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm