Last active
December 31, 2016 14:45
-
-
Save masa16/028e4f5a11cef4310f1fb62da9d6b5f2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

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