What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-08 07:46:12
python add vertical line in plot
# Basic syntax: plt.axvline(x_coordinate) # Example usage: import matplotlib.pyplot as plt plt.figure(figsize=(5, 5)) plt.axvline(x=10, ymin=0.10, ymax=0.70, color='b', ls='--', lw=1.5, label='axvline - % of full height') plt.legend(bbox_to_anchor=(1.0, ... Add solution