Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Where can I find documentation for matplotlib()?

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?

Where can I find documentation for matplotlib()?

I was trying to implement the code in this the answer post by ADuC812 in combine sage plot with matplotlib. 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?

Where can I find documentation for matplotlib()?

I was trying to implement the code in the answer 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?matplotlib? Would you provide a link to the documentation for it? Thanks in advance!

Where can I find documentation for matplotlib()?

I was trying to implement the code in the answer post by ADuC812 in combine sage plot with matplotlib. The poster used called matplotlib(), however, I could not find this module/method? class 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? Would you provide a link to the documentation for it? Thanks in advance!

Where can I find documentation for matplotlib()?

I was trying to implement the code in the answer post by ADuC812 in combine sage plot with matplotlib. The poster used called matplotlib(), however, I could not find this class 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? Would you provide a link to the documentation for it? Thanks in advance!

Edit: Found this: Get list of coordinates from plot object

And trying:

var('x,y')
p = implicit_plot(x^2+y^2-1,(x,-2,2),(y,-2,2),plot_points=4)
P = p.matplotlib()
type(P)

I get

<class 'matplotlib.figure.Figure'>