Matplotlib supports many different ways of specifying the color, line style, and markers. In this recipe, we will learn how to use these features.
Color, line style, and marker customization
Getting ready
Import the following required libraries:
import numpy as np
import matplotlib.pyplot as plt
How to do it...
The following code block draws five different plots to demonstrate most of the possible combinations for specifying the colors, line styles, and markers:
- Define the figure layout, as follows:
fig = plt.figure(figsize=(12,6))
- Define axes names for each of the plots...