plotastrodata 1.8.5__tar.gz → 1.8.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {plotastrodata-1.8.5/plotastrodata.egg-info → plotastrodata-1.8.6}/PKG-INFO +1 -1
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/__init__.py +1 -1
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/analysis_utils.py +6 -2
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/plot_utils.py +11 -1
- {plotastrodata-1.8.5 → plotastrodata-1.8.6/plotastrodata.egg-info}/PKG-INFO +1 -1
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/LICENSE +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/MANIFEST.in +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/README.md +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/const_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/coord_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/ext_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/fft_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/fits_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/fitting_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/los_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/matrix_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/noise_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata/other_utils.py +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata.egg-info/SOURCES.txt +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata.egg-info/dependency_links.txt +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata.egg-info/not-zip-safe +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata.egg-info/requires.txt +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/plotastrodata.egg-info/top_level.txt +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/setup.cfg +0 -0
- {plotastrodata-1.8.5 → plotastrodata-1.8.6}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.6
|
|
4
4
|
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
|
|
5
5
|
Home-page: https://github.com/yusukeaso-astron/plotastrodata
|
|
6
6
|
Download-URL: https://github.com/yusukeaso-astron/plotastrodata
|
|
@@ -155,6 +155,12 @@ class AstroData():
|
|
|
155
155
|
ws = ', '.join([f'{s:d}' for s in w[1:]])
|
|
156
156
|
print(f'width was changed to [{ws}].')
|
|
157
157
|
newsize = size // w
|
|
158
|
+
if w[1] > 1:
|
|
159
|
+
print(f'sigma has been divided by sqrt({w[1]:d})'
|
|
160
|
+
+ ' because of binning in the v-axis.')
|
|
161
|
+
self.sigma = self.sigma / np.sqrt(w[1])
|
|
162
|
+
if w[2] > 1 or w[3] > 1:
|
|
163
|
+
print('Binning in the x- or y-axis does not update sigma.')
|
|
158
164
|
grid = [None, self.v, self.y, self.x]
|
|
159
165
|
dgrid = [None, self.dv, self.dy, self.dx]
|
|
160
166
|
for n in range(1, 4):
|
|
@@ -181,8 +187,6 @@ class AstroData():
|
|
|
181
187
|
self.data = np.squeeze(d)
|
|
182
188
|
_, self.v, self.y, self.x = grid
|
|
183
189
|
_, self.dv, self.dy, self.dx = dgrid
|
|
184
|
-
s = 'AstroData.sigma is not updated by AstroData.binning().'
|
|
185
|
-
warnings.warn(s, UserWarning)
|
|
186
190
|
|
|
187
191
|
def centering(self, includexy: bool = True,
|
|
188
192
|
includev: bool = False,
|
|
@@ -65,7 +65,17 @@ def logticks(ticks: list[float], lim: list[float, float]
|
|
|
65
65
|
return newticks, newlabels
|
|
66
66
|
|
|
67
67
|
|
|
68
|
-
def logcbticks(vmin: float, vmax: float
|
|
68
|
+
def logcbticks(vmin: float = -3.01, vmax: float = 3.01
|
|
69
|
+
) -> tuple[np.ndarray, np.ndarray]:
|
|
70
|
+
"""Make nice ticks for a log color bar.
|
|
71
|
+
|
|
72
|
+
Args:
|
|
73
|
+
vmin (float, optional): Minimum value. Defaults to -3.01.
|
|
74
|
+
vmax (float, optional): Maximum value. Defaults to 3.01.
|
|
75
|
+
|
|
76
|
+
Returns:
|
|
77
|
+
tuple: (ticks, ticklabels).
|
|
78
|
+
"""
|
|
69
79
|
ticks = np.outer(np.logspace(-3, 3, 7), np.arange(1, 10))
|
|
70
80
|
ticklabels = []
|
|
71
81
|
for i in range(-3, 4):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.8.
|
|
3
|
+
Version: 1.8.6
|
|
4
4
|
Summary: plotastrodata is a tool for astronomers to create figures from FITS files and perform fundamental data analyses with ease.
|
|
5
5
|
Home-page: https://github.com/yusukeaso-astron/plotastrodata
|
|
6
6
|
Download-URL: https://github.com/yusukeaso-astron/plotastrodata
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|