Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How can I Change the background color of a plot.

I want to create some plots using sage to then save them in my computer. I don't want the background to be white (or transparent). Is there a way of specifying the background of a plot inside sage?

(I'm looking for an option of the form:

sage: t=var('t')

sage: p=parametric_plot((t,2*t), (t, -5, 5))

sage: p.show(background=(.1,.2,.3))

or something like that.)