pyvista.examples.planets.download_stars_sky_background#
- download_stars_sky_background(texture=False, load=True)[source]#
Download the night sky stars texture.
Textures obtained from tamaskis/planet3D-MATLAB.
- Parameters:
- Returns:
pyvista.DataSet
|pyvista.Texture
|str
Texture, Dataset, or path to the file depending on the
load
andtexture
parameters.
Examples
Load the night sky image as a background image.
>>> from pyvista import examples >>> import pyvista as pv >>> pl = pv.Plotter() >>> image_path = examples.planets.download_stars_sky_background(load=False) >>> pl.add_background_image(image_path) >>> pl.show()
See also
- Stars Sky Background Dataset
See this dataset in the Dataset Gallery for more info.
load_mars()
Load Mars as a textured sphere.
- Milkyway Sky Background Dataset
Sky texture of the Milky Way galaxy.
- 3D Earth and Celestial Bodies
Example plot of the solar system.