examples/sum_benchmarking.rb in pycall-0.1.0.alpha.20170224 vs examples/sum_benchmarking.rb in pycall-0.1.0.alpha.20170226

- old
+ new

@@ -1,9 +1,14 @@ require 'pycall/import' include PyCall::Import require 'benchmark' pyimport :pandas, as: :pd + +# FIXME: MacOSX backend is not usable through pycall. I want to fix this issue but the reason is unclear. +pyimport 'matplotlib', as: :mp +mp.rcParams[:backend] = 'TkAgg' if mp.rcParams[:backend] == 'MacOSX' + pyimport :seaborn, as: :sns pyimport 'matplotlib.pyplot', as: :plt array = Array.new(100_000) { rand }