lib/gnuplotrb/external_classes/daru.rb
##
# Convert DataFrame to Gnuplot format.
#
# @return [String] data converted to Gnuplot format
Convert DataFrame to Gnuplot format.
Convert DataFrame to Gnuplot format .
def to_gnuplot_points
        result = ''
        each_row_with_index do |row, index|
          quoted = (index.is_a?(String) || index.is_a?(Symbol)) && index.length > 0
          result += quoted ? "\"#{index}\" " : "#{index} "
          result += row.to_a.join(' ')
          result += "\n"
        end
        result
      end
def to_gnuplot_points result = '' each_row_with_index do | row , index | quoted = ( index . is_a? ( String ) || index . is_a? ( Symbol ) ) && index . length > 0 result += quoted ? "\"#{index}\" " : "#{index} " result += row . to_a . join ( ' ' ) result += "\n" end result end
Convert DataFrame to Gnuplot format.
Convert DataFrame to Gnuplot format .
data converted to Gnuplot format
data converted to Gnuplot format
String