0
0
Matplotlibdata~5 mins

Colormaps (sequential, diverging, qualitative) in Matplotlib - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a sequential colormap in matplotlib?
A sequential colormap shows a range of colors that go from light to dark or from low to high intensity. It is used for data that has order, like numbers increasing from small to large.
Click to reveal answer
beginner
Describe a diverging colormap and when to use it.
A diverging colormap has two contrasting colors that meet in the middle with a neutral color. It is good for data with a meaningful center point, like temperatures above and below zero.
Click to reveal answer
beginner
What is a qualitative colormap used for?
Qualitative colormaps use distinct colors without order. They are used to show categories or groups, like different types of fruits or countries.
Click to reveal answer
beginner
Give an example of a sequential colormap in matplotlib.
An example is 'viridis', which goes from dark purple to yellow. It is good for showing increasing values clearly.
Click to reveal answer
intermediate
Why should you choose a diverging colormap for data with a midpoint?
Because it highlights differences above and below the midpoint with two colors, making it easy to see where values are higher or lower than the center.
Click to reveal answer
Which colormap type is best for showing categories without order?
ASequential
BContinuous
CDiverging
DQualitative
What does a sequential colormap represent?
AData with a meaningful center point
BOrdered data from low to high
CCategorical data
DRandom colors
Which matplotlib colormap is an example of a diverging colormap?
Acoolwarm
Btab10
Cviridis
Dplasma
When should you use a diverging colormap?
AFor data with a meaningful midpoint
BFor data with no order
CFor categorical data
DFor random data
Which colormap type is best for showing increasing values clearly?
ADiverging
BQualitative
CSequential
DCategorical
Explain the differences between sequential, diverging, and qualitative colormaps and give an example of when to use each.
Think about data types: ordered numbers, data with a center, and categories.
You got /6 concepts.
    Describe how you would choose a colormap for a heatmap showing temperature differences from freezing point.
    Focus on the importance of the center value in your data.
    You got /4 concepts.