Sha256: d740cb7cab3782dd813709e1b975f36ba2d164e2dcf4216db6bbf8ecc35e5dc8

Contents?: true

Size: 294 Bytes

Versions: 4

Compression:

Stored size: 294 Bytes

Contents

require 'matplotlib'

module Matplotlib
  Pyplot = PyCall.import_module('matplotlib.pyplot')
  module Pyplot
    def self.xkcd(scale: 1, length: 100, randomness: 2, &block)
      ctx = super(scale: scale, length: length, randomness: randomness)
      PyCall.with(ctx, &block)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
matplotlib-1.3.0 lib/matplotlib/pyplot.rb
matplotlib-1.2.0 lib/matplotlib/pyplot.rb
matplotlib-1.1.0 lib/matplotlib/pyplot.rb
matplotlib-1.0.0 lib/matplotlib/pyplot.rb