As Perlbotics implies, there is a fundamental disconnect between what you want to do and the way you are trying to do it. It simply does not make sense to try and display a vast amount of data on a small canvas. Perhaps you should tell us more about the nature of the data and how you want to view it so we can suggest better ways of handling the problem.

If you are plotting lots of lines then the following technique may work for you: divide the horizontal span into some number of columns (close to the number of x pixels you plan to plot). For each column generate a histogram count (with close to y pixels number of bins) of the number of lines that pass through each bin. Plot an intensity value for each bin that is a function of the bin count.


Perl reduces RSI - it saves typing

In reply to Re: Graph a file without using arrays by GrandFather
in thread Graph a file without using arrays by ITmajor

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.