Here is an explanation of the code:
- plt.style.use('seaborn-darkgrid') specifies the style to be used as the background of the figure.
- plt.subplots() instantiates the figure object to specify the size of the figure. If we want to use the default size, then this statement is not required.
- x and y define the data for plotting the sigmoid curve.
- plt.text() creates a text object and places it at the specified co-ordinates:
- (-10., 1.15) are the co-ordinates on the axes where this text object is to be placed.
- Sigmoid with Path Effects is the text.
- weight is the same as font weight (depth of bold)
- va is vertical alignment.
- path_effects[] specifies a list of PathPatchEffects to be applied to the text object.
- PathPatchEffect() enables ...