I plot the internal data of a class to help me debug. I use gruff to create the graphs.
The data is all similar but large values. I want to plot only the meaning full part of my data. The data should fall within a range of 9690 to 10190. To see the differences I want limit the Y plot area to the expected range.
This is my code:
def graph
g = Gruff::Line.new
g.title = "#{self.class}"
@data.each_with_index do | data, index |
g.data(index.to_s, data)
end
### Something here
g.write("#{self.class}.png")
end
So what should I replace Something here
with?