Skip to content

Instantly share code, notes, and snippets.

@masa16
Last active December 31, 2016 14:45
Show Gist options
  • Save masa16/028e4f5a11cef4310f1fb62da9d6b5f2 to your computer and use it in GitHub Desktop.
Save masa16/028e4f5a11cef4310f1fb62da9d6b5f2 to your computer and use it in GitHub Desktop.
# -*- coding: utf-8 -*-
# Mt. Tsukuba drawn using Ruby/Numo::Gnuplot
require "numo/gnuplot"
Numo.gnuplot do
set term: ["png", size:[700,350]]
set output: "mt_tsukuba.png"
set size: {ratio:-1}
set xrange: -2000..3000
set yrange: 0..1600
set title:["謹賀新年 2017", font:"/usr/share/fonts/ipa-pmincho/ipamp.ttf,20"]
set object:[1, circle: {at:[2150,750], size:250, fc:{rgb:"red"}, fs:{solid:1}}]
plot "(1-abs(1-exp(-((x/877)**2)/2)/0.9))*877", with:{filledcurve:"x1", lc:{rgb:"dark-green"}}
end
@masa16
Copy link
Author

masa16 commented Dec 31, 2016

Ruby/Numo::Gnuplot で描く 筑波山と日の出。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment