Skip to content

Instantly share code, notes, and snippets.

@jhidding
Last active May 7, 2019 20:40
Show Gist options
  • Save jhidding/c5cb6e78f24ec55f923ac2ec972bd9aa to your computer and use it in GitHub Desktop.
Save jhidding/c5cb6e78f24ec55f923ac2ec972bd9aa to your computer and use it in GitHub Desktop.
Flowery patterns using polar plots in Gnuplot
# Create nice flower patterns in Gnuplot
set term svg
set output "flower.svg"
unset border
unset raxis
unset tics
unset key
set parametric
set polar
set trange [0:2*pi]
set samples 1000
set size square
plot t+0.1*sin(30*t)**2, sin(10*t) + 0.2*cos(11*t) w filledcurves, \
t+0.1*sin(30*t+10)**2, 0.8*sin(10*t+5) + 0.2*cos(11*t) w filledcurves lc '#55ff0055'
# Do play around with the numbers!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment