bengreen.eu Circle Device

 

Quick Reference

Plot a Heart in GNUplot

Some fun... plot a heart in GNUplot.

set parametric
set trange [-1.0:1.0]
set yrange [-0.1:0.75]
set xrange [-0.4:0.4]
set size square
set samples 10000
set style line 1 lt 1 lw 3 linecolor rgb "#ffcc0000"
unset ytics
unset xtics
set key off
fx(t)=log(abs(t))*sin(t)*(cos(t))
fy(t)=sqrt(abs(t))*cos(t)
plot fx(t),fy(t) ls 1
pause 10

References

Quick Links: Techie Stuff | General | Personal | Quick Reference