Skip to content

Instantly share code, notes, and snippets.

@mrkn

mrkn/pyplot.rb

Created Feb 18, 2017
Embed
What would you like to do?
require 'pycall/import'
include PyCall::Import
pyimport 'matplotlib.pyplot', as: 'plt'
plt[:plot].([1, 2, 3, 4, 5], 5.times.map { rand })
plt[:show].()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.