ascii文字でcontourを描く

gnuplotでcontourを描いてみる。

$ gnuplot

	G N U P L O T
	Version 4.4 patchlevel 3
	last modified March 2011
	System: Linux 3.3.2-6.fc16.i686

	Copyright (C) 1986-1993, 1998, 2004, 2007-2010
	Thomas Williams, Colin Kelley and many others

	gnuplot home:     http://www.gnuplot.info
	faq, bugs, etc:   type "help seeking-assistance"
	immediate help:   type "help"
	plot window:      hit 'h'

Terminal type set to 'wxt'
gnuplot> set contour
gnuplot> splot x*x+y*y


ascii文字でcontourを描く。

gnuplot> set term dumb
Terminal type set to 'dumb'
Options are 'feed  size 79, 24'
gnuplot> splot x*x+y*y





                              ****                   x*x+y*y ******
                             ** |****                    200 ######
                           ******** *****                150 $$$$$**
                         ****   **** ** ******           100*******|
      200 ***         *****  ***|  ***** **  *******      50******@|
      160  |************* ***** *****  ********  **  ***********   |
      120  |+ ***************************  ** ****************     |
       60  |+     **************+******  *******************       |
       20  |+         **********************************           |
        0  |+         %%%%%************************%%%%%%-----     |
           |      -%%%++  @@@@                | @@@@@   %%%%-$$$-- 10
           | --$-- %%    @@                   |    @@@----%%  5$
      -10  +---$$$--%%%%%-@@@@@@@@@@--     @@@@@@@@---%% 0%
                -5        0%%%%%%%%%%%%%%%%%%%%%%%%-5%
                                   5  +  $$$$$-10$
                                          10




gnuplot> unset surface
gnuplot> set view 0,0
gnuplot> set key outside
gnuplot> splot x*x+y*y





                                                  x*x+y*y
                                                      200 ######
                +----$---------------------$----+ 10  150 $$$$$$
                |$$$$$ %%%%%%%%%%%%%%%%%%% $$$$$+     100 %%%%%%
                $$  %%%    @@@@@@@@@@@    %%%  $$      50 @@@@@@
                |+%%   @@@@           @@@@   %%++ 5
                |%    @@                 @@    %|
                %+   @                     @   +% 0
                |%    @@                 @@    %|
                |+%%   @@@@           @@@@   %%++-5
                $$  %%%    @@@@@@@@@@@    %%%  $$
                |$$$$$ %%%%%%%%%%%%%%%%%%% $$$$$+
             0  ++---$--+-------+-------+--$---++-10
               -10     -5       0       5       10






gnuplot> set size 1,1.6
gnuplot> set origin 0,-0.35
gnuplot> splot x*x+y*y

                                                      200 ######
                                                      150 $$$$$$
                                                      100 %%%%%%
                                                       50 @@@@@@

                +---$$-----%%%%%%%%%%%-----$$---+ 10
                | $$$  %%%%%    +    %%%%%  $$$ +
                $$   %%%                 %%%   $$
                $  %%%    @@@@@@@@@@@@@    %%%  $
                |+%%    @@@           @@@    %%++ 5
                |%%    @@               @@    %%|
                |%    @                   @    %|
                %    @                     @    %
                %+   @                     @   +% 0
                %    @                     @    %
                |%    @                   @    %|
                |%%    @@               @@    %%|
                |+%%    @@@           @@@    %%++-5
                $  %%%    @@@@@@@@@@@@@    %%%  $
                $$   %%%                 %%%   $$
                | $$$  %%%%%    +    %%%%%  $$$ +
             0  ++--$$--+--%%%%%%%%%%%--+--$$--++-10
               -10     -5       0       5       10

gnuplot> 

参照したURL:
等高線図を描く
http://graph.pc-physics.com/contourline1.html
http://www.math.sci.osaka-u.ac.jp/~ohyama/frame/kougi/it/05.html
http://t16web.lanl.gov/Kawano/gnuplot/legend.html
gnuplot demo script: contours.dem
http://www.gnuplot.info/demo/contours.html
Tips 'n' Tricks Gnuplot
http://www.zoology.ubc.ca/~rikblok/TipsnTricks/gnuplot.html
 |  ̄ ̄ヽ
 |__T_i_
 | ━  ━|   
 | ` U ´ |        
 |  ‐三‐.l   
 |.`ヽ -    
 | ノ
彡)