I want to add more fine grained grid on a plotted graph. The problem is all of the examples require access to the axis object. I want to add specific grid to already plotted graph (from inside ipython).
How do I gain access to the current figure and axis in ipython ?
To get the current figure number in Python's Matplotlib, we can use plt. gcf(). number.
plt. show() starts an event loop, looks for all currently active figure objects, and opens one or more interactive windows that display your figure or figures. The plt. show() command does a lot under the hood, as it must interact with your system's interactive graphical backend.
rcParams is a matplotlib. RcParams object, it is a dictionary-like variable which store some rc settings in matplotlib.
plt.gcf()
to get current figure
plt.gca()
to get current axis
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With