
上QQ阅读APP看书,第一时间看更新
Getting ready
We will first learn how to create discrete colormaps, followed by continuous colormaps.
Import the following required libraries:
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from matplotlib.colors import LinearSegmentedColormap