PDF::Writer:PDF::Charts::StdDev#dot, #dot=, #bar, #bar=, #upper_crossbar, #upper_crossbar=, #lower_crossbar, #lower_crossbar=
require 'pdf/charts/stddev' pdf = PDF::Writer.new chart = PDF::Charts::StdDev.new p chart.dot p chart.bar p chart.upper_crossbar p chart.lower_crossbar
で、
#<PDF::Charts::StdDev::Marker:0x40387c4c @color=#<Color::RGB:0x402688ac @b=0.0, @g=0.0, @r=0.0>, @style=#<PDF::Writer::StrokeStyle:0x40387bc0 @width=5, @dash=nil, @join=nil, @cap=nil, @miter_limit=nil>> #<PDF::Charts::StdDev::Marker:0x40387c24 @color=#<Color::RGB:0x402688ac @b=0.0, @g=0.0, @r=0.0>, @style=#<PDF::Writer::StrokeStyle:0x40387b48 @width=0.5, @dash=nil, @join=nil, @cap=nil, @miter_limit=nil>> #<PDF::Charts::StdDev::Marker:0x40387c10 @color=#<Color::RGB:0x402688ac @b=0.0, @g=0.0, @r=0.0>, @style=#<PDF::Writer::StrokeStyle:0x40387abc @width=1, @dash=nil, @join=nil, @cap=nil, @miter_limit=nil>> #<PDF::Charts::StdDev::Marker:0x40387b70 @color=#<Color::RGB:0x402688ac @b=0.0, @g=0.0, @r=0.0>, @style=#<PDF::Writer::StrokeStyle:0x40387a58 @width=1, @dash=nil, @join=nil, @cap=nil, @miter_limit=nil>>
require 'pdf/charts/stddev' pdf = PDF::Writer.new chart = PDF::Charts::StdDev.new chart.dot = nil chart.bar = nil chart.upper_crossbar = nil chart.lower_crossbar = nil chart.data << PDF::Charts::StdDev::DataPoint.new(1, 4.0000, 0.5774) chart.render_on pdf pdf.save_as("2008043001.pdf")
require 'pdf/charts/stddev' pdf = PDF::Writer.new chart = PDF::Charts::StdDev.new chart.dot = PDF::Charts::StdDev::Marker.new do |marker| marker.style = PDF::Writer::StrokeStyle.new(1.5) marker.color = Color::RGB::Blue end chart.bar = PDF::Charts::StdDev::Marker.new do |marker| marker.style = PDF::Writer::StrokeStyle.new(1.5) marker.color = Color::RGB::Red end chart.upper_crossbar = PDF::Charts::StdDev::Marker.new do |marker| marker.style = PDF::Writer::StrokeStyle.new(5) marker.color = Color::RGB::Grey70 end chart.lower_crossbar = PDF::Charts::StdDev::Marker.new do |marker| marker.style = PDF::Writer::StrokeStyle.new(10) marker.color = Color::RGB::BlueViolet end chart.data << PDF::Charts::StdDev::DataPoint.new(1, 4.0000, 0.5774) chart.render_on pdf pdf.save_as("2008043002.pdf")
「4<#lower_crossbar, #bar=>」は「4<#lower_crossbar, #lower_crossbar=>」の間違いのようだ。