gnuplot で
In [1]:
%gnuplot inline svg size 600,600 font "Times, 18"
In [2]:
reset
set key top left
set xrange [-pi:pi]
set yrange [-pi:pi]
set size square
set zeroaxis
set grid
# 次に拡大表示する部分を矩形で囲む
set object 1 rect from -1, -1 to 1, 1 fs empty border 4 lw 2
plot sin(x) lw 3 lc "red", x lw 1.5 lc "blue"
In [3]:
reset
set key top left
set xrange [-1:1]
set yrange [-1:1]
set size square
set zeroaxis
set grid
# 次に拡大表示する部分を矩形で囲む
set object 1 rect from -0.1, -0.1 to 0.1, 0.1 fs empty border 4 lw 2
plot sin(x) lw 3 lc "red", x lw 1.5 lc "blue"
In [4]:
reset
set key top left
set xrange [-0.1:0.1]
set yrange [-0.1:0.1]
set size square
set zeroaxis
set grid
plot sin(x) lw 3 lc "red", x lw 1.5 lc "blue"