About 50 results
Open links in new tab
  1. python - Named colors in matplotlib - Stack Overflow

    What named colors are available in matplotlib for use in plots? I can find a list on the matplotlib documentation that claims that these are the only names: b: blue g: green r: red c: cyan m: mag...

  2. How to change the color of the axis, ticks and labels

    Jan 21, 2011 · I'd like to change the color of the axis, as well as ticks and value-labels for a plot I did using matplotlib and PyQt.

  3. python - Color a scatter plot by Column Values - Stack Overflow

    pandas.DataFrame.plot and matplotlib.pyplot.scatter can take a c or color parameter, which must be a color, a sequence of colors, or a sequence of numbers. Tested in python 3.8, pandas 1.3.1, and …

  4. Setting different color for each series in scatter plot

    If I call scatter multiple times, I can only set the same color on each scatter. Also, I know I can set a color array manually but I'm sure there is a better way to do this. My question is then, "How can I …

  5. python - Set Colorbar Range - Stack Overflow

    import matplotlib as mpl ... ax, _ = mpl.colorbar.make_axes(plt.gca(), shrink=0.5) cbar = mpl.colorbar.ColorbarBase(ax, cmap=cm, norm=mpl.colors.Normalize(vmin=-0.5, vmax=1.5)) …

  6. matplotlib: colorbars and its text labels - Stack Overflow

    Learn how to manage colorbars and their text labels in matplotlib for effective data visualization and customization.

  7. Manually set color of points in legend - Stack Overflow

    I'm making a scatter plot which looks like this: (MWE at bottom of question) As can be seen in the image above the colors of the points in the legend are set to blue automatically by matplotlib. I...

  8. R matplot match legend color to line color - Stack Overflow

    Aug 16, 2016 · R matplot match legend color to line color Asked 9 years, 5 months ago Modified 9 years, 5 months ago Viewed 4k times

  9. How to add colour matched legend to a R matplot - Stack Overflow

    Jan 6, 2015 · matplot(cumsum(as.data.frame(daily.pnl)),type="l") This gives me default colours for each line - which is fine, But I now want to add a legend that reflects those same colours - how can I …

  10. python - Plotting a 2D heatmap - Stack Overflow

    Oct 16, 2022 · 276 Using Matplotlib, I want to plot a 2D heat map. My data is an n-by-n Numpy array, each with a value between 0 and 1. So for the (i, j) element of this array, I want to plot a square at …