Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 14 Nov 2002.
Re: ASCII-Art function plotting, advice needed...

Re: ASCII-Art function plotting, advice needed...

On 14 Nov 2002 Harry Mason wrote:
[...]
> The problem I see with this is large gradients. For sin(x) it is quite
> possible to create a smooth curve in ascii, but if you were drawing a few
> more periods it would soon stop looking like sin(x) at all.
[...]
> You might want to talk to Markus Gebhard; he wrote a function plotter for
> JavE (http://www.jave.de/). The code isn't available, but you could ask his
> advice.

Markus' plotter is quiet good. I assume he uses his "generic line" code to
convert the function to an ascii line. That would be the same code as for
the free-hand drawing tool. 

Just two examples (sine functions) :


                                   |
                                   |
                                   |              ___
                                   |          _.-'   `'-.
                                   |        ,'           `.
                                   |      ,'               `.
                                   |     /                   `.
                                   |   ,'                      \
                                   |  /                         `.
                                   | /                            \
`                                  ,'                              \
'`.''''''''''''''''''''''''''''''','''''''''''''''''''''''''''''''''`.
   \                             / |
    \                           /  |
     `.                       ,'   |
       \                     /     |
        `.                 ,'      |
          `.             ,'        |
            `.        _,'          |
              `--...-'             |
                                   |
                                   |
                                   |
                                   |
  


                                   |
                                   |
     /\      /.              b     |.\      /\      /.              b
     /|      ||     | |     ||     |||      /|      ||     | |     ||
     ||     | |     | |     | |    |||      ||     | |     | |     | |
    | |     | |     | |     | |    || |    | |     | |     | |     | |
    |  |    | |     | |     | |    |  |    |  |    | |     | |     | |
    |  |    |  |    | |    .' |    |  |    |  |    |  |    | |    .' |
    |  |    |  |    | '.   |  |    |  |    |  |    |  |    | '.   |  |
    |  |    |  |   |   |   |  |    |  |    |  |    |  |   |   |   |
    |  |   .'  |   |   |   |   |   |  |    |  |   .'  |   |   |   |
    |  |   |   |   |   |   |   |   |  |    |  |   |   |   |   |   |
'''|'''|'''|'''|'''|'''|'''|'''|'''|'''|''|'''|'''|'''|'''|'''|'''|'''
|  |    |  |   |   |   |   |   |  .'   |  |    |  |   |   |   |   |
|  |    |  |   |   |   |   |   |  ||   |  |    |  |   |   |   |   |
|  |    |  |    |  |   |  |    |  ||   |  |    |  |    |  |   |  |
|  |    |  |    |  |    | |    |  ||   |  |    |  |    |  |    | |
|  |    |  |    | |     | |    |  ||   |  |    |  |    | |     | |
|  |    | |     | |     | |     | ||   |  |    | |     | |     | |
 ||     | |     | |     | |     | ||    ||     | |     | |     | |
 ||      ||     | |     | |     || |    ||      ||     | |     | |
 ||      |/      L|     '/      || |    ||      |/      L|     '/
                 '       '         |                    '       '
                                   |
                                   |
                                   |


Of course the second is difficult to recognise as sin(...) but I think it is
good enough. I actually had to use the Ascii terminal of Gnuplot for a while
because my graphics card was broken and I had to get some results quickly.
That terminal just used XXX for drawing and one has guess the result mostly.
It is a pity that his code is not to be integrated into Gnuplot. I am a big
fan of Gnuplot and would use an Ascii output like above just for fun.

:)
Andreas

-- 
________________________________________________ http://www.ascii-art.de

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,8ae611e029f9880b
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2002-11-14 05:16:03 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-ham1.dfn.de!newsserver.rrzn.uni-hannover.de!adfpc.amp.uni-hannover.de!nobody
From: Andreas Freise <ad...@mpq.mpg.de>
Newsgroups: alt.ascii-art
Subject: Re: ASCII-Art function plotting, advice needed...
Date: Thu, 14 Nov 2002 13:56:30 +0100
Organization: Universitaet Hannover
Lines: 84
Message-ID: <uh6...@adfpc.amp.uni-hannover.de>
References: <slr...@jupp.8m.com> <slr...@orbital.ecs.soton.ac.uk>
NNTP-Posting-Host: 130.75.234.141
X-Trace: newsserver.rrzn.uni-hannover.de 1037278634 3154 130.75.234.141 (14 Nov 2002 12:57:14 GMT)
X-Complaints-To: abu...@newsserver.rrzn.uni-hannover.de
NNTP-Posting-Date: 14 Nov 2002 12:57:14 GMT
X-Face: %XhMERdBemohx4TB/zw0f`1Y%d}y10tjY4RjzCc&DWou4VZc;7iz#f3F8a-V|hA9Ief>mYBeoVep0^f#tV{;TrhZPPKPLwl^F&mypu*u0*YcWt0P}%kYb~C..+}_[2!%&THVkvA8c0:"~[\*~0O*$\1zDa5eIlG
User-Agent: slrn/0.9.7.4 (Linux)
Xref: archiver1.google.com alt.ascii-art:20660
About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2002 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post