Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Golden Ratio Superellipse by Gnuplot
set border lw 0.1
set samples 1000
set title "x^2.8 + (y/1.6)^2.8 = 1"
n = 2.8
h = 1.6
unset key
set size ratio h
set xr[0:1.0]
set yr[0:h]
plot 1.6 * (1 - abs(x)**n)**(1.0/n) lw 2 lc rgb "black"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment