-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
53 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*************** | ||
Example Gallery | ||
*************** | ||
|
||
This gallery contains examples of how to use sunkit-pyvista. | ||
|
||
.. toctree:: | ||
:glob: | ||
|
||
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
======================================= | ||
Three dimensional plots with sunpy Maps | ||
======================================= | ||
|
||
Using sunkit-pyvista, one can interface with the `pyvista` package to | ||
produce interactive 3D plots for sunpy Maps. | ||
|
||
.. jupyter-execute:: | ||
:hide-code: | ||
|
||
import pyvista | ||
pyvista.set_jupyter_backend('ipygany') | ||
|
||
.. jupyter-execute:: | ||
|
||
import astropy.constants as const | ||
import astropy.units as u | ||
from astropy.coordinates import SkyCoord | ||
from sunpy.data.sample import AIA_193_IMAGE | ||
from sunpy.map import Map | ||
|
||
from sunkit_pyvista import SunpyPlotter | ||
|
||
m = Map(AIA_193_IMAGE).resample([512, 512] * u.pixel) | ||
|
||
p = SunpyPlotter() | ||
p.plot_map(m) | ||
p.show(jupyter_backend='ipygany') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters