Skip to content

Instantly share code, notes, and snippets.

@kaz-utashiro
Last active December 29, 2015 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaz-utashiro/7651536 to your computer and use it in GitHub Desktop.
Save kaz-utashiro/7651536 to your computer and use it in GitHub Desktop.
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