I am new to Python and I am actually trying to plot a figure over a subplot.
The difficult thing is that I need the axes property which is a string I can obtain by simply printing the subplot (Example below).
figure(1)
a = subplot(222)
print a
Axes(xpos,ypos;deltaxxdeltay)
This string contains all the information I need for what I want to do (a simple axes([x, y , deltax, deltay]). But unfortunately, I would need to redirect the output of print() to a variable that I can parse after (with re()).
Does anyone have an idea of how to do it (I only need the output of this string, other printed values in the program must not be affected)?