From d06c8ebcfa7d4c1c00c012edee37a53abe52e3a0 Mon Sep 17 00:00:00 2001 From: BEC 5 Date: Tue, 13 Aug 2013 10:37:57 -0400 Subject: [PATCH] [color] different color for x and y? --- @CompositeTOFObject/CompositeTOFObject.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/@CompositeTOFObject/CompositeTOFObject.m b/@CompositeTOFObject/CompositeTOFObject.m index 32abc01..9470b0f 100644 --- a/@CompositeTOFObject/CompositeTOFObject.m +++ b/@CompositeTOFObject/CompositeTOFObject.m @@ -13,13 +13,12 @@ style = {... 'o',... 'MarkerSize',4.5,... - 'MarkerFaceColor',colors{mod(i,length(colors))},... 'MarkerEdgeColor','k'}; for i=1:length(obj.seriesHandles) errorbar(obj.seriesHandles{i}.(obj.sortParameter),obj.seriesHandles{i}.xTemperature,... - obj.seriesHandles{i}.xTemperatureError,style{:},'Color',[0;25;205]/255.); + obj.seriesHandles{i}.xTemperatureError,style{:},'Color',[0;25;205]/255.,'MarkerFaceColor',[0;25;205]/255.); errorbar(obj.seriesHandles{i}.(obj.sortParameter),obj.seriesHandles{i}.yTemperature,... - obj.seriesHandles{i}.yTemperatureError,style{:},'Color',[205;38;38]/255.); + obj.seriesHandles{i}.yTemperatureError,style{:},'Color',[205;38;38]/255.,'MarkerFaceColor',[205;38;38]/255.); legend('xTemperature','yTemperature') % title([yProp ' vs ' xProp]) varargout{1}=h;