๐ŸŒ
Matplotlib
matplotlib.org โ€บ stable โ€บ users โ€บ explain โ€บ colors โ€บ colormaps.html
Choosing Colormaps in Matplotlib โ€” Matplotlib 3.11.2 documentation
Matplotlib has a number of built-in colormaps accessible via matplotlib.colormaps. There are also external libraries that have many extra colormaps, which can be viewed in the Third-party colormaps section of the Matplotlib documentation. Here we briefly discuss how to choose between the many ...
Discussions

Colormaps explained courtesy of matplotlib. You spend a lot of time on your simulations, make sure you spend a little bit of time selecting the correct colormap for your figures.
Id actually suggest this video: https://youtu.be/xAoljeRJ3lU More than that website. Since this gives a better explanation of which colormap to use More on reddit.com
๐ŸŒ r/CFD
17
45
October 30, 2020
python - Colormap with matplotlib - Stack Overflow
I am trying to represent 3D scatter data with matplotlib. I have 3 arrays to plot: an array with X coordinates of points an array with Y coordinates of points an array with a parameter values linked More on stackoverflow.com
๐ŸŒ stackoverflow.com
python - Customize Matplotlib Colormap - Stack Overflow
I want to construct a colormap that mainly consists of three colors, similar to the colormap 'brg': However, I'd like to modify it in two aspects: I'd like to replace blue, red and green by blue,... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to shift colormap? - matplotlib-users - Matplotlib
I knew that matplotlib can do GUI tricks but I didnโ€™t felt skilled to go there. Seeing you code it seems easy now, but itโ€™s always like that after you see the solution ... ''' returns a new colormap based on the one given but adjusted via power-law: newcmap = oldcmap**a ''' if a < 0.: return ... More on discourse.matplotlib.org
๐ŸŒ discourse.matplotlib.org
0
November 6, 2011
๐ŸŒ
Matplotlib
matplotlib.org โ€บ stable โ€บ api โ€บ _as_gen โ€บ matplotlib.colors.Colormap.html
matplotlib.colors.Colormap โ€” Matplotlib 3.11.2 documentation
The data value(s) to convert to RGBA. For floats, X should be in the interval [0.0, 1.0] to return the RGBA values X*100 percent along the Colormap line.
๐ŸŒ
Bids
bids.github.io โ€บ colormap
matplotlib colormaps
Update: These colormaps have been merged into the development version of Matplotlib, all of them will be included in matplotlib 1.5, and "option D" (now called "viridis") will be the new default colormap in matplotlib 2.0. If you just want the colormaps themselves, they're available in a single file here under a CC0 "no rights reserved" license.
๐ŸŒ
LabEx
labex.io โ€บ tutorials โ€บ matplotlib-colormap-image-generation-48835
Python Matplotlib Tutorial | Image Visualization | Colormap & Colorbar | LabEx
In this lab, we learned how to create a set of images with a single colormap, norm, and colorbar in Python's Matplotlib library. We generated data, set color scales, and updated images to respond to changes in the norm of other images.
๐ŸŒ
Reddit
reddit.com โ€บ r/cfd โ€บ colormaps explained courtesy of matplotlib. you spend a lot of time on your simulations, make sure you spend a little bit of time selecting the correct colormap for your figures.
r/CFD on Reddit: Colormaps explained courtesy of matplotlib. You spend a lot of time on your simulations, make sure you spend a little bit of time selecting the correct colormap for your figures.
October 30, 2020 - An interesting page discussing colormaps and their use cases. Often the default colormaps implemented in codes have some glaring pitfalls, especially when you consider them when seen in grayscale (most often printed in black and white). The most prolific of these would be MATLAB's 'jet' colormap which, whilst providing a nice pretty image in color, is quite useless in grayscale form.
๐ŸŒ
Stack Overflow
stackoverflow.com โ€บ questions โ€บ 66440021 โ€บ colormap-with-matplotlib
python - Colormap with matplotlib - Stack Overflow
Colormaps need an input between 0 and 1, they go together with norms to transform other values to that range.
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ matplotlib-colors-colormap-class-in-python
Matplotlib Colormaps - GeeksforGeeks
December 23, 2024 - Matplotlib offers many built-in colormaps, such as viridis, plasma, and copper, which are stored in the matplotlib.colormaps container.
๐ŸŒ
TutorialsPoint
tutorialspoint.com โ€บ article โ€บ how-to-set-a-default-colormap-in-matplotlib
How to set a default colormap in Matplotlib?
May 8, 2021 - Set the title of the image, for the default colormap. Adjust the padding between and around the subplots. To display the figure, use show() method. import numpy as np from matplotlib import pyplot as plt import matplotlib as mpl plt.rcParams["figure.figsize"] = [7.00, 3.50] plt.rcParams["figure.autolayout"] = True data = np.random.rand(4, 4) fig, (ax1, ax2) = plt.subplots(2) ax1.imshow(data) ax1.set_title("Default colormap") mpl.rc('image', cmap='RdYlBu_r') ax2.imshow(data) ax2.set_title("Set default colormap") plt.show()
๐ŸŒ
Scribd
scribd.com โ€บ document โ€บ 805220969 โ€บ color-pallets-Choosing-Colormaps-in-Matplotlib-Matplotlib-3-9-2-documentation
color pallets Choosing Colormaps in Matplotlib โ€” Matplotlib 3.9.2 documentation
color pallets Choosing Colormaps in Matplotlib โ€” Matplotlib 3.9.2 documentation - Free download as PDF File (.pdf), Text File (.txt) or read online for free.
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ [matplotlib, colormaps] how do i use build in color maps for line plots created with plot()
r/learnpython on Reddit: [matplotlib, colormaps] how do I use build in color maps for line plots created with plot()
February 4, 2020 - I know I can pass simple characters like c='b' but how do I use the built in colormaps for calls to plot()? The following will not work because there is no such argument to plot() called cmap. import matplotlib.pyplot as plt import numpy as np c = np.arange(0, 2, 100) # same length as dataframe x = np.linspace(0, 2, 100) fig, ax = plt.subplots(1,1) ax.plot(x, x, c=c, cmap='plasma') ax.plot(x, x**2, c=c, cmap='plasma') ax.plot(x, x**3, c=c, cmap='plasma') plt.show()
๐ŸŒ
Medium
medium.com โ€บ data-science โ€บ beautiful-custom-colormaps-with-matplotlib-5bab3d1f0e72
Beautiful custom colormaps with Matplotlib | by Kerry Halupka | TDS Archive | Medium
July 28, 2020 - Letโ€™s create a continuous colormap containing all of the colors above. Weโ€™ll be using the matplotlib.colors function called LinearSegmentedColormap. This function accepts a dictionary with a red, green and blue entries. Each entry should be a list of x, y0, y1 tuples, forming rows in a table.
๐ŸŒ
Pythoncharts
pythoncharts.com โ€บ matplotlib โ€บ matplotlib-colors-colormaps
Python Charts - Colors and Color Maps in Matplotlib
Colormaps are preset lists/sequences/maps of colors that Matplotlib already has packaged up for us, ready to use.
๐ŸŒ
Kaggle
kaggle.com โ€บ code โ€บ ivankmk โ€บ all-matplotlib-colormaps-with-examples
All matplotlib colormaps with examples
May 16, 2025 - Matplotlib Colormap Showcase: Choosing the Right Palette ๐ŸŽจWhy Do Colormaps Matter So Much?Notebook Structure ๐Ÿ—‚๏ธ
๐ŸŒ
Matplotlib
discourse.matplotlib.org โ€บ community โ€บ matplotlib-users
How to shift colormap? - matplotlib-users - Matplotlib
November 6, 2011 - I knew that matplotlib can do GUI tricks but I didnโ€™t felt skilled to go there. Seeing you code it seems easy now, but itโ€™s always like that after you see the solution ... ''' returns a new colormap based on the one given but adjusted via power-law: newcmap = oldcmap**a ''' if a < 0.: return cmap cdict = copy.copy(cmap._segmentdata) fn = lambda x : (x[0]**a, x[1], x[2]) for key in ('red','green','blue'): cdict[key] = map(fn, cdict[key]) cdict[key].sort() assert (cdict[key][0]<0 or cdict[key][-1]>1), \ "Resulting indices extend out of the [0, 1] segment." return colors.LinearSegmentedColormap('colormap',cdict,1024)
๐ŸŒ
Purdue
docs.rcac.purdue.edu โ€บ workshops โ€บ matplotlib โ€บ colormaps
Colormaps - RCAC Documentation
Using colormaps is quite simple: add the cmap='CMAP_NAME' option to the plotting function you are using and MatPlotLib will handle the rest.
๐ŸŒ
GitHub
github.com โ€บ pratiman-91 โ€บ colormaps
GitHub - pratiman-91/colormaps: Colormaps is a library of collection of colormaps or color palettes for Python. ยท GitHub
Colormaps is a library of collection of colormaps or color palettes for Python. It's written in Python with matplotlib and numpy as dependencies.