Today I Learned
Gridlines in Matplotlib
In matplotlib, enabling the gridlines would draw the lines according to the major and minor ticks. However, we need some gridlines at specified locations.
Adding a single gridline at location 10
:
When a bunch of lines are required, we define an array as the gridline locations then loop through the location to add in the grridlines.