prince icon indicating copy to clipboard operation
prince copied to clipboard

Colorization missing from mca.plot_coordinates

Open Stevod opened this issue 4 years ago • 0 comments

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)`

Stevod avatar Oct 14 '20 18:10 Stevod