Using scatterhist, the legend no longer displays with both line and marker information in R2014b. This wasn't an issue in R2014a. How can I fix it?

2 views (last 30 days)
I am creating a scatter plot using scatterhist. Here is example code. The problem is that the legend displays the marker type, but not the line type for the histograms. In R2014a, the legend would display both line type and marker type. Can I get this to do the same?
tempPops = ['One';'One';'One';'One';'One';'One';'Two';'Two';'Two';'Two';'Two';'Two'];
tempParameterMatrix = [ones(6,2);ones(6,2)*2]+rand(12,2);
g_color = 'bg';
g_lStyle = {'-','--'};
g_lWidth = [1,2];
g_marker = '.+';
g_markerSize = [8,8];
scatterhist(tempParameterMatrix(:,1), tempParameterMatrix(:,2), 'Group', ...
tempPops, 'Location','SouthWest',...
'Direction','out','Color',g_color,'LineStyle',g_lStyle,...
'LineWidth',g_lWidth,'Marker',g_marker,'MarkerSize',g_markerSize);

Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!