pyvista.examples.planets.load_mars#
- load_mars(radius=1.0, lat_resolution=50, lon_resolution=100)[source]#
Load the planet Mars as a textured Sphere.
- Parameters:
- Returns:
pyvista.PolyData
Mars dataset.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> mesh = examples.planets.load_mars() >>> texture = examples.planets.download_mars_surface(texture=True) >>> image_path = examples.planets.download_stars_sky_background(load=False) >>> mesh.plot(texture=texture, background=image_path)