In Files

Parent

Methods

Files

Gnuplot::Instance

Public Class Methods

open( persist = true, mode = "w" ) click to toggle source

(Not documented)

# File gnuplot.rb, line 399
    def self.open( persist = true, mode = "w" )
      cmd = Gnuplot.which( ENV['RB_GNUPLOT'] || 'gnuplot' ) or raise 'gnuplot not found'
      STDERR.puts "Found " + cmd + "\n"
      cmd += " --persist" if persist
      io = self.popen( cmd, mode)
      if block_given?
         yield io
         io.close
      end
      io
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.