Browse Source

small change to colours

HEAD
Trevor Irons 7 years ago
parent
commit
5e163d5055
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      akvo/tressel/mrsurvey.py

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

@@ -1099,7 +1099,7 @@ class GMRDataProcessor(SNMRDataProcessor):
1099 1099
                     canvas.ax1.set_xlabel(r"$\nu$ [Hz]", fontsize=8)
1100 1100
                     canvas.ax1.set_ylabel(r"$q_{eff}$ [A$\cdot$sec]", fontsize=8)
1101 1101
                     if nstack > 1:
1102
-                        canvas.ax1.plot(v, qeff, color=scolours+istack*np.array((0,1/nstack,-1/nstack) )) # eff current
1102
+                        canvas.ax1.plot(v, qeff, color=scolours+istack*np.array((0.,1./(nstack+1.),-1./(nstack+1.)) )) # eff current
1103 1103
                     else:
1104 1104
                         canvas.ax1.plot(v, qeff, color=scolours) # eff current
1105 1105
                     self.DATADICT[pulse]["qeff"][ipm][istack] = qeff
@@ -1139,7 +1139,7 @@ class GMRDataProcessor(SNMRDataProcessor):
1139 1139
                         ilabel = False
1140 1140
                     else:    
1141 1141
                         ax.scatter(ipm, self.DATADICT[pulse]["qeff"][ipm][stack][icv], facecolors='none', edgecolors=scolours)
1142
-                    scolours += np.array((0,1/nstack,-1/nstack))
1142
+                    scolours += np.array((0,1./(nstack+1),-1/(nstack+1.)))
1143 1143
 
1144 1144
                     percent = int(1e2* (float)((istack)+ipm*self.DATADICT["nPulseMoments"]) / 
1145 1145
                                        (float)(len(self.DATADICT["PULSES"])*self.DATADICT["nPulseMoments"]*nstack))

Loading…
Cancel
Save