I was trying to implement the code in this post by ADuC812 in combine sage plot with matplotlib. The poster used called matplotlib(), however, I could not find this module/method? anywhere.
Essentially,
g=plot(sin(x))
from matplotlib.figure import Figure
figure = Figure()
main_plot = figure.add_axes((0.2,0.2,0.7,0.7))
g.matplotlib('a.svg', figure=figure, sub=main_plot)
Is matplotlib() supposed to be part of sagemath or matplotlib?