search for: gnuplot_commands

Displaying 1 result from an estimated 1 matches for "gnuplot_commands".

2010 Apr 29
2
send_data => invalid byte sequence in US-ASCII
...running gnuplot through a pipe to generate a plot in .png format. (I''ve tested the code by writing its output to a file and displaying it -- it works.) My Report model receives the .png image as a string: class Report << ActiveRecord::Base def imagedata image = GnuPlot(@gnuplot_commands) end end My Controller uses send_data() to serve up a page: class ReportsController < ApplicationController def plot report = Report.find(params[:id]) send_data(report.imagedata, :type => ''image/gif'') end end [FWIW, without really understandi...