![]() c can be a 2-D array in which the rows are RGB or RGBA, however. ![]() Note that c should not be a single numeric RGB or RGBA sequence because that is indistinguishable from an array of values to be colormapped. The matplotlib docs specifically state the following, highlighting mineĬ can be a single color format string, or a sequence of color specifications of length N, or a sequence of N numbers to be mapped to colors using the cmap and norm specified via kwargs (see below). a sequence of values to map onto the current colormap.a sequence of color specifications (say a sequence of RGB values).a string (such as 'b' in the original matplotlib case).The issue arises because the keyword argument c can accept multiple different types of argument, it can accept:. ![]() If seaborn is not used then the value is the matplotlib default which is 'b' (a string indicating the colour "blue").Ĭ_values is then used later on to actually plot the graph within ax.scatter scatter = ax.scatter(data.values, data.values, c=c_values, In your case c will be equal to None, which is the default value, and so c_values will be given by plt.rcParams. In ._make_plot the following code occurs to choose the colours to be used in the scatter plot if c is None:Ĭ_values = The bug is in pandas technically, not seaborn as I originally thought, though it involves code from pandas, seaborn, and matplotlib.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |