About 696,000 results
Open links in new tab
  1. python - Set Colorbar Range - Stack Overflow

    norm=mpl.colors.Normalize(vmin=-0.5, vmax=1.5)) cbar.set_clim(-2.0, 2.0) With the two different limits you can control the range and legend of the colorbar. In this example only the range …

  2. python - Discrete colours in Geopandas map - Geographic …

    Nov 10, 2022 · I am making a map in Geopandas, whereby I want to discretely color the different vegetation protection classes - "VMA_CAT". The vegetation protection classes are: …

  3. 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...

  4. Colorizing polygons based on color values in dataframe column?

    Sep 20, 2019 · I preparing some choropleth election result maps in Geopandas. The assigned color for each electoral district must correspond with the winning party (a color that I pre …

  5. How to pick a new color for each plotted line within a figure

    In this case, colors will vary from black to 100% green, but you can tune it if you want. See the matplotlib plot () docs and look for the color keyword argument.

  6. Python Mapping in Matplotlib Cartopy Color One Country

    I have plotted a map of the world using matplotlib Cartopy. Now I want to select a specific country in the map in this case the United States and change the color. I think this is possible but not ...

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

    I'm wondering if there are there any convenience functions that people use to map colors to values using pandas dataframes and Matplotlib? ##ggplot scatterplot example with R …

  8. matplotlib - Center / normalize choropleth colors in GeoPandas ...

    Jul 25, 2019 · I'm looking to plot a choropleth with a divergent colormap. I need to center the colormap in such a way that the middle color is displayed for a specific value (e.g. 0). How …

  9. Matplotlib Plot Lines with Colors Through Colormap

    Matplotlib Plot Lines with Colors Through Colormap Asked 9 years, 3 months ago Modified 1 year, 11 months ago Viewed 192k times

  10. Setting different color for each series in scatter plot

    The normal way to plot plots with points in different colors in matplotlib is to pass a list of colors as a parameter. E.g.: import matplotlib.pyplot matplotlib ...