require 'daru/view' df = Daru::DataFrame.new( { a: [1, 2, 3, 4, 5, 6], b: [1, 5, 2, 5, 1, 0], c: [1, 6, 7, 2, 6, 0] }, index: 'a'..'f' ) plt = Daru::View::Plot.new(df, type: :line, x: :a, y: :c) plt.show_in_iruby Daru::View.plotting_library = :nyaplot plt2 = Daru::View::Plot.new(df, type: :line, x: :a, y: :b) plt2.show_in_iruby dv = Daru::Vector.new [1, 2, 3] plt3 = Daru::View::Plot.new(dv) plt3.show_in_iruby plt3 = Daru::View::Plot.new(dv, type: :line) plt3.show_in_iruby