in reply to Re^2: Matrix kind of graph
in thread Matrix kind of graph

So it sounds you either want a 3D plot, or a density plot/heat map where the z value is encoded in the color.

I have done neither with Perl so far, but these key words should give you an idea what to search for. A quick search showed up tridens, which might do what you want.