def draw_title
      return if (@hide_title || @title.nil?)

      @d.fill = @font_color
      @d.font = @title_font || @font if @title_font || @font
      @d.stroke('transparent')
      @d.pointsize = scale_fontsize(@title_font_size)
      @d.font_weight = if @bold_title then BoldWeight else NormalWeight end
      @d.gravity = NorthGravity
      @d = @d.annotate_scaled(@base_image,
                              @raw_columns, 1.0,
                              0, @top_margin,
                              @title, @scale)
    end
def draw_title
      return if (@hide_title || @title.nil?)

      @d.fill = @font_color
      @d.font = @title_font || @font if @title_font || @font
      @d.stroke('transparent')
      @d.pointsize = scale_fontsize(@title_font_size)
      @d.font_weight = if @bold_title then BoldWeight else NormalWeight end
      @d.gravity = NorthGravity
      @d = @d.annotate_scaled(@base_image,
                              @raw_columns, 1.0,
                              0, @top_margin,
                              @title, @scale)
    end
Draws a title on the graph.