lib/matplotlib/pyplot.rb in matplotlib-0.1.0.alpha.20170419a vs lib/matplotlib/pyplot.rb in matplotlib-0.1.0.alpha.20170426

- old
+ new

@@ -16,9 +16,13 @@ class << self def __pyobj__ @pyplot end + def xkcd(scale: 1, length: 100, randomness: 2, &block) + PyCall.with(super.(scale: scale, length: length, randomness: randomness), &block) + end + def method_missing(name, *args, **kwargs) return super unless PyCall.hasattr?(@pyplot, name) PyCall.getattr(@pyplot, name) end end