The Goal:

A simple script, module or app that generates a list of plots and draws simple text representation of arbitrary curves; OR the acknowledgement that no such thing exists and I have to write it myself.

The Rationale:

The purpose is for a quick-and-dirty way to sketch curves and see what they look like in text before sending the plot points off to another program, without having to use any sophisticated packages like GD or the like. Since the functionality is very simple, the question is whether someone has already written something like this that has support for a wide variety of quick-and-simple family of curves, as well as a way to quickly sketch them out in text.

An Example:
### GetTrigCurve($iLength,$iAmplitude,$fFreq,$sType); my @aCurve = GetTrigCurve(30,48,100,'cos'); print GetPoints( [@aCurve] ) print DrawCurve( [@aCurve] ); __END__ 0,3,12,24,36,45,47,44,34,22,10,2,0,4,14,26,38,46,47,42,32,20,8,1,0,5,1 +6,28,40,46,47 ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ###

In reply to No-Frills Curve Sketches by dimar

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.