: ) wonderful world ( :

the metasyntactic variable

give yourself a visual glance of your data

leave a comment »

You can use GnuPlot with ‘dumb’ terminal setting to just have a really quick look on the data you’re working with..

$ echo $0
-zsh
$ seq -1000 1000 | sed 's.$./1000.' | bc -l > x
$ sed 's/^/e(/' x | sed 's.$.).' | bc -l > y
$ paste x y > f
$ gnuplot <(echo "set term dumb; plot 'f' with dots")

    3 ++----------------+----------------+-----------------+---------------++
      +                 +                +                 +     'f'   .    +
      |                                                                    ..
  2.5 ++                                                                 ...+
      |                                                                ...  |
      |                                                             ....    |
      |                                                           ...       |
    2 ++                                                       ....        ++
      |                                                     ....            |
      |                                                  ....               |
  1.5 ++                                             .....                 ++
      |                                           ....                      |
      |                                      .....                          |
    1 ++                                ......                             ++
      |                           .......                                   |
      |                    ........                                         |
      |           ..........                                                |
  0.5 +............                                                        ++
      ..                                                                    |
      +                 +                +                 +                +
    0 ++----------------+----------------+-----------------+---------------++
     -1               -0.5               0                0.5               1

$

 

Advertisement

Written by grault

November 28, 2011 - 12:25 pm at November 28, 2011 - 12:25 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.