We learned how to use the Path method to draw custom plots in Chapter 2, Getting Started with Basic Plots. Here, we will learn how to create effects such as a simple shadow and a hatch shadow using the path_effetcts attribute on various plotting objects.
Using Path effects
Getting ready
Import the required libraries:
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.patheffects import PathPatchEffect, SimpleLineShadow, Normal
How to do it...
The following code block plots a sigmoid curve and text object on the graph, with the path_effects attributes:
- Define...