lib/rubyplot/backend/gr_wrapper.rb
# Transform font size expressed in terms of Rubyplot font size (pt.)
# to GR font height that is expressed in terms of the height of the canvas.
Transform font size expressed in terms of Rubyplot font size (pt.)
to GR font height that is expressed in terms of the height of the canvas.
Transform font size expressed in terms of Rubyplot font size ( pt . ) to GR font height that is expressed in terms of the height of the canvas .
def to_gr_font_size rubyplot_font_size, ndc_min_y, ndc_max_y
        height_in_pixels = (ndc_max_y - ndc_min_y) *
          2400 * METER_MULTIPLIERS[:pixel] * 39.3701 *
          DEFAULT_DPI
        (rubyplot_font_size / height_in_pixels)
      end
def to_gr_font_size rubyplot_font_size , ndc_min_y , ndc_max_y height_in_pixels = ( ndc_max_y - ndc_min_y ) * 2400 * METER_MULTIPLIERS [ :pixel ] * 39.3701 * DEFAULT_DPI ( rubyplot_font_size / height_in_pixels ) end
Transform font size expressed in terms of Rubyplot font size (pt.)
Transform font size expressed in terms of Rubyplot font size ( pt . )
rubyplot_font_size
ndc_min_y
ndc_max_y