linuxfreebird
linuxfreebird

Reputation: 809

Plot 3d in 2d with numpy?

I am unable to plot 3D figures on my Linux computer using Numpy, because my graphics card does not have Linux support and the company's driver is basic. Is there away to write the data of the 3D plot directly into a 2D image, such as a 2D plot or png file?

Upvotes: 0

Views: 201

Answers (1)

MattDMo
MattDMo

Reputation: 102852

Just use the savefig() method on your plot. Matplotlib can create 3D figures even without a graphics card (such as on a web server), and you can then save the image directly to disk.

Upvotes: 1

Related Questions