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
Attachments:
http://www.ruby-forum.com/attachment/4490/line_test.png
···
--
Posted via http://www.ruby-forum.com/.
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
···
--
Posted via http://www.ruby-forum.com/.
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
--
Posted via http://www.ruby-forum.com/.
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 Stahl | Sr. Quality Engineer | hi5 Networks, Inc. | astahl@hi5.com
On Thu, 2010-12-09 at 00:54 -0600, Matt Powell wrote:
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