I am plotting grouped data (with 10 groups) in gscatter and the legend that is generated automatically by this function in great, but when I call the legend fcn to change the legend location and display names it resets my symbols and colors so they don't match what is on my plot.
figure
errorbar(store_all_mean_corr_std(:,3),store_all_mean_corr_std(:,4),store_all_mean_corr_std(:,5),'.k');
hold on
hh=gscatter(store_all_mean_corr_std(:,3),store_all_mean_corr_std(:,4),store_all_mean_corr_std(:,2));
I am using the default colormap and symbols in gscatter for my grouped data- which is colormap(hsv(10)) and I just want to set these 10 colors and symbols (that the orginal gscatter function generates so they dont change when I call the legend function.
I know I must be able to use the findobj and/or set functions but I am just not sure how to do this.
Any help would be appreciated.
Lucy