Skip to content

Instantly share code, notes, and snippets.

@arafatkatze
Last active August 20, 2018 04:10
Show Gist options
  • Save arafatkatze/28a77a1711f3f020f6340a62797b17ac to your computer and use it in GitHub Desktop.
Save arafatkatze/28a77a1711f3f020f6340a62797b17ac to your computer and use it in GitHub Desktop.
g = Rubyplot::Figure.new
@x1 = [7, 3, 3, 5.6, 5.6, 7, 7, 9, 9, 8]
@y1 = [10, 10, 4, 4, 5.4, 5.4, 4, 4, 6, 6]
g.line! @x1, @y1, line_width: 4, line_color: :green
@x2 = [11, 11, 15, 15, 11.3, 15]
@y2 = [4, 10, 10, 7, 7, 4]
g.line! @x2, @y2, line_width: 5, line_color: :stormy_blue
g.view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment