diff --git a/@gramm/gramm.m b/@gramm/gramm.m index 57cc731..f92303f 100644 --- a/@gramm/gramm.m +++ b/@gramm/gramm.m @@ -3,6 +3,8 @@ % Pierre Morel 2015 properties (Access=public) + legend_axe_handle %Store the handle of the legend axis + title_axe_handle %Store the handle of the title axis facet_axes_handles %Stores the handles of the facet axes results %Stores the results of the draw functions and statistics computations end @@ -109,8 +111,7 @@ legend_y=0 %Current y position of the legend text - legend_axe_handle %Store the handle of the legend axis - title_axe_handle %Store the handle of the title axis + bigtitle='' bigtitle_options={} diff --git a/@gramm/redraw.m b/@gramm/redraw.m index 76e71dd..cef807e 100644 --- a/@gramm/redraw.m +++ b/@gramm/redraw.m @@ -138,7 +138,7 @@ end end -if ~isempty(legend_text_pos) +if ~isempty(legend_text_pos) && obj.with_legend %Here we correct by the width to get the coordinates in %normalized values [max_text_x,max_ind]=max(cellfun(@(p)legend_pos(1)+legend_pos(3)*(p(1)+p(3))/legend_axis_width,legend_text_pos)); @@ -238,7 +238,7 @@ %If we don't have legends on the right then we use the multi parameters temp_available_x=obj.multi.orig(2)+obj.multi.size(2); -if ~isempty(legend_text_pos) %Place relative to legend axis if we have one +if ~isempty(legend_text_pos) && obj.with_legend %Place relative to legend axis if we have one tmp=get(obj.legend_axe_handle,'Position'); temp_available_x=tmp(1); end