You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: coord_flip.m
    path of file: ./repos/gramm/@gramm
    
    the code of the file until where you have to start completion: function obj=coord_flip(obj)
% coord_flip Flips plot axes
%
% Using coord_flip flips the plot axes, i.e. x data will be on the vertical axis and y data on
% the horizontal axis. This is mainly useful to draw stat_ visualisations horizontally,
% such as boxplots, violin plots, etc. Coord flip sets the following axes properties
% 'CameraUpVector',[1 0 0],'XDir','reverse','YAxisLocation','Right' and
% sets things up for correct resizing of the figure. You can further modify
% these axe properties with axe_property() in order to get the desired axes
% orientation and location

    %CameraUpVector takes in accound 'XDir': when using 'reverse' the

    
function obj=coord_flip(obj)
% coord_flip Flips plot axes
%
% Using coord_flip flips the plot axes, i.e. x data will be on the vertical axis and y data on
% the horizontal axis. This is mainly useful to draw stat_ visualisations horizontally,
% such as boxplots, violin plots, etc. Coord flip sets the following axes properties
% 'CameraUpVector',[1 0 0],'XDir','reverse','YAxisLocation','Right' and
% sets things up for correct resizing of the figure. You can further modify
% these axe properties with axe_property() in order to get the desired axes
% orientation and location

    %CameraUpVector takes in accound 'XDir': when using 'reverse' the
    %CameraUpVector doesn't need to be negative X [-1 0 0]
    obj.axe_property('CameraUpVector',[1 0 0],'XDir','reverse','YAxisLocation','Right');
    for obj_ind=1:numel(obj)
        obj(obj_ind).is_flipped=true;
    end