Path is a method provided by Matplotlib for drawing custom charts. It uses a helper function patch that is provided by Matplotlib. Let's see how this can be used to draw a simple plot.
Path
Getting ready
Import the required libraries. Two new packages, Path and patches, will be introduced here:
import matplotlib.pyplot as plt
from matplotlib.path import Path
import matplotlib.patches as patches
How to do it...
The following code block defines points and associated lines and curves to be drawn to form the overall picture:
- Define the points along with the first curve...