Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

3d plot theme default? (Threejs viewer)

The following command produces an interactive 3d plot viewer with the default white background.

plot3d(x^2 + y^2, (x, -1, 1), (y, -1, 1))

But I want a black background. This functionality is available with the following command.

plot3d(x^2 + y^2, (x, -1, 1), (y, -1, 1)).show(theme="dark")

But it is cumbersome to type out .show(theme="dark") each time I wish to plot something.

Can I set the _default_ 3d plot theme? How?

I did my best to search the official docs and general web for an answer. I tried searching through the source code to find any potential answers, but I am not skilled enough.

I am using SageMath version 10.4, interactively through Linux CLI. The 3D viewer my installation defaults to is the Threejs viewer, offline version.

This is my first post. If I have done something wrong, sorry! I will do my best to rectify any mistakes I make.

Thanks in advance to anyone who can answer, even if the true answer is just "no".