lib/ctioga2/graphics/styles/plot.rb in ctioga2-0.12 vs lib/ctioga2/graphics/styles/plot.rb in ctioga2-0.13
- old
+ new
@@ -80,11 +80,11 @@
# Mode for auto-adjust
attr_accessor :text_auto_adjust
# If not nil, then the boundaries are computed from the real
# dimensions of the plot frame, using the given number as a
- # conversion factor from the output dimensions.
+ # conversion factor from postscript points.
attr_accessor :frame_real_size
# The target plot (ie the parent of all the small elements)
attr_accessor :target_plot
@@ -476,10 +476,10 @@
style.padding = nil
u = opts['units'] || 'cm'
if u =~ /([\d.]+)?\s*(cm|in|bp|pt|mm)/
nb = $1 ? $1.to_f : 1.0
un = $2
- style.frame_real_size = 10 * nb *
+ style.frame_real_size = nb *
Types::Dimension::DimensionConversion.fetch(un)
else
raise 'Invalid unit'
end
end