topfunky / gruff

Gruff graphing library for Ruby
http://gruff.rubyforge.org
MIT License
1.37k stars 237 forks source link

Improve joints in Gruff::Line using polyline method #607

Closed Watson1978 closed 2 years ago

Watson1978 commented 2 years ago

Fix https://github.com/topfunky/gruff/issues/83

Before After

Test code

require File.expand_path('~/prj/gruff/lib/gruff')

g = Gruff::Line.new
g.data "", [0, 1000, 0, 1000, 0], '#f00'
g.hide_dots = true
g.line_width = 10

g.write("line.png")