Sha256: 46e9e8e1a7801709a5ce83d6953ca045f003036de0c03d05b470da0e7d5e3e44
Contents?: true
Size: 486 Bytes
Versions: 18
Compression:
Stored size: 486 Bytes
Contents
- filename = 'R-png_' << rand(10000).to_s unless defined? filename and filename - text = filename unless defined? text and text - width = 500 unless defined? width and width - height = 500 unless defined? height and height - plot = block.call unless (defined? plot and plot) or not defined? block - filename += '.png' unless filename =~ /\.png$/i = resource filename, text, :image do |filename| - data.R "rbbt.png_plot('#{filename}', '#{plot}', width=#{width}, height=#{height})"
Version data entries
18 entries across 18 versions & 1 rubygems