prince
prince copied to clipboard
Colorization missing from mca.plot_coordinates
When I plot_coordinates, all the column variables appear in the same blue color, instead of different colors.
When I look at the code for plotting rows, I see:
if show_row_points: ax.scatter( row_coords.iloc[:, x_component], row_coords.iloc[:, y_component], s=row_points_size, label=None, color=plot.GRAY['dark'], alpha=row_points_alpha )
However in the corresponding code for the column vars, the color is not explicitly set, and seems to default to blue for all prefixes:
` for prefix in prefixes.unique():
mask = prefixes == prefix
if show_column_points:
ax.scatter(x[mask], y[mask], s=column_points_size, label=prefix)`