def write_manual_layout(layout, type)
      @writer.tag_elements('c:manualLayout') do
        # Plotarea has a layoutTarget element.
        @writer.empty_tag('c:layoutTarget', [ ['val', 'inner'] ]) if type == 'plot'

        # Set the x, y positions.
        @writer.empty_tag('c:xMode', [ ['val', 'edge'] ])
        @writer.empty_tag('c:yMode', [ ['val', 'edge'] ])
        @writer.empty_tag('c:x',     [ ['val', layout[:x]] ])
        @writer.empty_tag('c:y',     [ ['val', layout[:y]] ])

        # For plotarea and legend set the width and height.
        if type != 'text'
          @writer.empty_tag('c:w', [ ['val', layout[:width]] ])
          @writer.empty_tag('c:h', [ ['val', layout[:height]] ])
        end
      end
    end
def write_manual_layout(layout, type)
      @writer.tag_elements('c:manualLayout') do
        # Plotarea has a layoutTarget element.
        @writer.empty_tag('c:layoutTarget', [ ['val', 'inner'] ]) if type == 'plot'

        # Set the x, y positions.
        @writer.empty_tag('c:xMode', [ ['val', 'edge'] ])
        @writer.empty_tag('c:yMode', [ ['val', 'edge'] ])
        @writer.empty_tag('c:x',     [ ['val', layout[:x]] ])
        @writer.empty_tag('c:y',     [ ['val', layout[:y]] ])

        # For plotarea and legend set the width and height.
        if type != 'text'
          @writer.empty_tag('c:w', [ ['val', layout[:width]] ])
          @writer.empty_tag('c:h', [ ['val', layout[:height]] ])
        end
      end
    end
Write the <c:manualLayout> element.