micress-micpy 0.3.1b2__py3-none-any.whl → 0.3.2b2__py3-none-any.whl
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.
- micpy/bin.py +16 -4
- micpy/version.py +1 -1
- {micress_micpy-0.3.1b2.dist-info → micress_micpy-0.3.2b2.dist-info}/METADATA +1 -1
- micress_micpy-0.3.2b2.dist-info/RECORD +12 -0
- micress_micpy-0.3.1b2.dist-info/RECORD +0 -12
- {micress_micpy-0.3.1b2.dist-info → micress_micpy-0.3.2b2.dist-info}/LICENSE +0 -0
- {micress_micpy-0.3.1b2.dist-info → micress_micpy-0.3.2b2.dist-info}/WHEEL +0 -0
- {micress_micpy-0.3.1b2.dist-info → micress_micpy-0.3.2b2.dist-info}/top_level.txt +0 -0
micpy/bin.py
CHANGED
|
@@ -734,6 +734,8 @@ class PlotArgs:
|
|
|
734
734
|
vmin (float, optional): Minimum value of the color bar. Defaults to `None`.
|
|
735
735
|
vmax (float, optional): Maximum value of the color bar. Defaults to `None`.
|
|
736
736
|
cmap (str, optional): Colormap. Defaults to `micpy`.
|
|
737
|
+
alpha (float, optional): Transparency of the plot. Defaults to `1.0`.
|
|
738
|
+
interpolation (str, optional): Interpolation method. Defaults to `none`.
|
|
737
739
|
"""
|
|
738
740
|
|
|
739
741
|
title: Optional[str] = None
|
|
@@ -747,6 +749,8 @@ class PlotArgs:
|
|
|
747
749
|
vmin: Optional[float] = None
|
|
748
750
|
vmax: Optional[float] = None
|
|
749
751
|
cmap: str = "micpy"
|
|
752
|
+
alpha: float = 1.0
|
|
753
|
+
interpolation: str = "none"
|
|
750
754
|
|
|
751
755
|
|
|
752
756
|
def plot(
|
|
@@ -765,7 +769,7 @@ def plot(
|
|
|
765
769
|
args (PlotArgs, optional): Arguments for plotting. Defaults to `None`.
|
|
766
770
|
|
|
767
771
|
Returns:
|
|
768
|
-
Matplotlib figure
|
|
772
|
+
Matplotlib figure, axes, and color bar.
|
|
769
773
|
"""
|
|
770
774
|
|
|
771
775
|
if matplotlib is None:
|
|
@@ -813,13 +817,21 @@ def plot(
|
|
|
813
817
|
ax.set_aspect(args.aspect)
|
|
814
818
|
ax.set_frame_on(False)
|
|
815
819
|
|
|
816
|
-
|
|
820
|
+
image = ax.imshow(
|
|
821
|
+
slice_2d,
|
|
822
|
+
cmap=args.cmap,
|
|
823
|
+
vmin=args.vmin,
|
|
824
|
+
vmax=args.vmax,
|
|
825
|
+
interpolation=args.interpolation,
|
|
826
|
+
alpha=args.alpha,
|
|
827
|
+
origin="lower",
|
|
828
|
+
)
|
|
817
829
|
|
|
818
|
-
bar = pyplot.colorbar(
|
|
830
|
+
bar = pyplot.colorbar(image, ax=ax, cax=args.cax)
|
|
819
831
|
bar.locator = matplotlib.ticker.MaxNLocator(
|
|
820
832
|
integer=np.issubdtype(slice_2d.dtype, np.integer)
|
|
821
833
|
)
|
|
822
834
|
bar.outline.set_visible(False)
|
|
823
835
|
bar.update_ticks()
|
|
824
836
|
|
|
825
|
-
return fig, ax
|
|
837
|
+
return fig, ax, bar
|
micpy/version.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "0.3.
|
|
1
|
+
__version__ = "0.3.2b2"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
micpy/__init__.py,sha256=7wQUaseppjQYZW1iAVNm2WSDjvBLlqtY8tiHsfDaW5Q,148
|
|
2
|
+
micpy/bin.py,sha256=1e5Uwyvbf11FeqcYuDl9S-dxLvRBHXKdiuk4xLLzR4o,26477
|
|
3
|
+
micpy/geo.py,sha256=z7dP3hC2Fhed4N5eRrlWlC4jtIXiYPIx2BYNhn10dfw,7447
|
|
4
|
+
micpy/matplotlib.py,sha256=GF2ghyBORC5RRjW00DdsHu5aSkpMFdI9wqg6d_psPsI,1198
|
|
5
|
+
micpy/tab.py,sha256=QCnfggxRWkKgS9-zGj8kyCjhfUw7QeTgGZWedHh4MTw,3548
|
|
6
|
+
micpy/utils.py,sha256=Kt1AvhMvWer9uftbb88X7N27aXtQdJl26grHmmm2vOQ,859
|
|
7
|
+
micpy/version.py,sha256=psRpbHovTPKCRU1-eKaoWFGM8-EtiCfz92MHcqpUeXU,25
|
|
8
|
+
micress_micpy-0.3.2b2.dist-info/LICENSE,sha256=seHdCiArizUoWZ6bEFg6N3K2ZtfPK35wvOwg0kH-f6o,1488
|
|
9
|
+
micress_micpy-0.3.2b2.dist-info/METADATA,sha256=P33Wu9fqmO0G6k1qShe8OAjNCVfZHm106PJt6y7vTlo,1229
|
|
10
|
+
micress_micpy-0.3.2b2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
11
|
+
micress_micpy-0.3.2b2.dist-info/top_level.txt,sha256=RiopkpW0AGNYdtOW2eQUWgm3yHGC13q9pWlHb2alhiE,6
|
|
12
|
+
micress_micpy-0.3.2b2.dist-info/RECORD,,
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
micpy/__init__.py,sha256=7wQUaseppjQYZW1iAVNm2WSDjvBLlqtY8tiHsfDaW5Q,148
|
|
2
|
-
micpy/bin.py,sha256=MbAzv-CXMUXZ8a8gynOQKCQIrOVrhuxL6fSl5wXcH0s,26117
|
|
3
|
-
micpy/geo.py,sha256=z7dP3hC2Fhed4N5eRrlWlC4jtIXiYPIx2BYNhn10dfw,7447
|
|
4
|
-
micpy/matplotlib.py,sha256=GF2ghyBORC5RRjW00DdsHu5aSkpMFdI9wqg6d_psPsI,1198
|
|
5
|
-
micpy/tab.py,sha256=QCnfggxRWkKgS9-zGj8kyCjhfUw7QeTgGZWedHh4MTw,3548
|
|
6
|
-
micpy/utils.py,sha256=Kt1AvhMvWer9uftbb88X7N27aXtQdJl26grHmmm2vOQ,859
|
|
7
|
-
micpy/version.py,sha256=mAuhwKKFzwoBU7u49qo92gTigQagh5Nq5rzbLuYGQbI,25
|
|
8
|
-
micress_micpy-0.3.1b2.dist-info/LICENSE,sha256=seHdCiArizUoWZ6bEFg6N3K2ZtfPK35wvOwg0kH-f6o,1488
|
|
9
|
-
micress_micpy-0.3.1b2.dist-info/METADATA,sha256=E4qysyzpM5PH13fhB2MnOQao1XNVOKDp8hCT7fJUah8,1229
|
|
10
|
-
micress_micpy-0.3.1b2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
|
|
11
|
-
micress_micpy-0.3.1b2.dist-info/top_level.txt,sha256=RiopkpW0AGNYdtOW2eQUWgm3yHGC13q9pWlHb2alhiE,6
|
|
12
|
-
micress_micpy-0.3.1b2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|