micress-micpy 0.3.2b0__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 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(
@@ -813,11 +817,17 @@ def plot(
813
817
  ax.set_aspect(args.aspect)
814
818
  ax.set_frame_on(False)
815
819
 
816
- mesh = ax.imshow(
817
- slice_2d, cmap=args.cmap, vmin=args.vmin, vmax=args.vmax, origin="lower"
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",
818
828
  )
819
829
 
820
- bar = pyplot.colorbar(mesh, ax=ax, cax=args.cax)
830
+ bar = pyplot.colorbar(image, ax=ax, cax=args.cax)
821
831
  bar.locator = matplotlib.ticker.MaxNLocator(
822
832
  integer=np.issubdtype(slice_2d.dtype, np.integer)
823
833
  )
micpy/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.3.2b0"
1
+ __version__ = "0.3.2b2"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: micress-micpy
3
- Version: 0.3.2b0
3
+ Version: 0.3.2b2
4
4
  Summary: MicPy is a Python package to facilitate MICRESS workflows.
5
5
  Author: Lukas Koschmieder
6
6
  Author-email: l.koschmieder@access-technology.de
@@ -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=5_VjciuoY7MGgbsYGD4YEBsGIRtN1UHEu1bF4c84KoU,26150
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=cmRz06nS65Gsdx46NbGK09hWYOtmDwCXP9-XRCvNvUc,25
8
- micress_micpy-0.3.2b0.dist-info/LICENSE,sha256=seHdCiArizUoWZ6bEFg6N3K2ZtfPK35wvOwg0kH-f6o,1488
9
- micress_micpy-0.3.2b0.dist-info/METADATA,sha256=iJ3JJYKKdZzkdnCkfYstoSu4NDaYJMX0aIAuMKIFoQs,1229
10
- micress_micpy-0.3.2b0.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
11
- micress_micpy-0.3.2b0.dist-info/top_level.txt,sha256=RiopkpW0AGNYdtOW2eQUWgm3yHGC13q9pWlHb2alhiE,6
12
- micress_micpy-0.3.2b0.dist-info/RECORD,,