Help/Studio/Lab/Plot Package
Help/Studio/Showcase/plot
testxxx=: 3 : 0 pd 'reset' ...... pd 'show' )
require 'plot numeric trig'
3 7 $ sin i:10 0.544021 _0.412118 _0.989358 _0.656987 0.279415 0.958924 0.756802 _0.14112 _0.909297 _0.841471 0 0.841471 0.909297 0.14112 _0.756802 _0.958924 _0.279415 0.656987 0.989358 0.412118 _0.544021
i. # Y/(0 1 2 3 ..)をとる
(i:10);sin i:10
,. (i:3);sin i:3 +--------------------------------------------------------+ |_3 _2 _1 0 1 2 3 |NB. xaxis +--------------------------------------------------------+ |_0.14112 _0.909297 _0.841471 0 0.841471 0.909297 0.14112|NB. plot data +--------------------------------------------------------+
'line,stick' plot sin steps _3 3 100(steps from _3 to 3 divide by 100)
'line,stick;key sin' plot _3 3 ;'sin'
_3 3 ; 'sin'と区間と関数を指定するだけで足りる。
user定義 関数も当然使える。
'marker' plot 3j6 2j3 _1j3 0j_3 0 1 2
plot_example=: 3 : 0 pd 'reset' NB. or new pd 'type line,stick' pd 'keypos open bottom' pd 'keystyle open horizontal' pd 'key sin cos' pd 'color blue' pd sin steps _3 3 100 pd 'y2axis' pd 'color green' pd cos steps _3 3 100 pd 'show'
DATX=: 4 20 $ sin i.100 plot_test0=: 3 : 0 pd 'reset' pd 'multi 2 3 ,2 2 ' pd 'title MultiPlot Test' pd y pd 'show' )