Kaynağa Gözat

phase colormap change

tags/1.6.1
Trevor Irons 5 yıl önce
ebeveyn
işleme
132425f28d
2 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  1. 3
    2
      akvo/tressel/mrsurvey.py
  2. 1
    1
      setup.py

+ 3
- 2
akvo/tressel/mrsurvey.py Dosyayı Görüntüle

@@ -1063,7 +1063,7 @@ class GMRDataProcessor(SNMRDataProcessor):
1063 1063
                 if phase == 1: # Amp phase
1064 1064
                     im1 = ax1.pcolormesh( time_sp, QQ, self.DATADICT["CA"][pulse][chan], cmap=dcmap, rasterized=True,
1065 1065
                          vmin=-self.DATADICT["CAmax"][pulse] , vmax=self.DATADICT["CAmax"][pulse]  )
1066
-                    im2 = ax2.pcolormesh( time_sp, QQ, self.DATADICT["IP"][pulse][chan], cmap=cmocean.cm.phase, rasterized=True,\
1066
+                    im2 = ax2.pcolormesh( time_sp, QQ, self.DATADICT["IP"][pulse][chan], cmap=cmocean.cm.balance, rasterized=True,\
1067 1067
                          vmin=-np.pi, vmax=np.pi)
1068 1068
                 if phase == 2: # CA NR
1069 1069
                     im1 = ax1.pcolormesh( time_sp, QQ, self.DATADICT["CA"][pulse][chan], cmap=dcmap, rasterized=True,\
@@ -1289,7 +1289,8 @@ class GMRDataProcessor(SNMRDataProcessor):
1289 1289
                     im2 = ax2.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["IM"], cmap=cmap, vmin=-vmax2, vmax=vmax2)
1290 1290
                 elif phase == 1:
1291 1291
                     im1 = ax1.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["CA"], cmap=cmap, vmin=-vmax1, vmax=vmax1)
1292
-                    im2 = ax2.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["IP"], cmap=cmocean.cm.phase, vmin=-vmax2, vmax=vmax2)
1292
+                    im2 = ax2.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["IP"], cmap=cmocean.cm.balance, vmin=-vmax2, vmax=vmax2)
1293
+                    #im2 = ax2.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["IP"], cmap=cmocean.cm.phase, vmin=-vmax2, vmax=vmax2)
1293 1294
                 elif phase == 2:
1294 1295
                     im1 = ax1.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["CA"], cmap=cmap, vmin=-vmax1, vmax=vmax1)
1295 1296
                     XS = self.bootstrap_sigma(pulse, chan)

+ 1
- 1
setup.py Dosyayı Görüntüle

@@ -6,7 +6,7 @@ from setuptools.command.build_py import build_py
6 6
 
7 7
 try:
8 8
     from pyqt_distutils.build_ui import build_ui
9
-except:
9
+except ImportError:
10 10
     print("Please install pyqt_distutils")
11 11
     print( "(sudo) pip(3) install pyqt-distutils")
12 12
     exit()

Loading…
İptal
Kaydet