some ploty functions'
'
This commit is contained in:
parent
7a010d0500
commit
4030bb9ce4
1 changed files with 4 additions and 0 deletions
4
.zshrc
4
.zshrc
|
@ -9,6 +9,10 @@
|
|||
#[status]
|
||||
# showUntrackedFiles = no
|
||||
|
||||
plot() { cat /dev/stdin > /tmp/plotuwu; gnuplot -p -e 'set object rectangle from screen 0,0 to screen 1,1 behind fillcolor rgb "black" fillstyle solid noborder; set border lw 3 lc rgb "white"; set xtics textcolor rgb "white"; set xlabel "X" textcolor rgb "white"; set ylabel "Y" textcolor rgb "white"; set key textcolor rgb "white"; plot for [col=1:'$1'] "/tmp/plotuwu" using 0:col title "'$3'" with '$2' lw 2 pt 7' ; }
|
||||
smoothplot() { cat /dev/stdin > /tmp/plotuwu; gnuplot -p -e 'set object rectangle from screen 0,0 to screen 1,1 behind fillcolor rgb "black" fillstyle solid noborder; set border lw 3 lc rgb "white"; set xtics textcolor rgb "white"; set xlabel "X" textcolor rgb "white"; set ylabel "Y" textcolor rgb "white"; set key textcolor rgb "white"; plot for [col=1:'$1'] "/tmp/plotuwu" using 0:col smooth cspline title "'$3'" with '$2' lw 2 pt 7' ; }
|
||||
|
||||
calcpi() { echo "scale=$1; 4*a(1)" | bc -l ; }
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue