1
1
"""
2
2
Plotting functions for easily and quickily visualizing synthesized AIA results
3
3
"""
4
- import os
5
-
6
- import numpy as np
4
+ import astropy .units as u
7
5
import h5py
8
- import matplotlib .pyplot as plt
9
- import matplotlib .colors
10
6
import matplotlib .animation
11
- import astropy .units as u
7
+ import matplotlib .colors
8
+ import matplotlib .pyplot as plt
9
+ import numpy as np
10
+ import os
11
+
12
12
from astropy .coordinates import SkyCoord
13
13
from sunpy .map import Map
14
14
@@ -22,7 +22,7 @@ def plot_aia_channels(aia, time: u.s, root_dir, corners=None, figsize=None, norm
22
22
23
23
Parameters
24
24
----------
25
- aia : `synthesizAR.instruments.InstrumentSDOAIA`
25
+ aia : `synthesizAR.instruments.sdo. InstrumentSDOAIA`
26
26
time : `astropy.Quantity`
27
27
root_dir : `str`
28
28
figsize : `tuple`, optional
@@ -62,7 +62,7 @@ def plot_aia_channels(aia, time: u.s, root_dir, corners=None, figsize=None, norm
62
62
ax .text (0.1 * tmp .dimensions .x .value , 0.9 * tmp .dimensions .y .value ,
63
63
r'${}$ $\mathrm{{\mathring{{A}}}}$' .format (channel ['name' ]),
64
64
color = 'w' , fontsize = fontsize )
65
- fig .suptitle (r '$t={:.0f}$ {}' . format ( time .value , time . unit .to_string ()) , fontsize = fontsize )
65
+ fig .suptitle (rf '$t={ time . value :.0f} $ { time .unit .to_string ()} ' , fontsize = fontsize )
66
66
if kwargs .get ('use_with_animation' , False ):
67
67
return fig , ims
68
68
0 commit comments