alexd
February 16, 2010, 10:55pm
1
I’m running the Scruffy example for a line graph from
http://scruffy.rubyforge.org/ . My code is
require ‘scruffy’
graph = Scruffy::Graph.new
graph.title = “Sample Line Graph”
graph.renderer = Scruffy::Renderers::Standard.new
graph.add :line, 'Example', [20, 100, 70, 30, 106]
graph.render :to => "line_test.svg"
graph.render :width => 300, :height => 200,
:to => "line_test.png", :as => 'png'
The output is severely cropped, showing only an incomplete graph (see
attached .png file).
I’ve played with the :width and :height parameters, but just make things
worse. Can someone shed some light on this?
Thanks,
–Alex DeCaria
alexd
December 9, 2010, 7:54am
2
Hi Alex,
Did you ever get to the bottom of this? I’m getting the exact same
behaviour.
I’m on Mac OSX.
Perhaps it’s an ImageMagick version type issue?
//matt
alexd
December 9, 2010, 8:22am
3
Just a check here… am I the Alex you’re addressing? I do recall being
on a Scruffy Graph thread a while back, but don’t recall any specifics.
If I’m the wrong Alex, feel free to disregard. Otherwise, refresh my
memory on the issue? (I’m a list subscriber and so not reading a
threaded version on the website and have no reference to the origin).
Alex S. | Sr. Quality Engineer | hi5 Networks, Inc. | [email protected]
|
alexd
December 9, 2010, 8:56am
4
Don’t think so, but thanks for the quick reply! Here’s the original
post:
I’m running the Scruffy example for a line graph from
http://scruffy.rubyforge.org/ . My code is
require ‘scruffy’
graph = Scruffy::Graph.new
graph.title = “Sample Line Graph”
graph.renderer = Scruffy::Renderers::Standard.new
graph.add :line, 'Example', [20, 100, 70, 30, 106]
graph.render :to => "line_test.svg"
graph.render :width => 300, :height => 200,
:to => "line_test.png", :as => 'png'
The output is severely cropped, showing only an incomplete graph (see
attached .png file).
I’ve played with the :width and :height parameters, but just make things
worse. Can someone shed some light on this?
Thanks,
–Alex DeCaria
alexd
June 1, 2011, 5:33pm
5