plotastrodata 1.10.2__tar.gz → 1.10.3__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.10.2/plotastrodata.egg-info → plotastrodata-1.10.3}/PKG-INFO +1 -1
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/__init__.py +1 -1
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/plot_utils.py +12 -3
- {plotastrodata-1.10.2 → plotastrodata-1.10.3/plotastrodata.egg-info}/PKG-INFO +1 -1
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/LICENSE +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/MANIFEST.in +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/README.md +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/analysis_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/const_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/coord_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/ext_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/fft_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/fits_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/fitting_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/los_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/matrix_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/noise_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata/other_utils.py +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata.egg-info/SOURCES.txt +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata.egg-info/dependency_links.txt +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata.egg-info/not-zip-safe +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata.egg-info/requires.txt +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/plotastrodata.egg-info/top_level.txt +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/setup.cfg +0 -0
- {plotastrodata-1.10.2 → plotastrodata-1.10.3}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.3
|
|
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
|
|
@@ -286,6 +286,9 @@ class Stretcher():
|
|
|
286
286
|
) -> tuple[np.ndarray, np.ndarray, np.ndarray]:
|
|
287
287
|
"""Set vmin and vmax for color pcolormesh and RGB maps.
|
|
288
288
|
|
|
289
|
+
Explicit bounds are stretched and preserved; missing bounds are
|
|
290
|
+
inferred from the clipped, stretched data.
|
|
291
|
+
|
|
289
292
|
Args:
|
|
290
293
|
data (np.ndarray): 2D/3D data to plot.
|
|
291
294
|
|
|
@@ -297,9 +300,15 @@ class Stretcher():
|
|
|
297
300
|
vmaxout = [self.vmax] if single else self.vmax
|
|
298
301
|
dataout = [data] if single else data
|
|
299
302
|
for i, (c, v0, v1) in enumerate(zip(dataout, vminout, vmaxout)):
|
|
300
|
-
dataout[i] =
|
|
301
|
-
|
|
302
|
-
|
|
303
|
+
dataout[i] = self.do(c.clip(v0, v1), i)
|
|
304
|
+
if v0 is None:
|
|
305
|
+
vminout[i] = np.nanmin(dataout[i])
|
|
306
|
+
else:
|
|
307
|
+
vminout[i] = self.do(v0, i).item()
|
|
308
|
+
if v1 is None:
|
|
309
|
+
vmaxout[i] = np.nanmax(dataout[i])
|
|
310
|
+
else:
|
|
311
|
+
vmaxout[i] = self.do(v1, i).item()
|
|
303
312
|
if single:
|
|
304
313
|
dataout = dataout[0]
|
|
305
314
|
vminout = vminout[0]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: plotastrodata
|
|
3
|
-
Version: 1.10.
|
|
3
|
+
Version: 1.10.3
|
|
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
|
|
File without changes
|