pyvista.examples.planets.load_earth#
- load_earth(radius=1.0, lat_resolution=50, lon_resolution=100)[source]#
Load the planet Earth as a textured sphere.
- Parameters:
- Returns:
pyvista.PolyData
Earth dataset.
Examples
>>> import pyvista as pv >>> from pyvista import examples >>> mesh = examples.planets.load_earth() >>> texture = examples.load_globe_texture() >>> pl = pv.Plotter() >>> image_path = examples.planets.download_stars_sky_background( ... load=False ... ) >>> pl.add_background_image(image_path) >>> _ = pl.add_mesh(mesh, texture=texture) >>> pl.show()