Browse Source

phase colormap change

tags/1.6.1
Trevor Irons 5 years ago
parent
commit
132425f28d
2 changed files with 4 additions and 3 deletions
  1. 3
    2
      akvo/tressel/mrsurvey.py
  2. 1
    1
      setup.py

+ 3
- 2
akvo/tressel/mrsurvey.py View File

1063
                 if phase == 1: # Amp phase
1063
                 if phase == 1: # Amp phase
1064
                     im1 = ax1.pcolormesh( time_sp, QQ, self.DATADICT["CA"][pulse][chan], cmap=dcmap, rasterized=True,
1064
                     im1 = ax1.pcolormesh( time_sp, QQ, self.DATADICT["CA"][pulse][chan], cmap=dcmap, rasterized=True,
1065
                          vmin=-self.DATADICT["CAmax"][pulse] , vmax=self.DATADICT["CAmax"][pulse]  )
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
                          vmin=-np.pi, vmax=np.pi)
1067
                          vmin=-np.pi, vmax=np.pi)
1068
                 if phase == 2: # CA NR
1068
                 if phase == 2: # CA NR
1069
                     im1 = ax1.pcolormesh( time_sp, QQ, self.DATADICT["CA"][pulse][chan], cmap=dcmap, rasterized=True,\
1069
                     im1 = ax1.pcolormesh( time_sp, QQ, self.DATADICT["CA"][pulse][chan], cmap=dcmap, rasterized=True,\
1289
                     im2 = ax2.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["IM"], cmap=cmap, vmin=-vmax2, vmax=vmax2)
1289
                     im2 = ax2.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["IM"], cmap=cmap, vmin=-vmax2, vmax=vmax2)
1290
                 elif phase == 1:
1290
                 elif phase == 1:
1291
                     im1 = ax1.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["CA"], cmap=cmap, vmin=-vmax1, vmax=vmax1)
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
                 elif phase == 2:
1294
                 elif phase == 2:
1294
                     im1 = ax1.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["CA"], cmap=cmap, vmin=-vmax1, vmax=vmax1)
1295
                     im1 = ax1.pcolormesh(self.GATED[chan]["GTT"], self.GATED[chan]["QQ"], self.GATED[chan]["CA"], cmap=cmap, vmin=-vmax1, vmax=vmax1)
1295
                     XS = self.bootstrap_sigma(pulse, chan)
1296
                     XS = self.bootstrap_sigma(pulse, chan)

+ 1
- 1
setup.py View File

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

Loading…
Cancel
Save