|
37 | 37 | "mpl.rcParams['pdf.fonttype'] = 42\n", |
38 | 38 | "mpl.rcParams['ps.fonttype'] = 42\n", |
39 | 39 | "\n", |
| 40 | + "colornames = ['#646464', '#666666', '#6a6a6a', '#6f6f6f', '#737373', '#787878', '#7d7d7d', '#828282', '#878787', '#8d8d8d', '#929292', '#989898', '#9e9e9e', '#a4a4a4', '#aaaaaa', '#b0b0b0', '#b6b6b6', '#bcbcbc', '#c2c2c2', '#c9c9c9', '#cfcfcf', '#d6d6d6', '#dcdcdc', '#e3e3e3', '#eaeaea', '#efefee', '#efeee5', '#efeddc', '#efecd3', '#eeebca', '#eeeac0', '#eee9b7', '#eee8ad', '#ede7a4', '#ede69a', '#ede590', '#ede487', '#ece37d', '#ece273', '#ece069', '#ecdf5f', '#ebde55', '#ebdd4b', '#ebdc41', '#ebdb37', '#ebd333', '#ebc933', '#ecbe32', '#ecb432', '#eda931', '#ee9e31', '#ee9330', '#ef8830', '#ef7d2f', '#f0722f', '#f0672e', '#f15c2e', '#f2512d', '#f2462d', '#f33b2c', '#f3302c', '#f4252b', '#f4192b', '#ef182f', '#e81834', '#e21939', '#db1a3e', '#d51a43', '#ce1b48', '#c71b4d', '#c11c52', '#ba1c58', '#b31d5d', '#ac1d62', '#a61e67', '#9f1e6c', '#981f72', '#911f77', '#8a207c', '#842182']\n", |
| 41 | + "custom_cmap = mpl.colors.LinearSegmentedColormap.from_list('custom', colornames, N=256)\n", |
| 42 | + "\n", |
40 | 43 | "# Create plot folder if needed\n", |
41 | 44 | "if not os.path.exists('../results/figures'):\n", |
42 | 45 | " os.mkdir('../results/figures')" |
|
102 | 105 | " ax[1, i].set_yticks([])\n", |
103 | 106 | " ax[1, i].set_xlabel('$k_x$ ($\\mathrm{\\AA}^{-1}$)', fontsize=15)\n", |
104 | 107 | " \n", |
105 | | - "cs00 = ax[0, 0].contourf(kxx, kyy, mpatch[0,...], 20, cmap='Spectral_r', vmin=-1.6, vmax=-1)\n", |
| 108 | + "cs00 = ax[0, 0].contourf(kxx, kyy, mpatch[0,...], 20, cmap=custom_cmap, vmin=-1.6, vmax=-1)\n", |
106 | 109 | "ax[0, 0].contour(cs00, colors='k', linestyles='-', linewidths=0.5)\n", |
107 | 110 | "ax[0, 0].text(0.65, 0.9, 'Band #1', fontsize=15, transform=ax[0,0].transAxes)\n", |
108 | 111 | "\n", |
109 | | - "cs10 = ax[1, 0].contourf(kxx, kyy, mpatch[1,:,:], 20, cmap='Spectral_r', vmin=-1.95, vmax=-1.4)\n", |
| 112 | + "cs10 = ax[1, 0].contourf(kxx, kyy, mpatch[1,:,:], 20, cmap=custom_cmap, vmin=-1.95, vmax=-1.4)\n", |
110 | 113 | "ax[1, 0].contour(cs10, colors='k', linestyles='-', linewidths=0.5)\n", |
111 | 114 | "ax[1, 0].text(0.65, 0.9, 'Band #2', fontsize=15, transform=ax[1,0].transAxes)\n", |
112 | 115 | " \n", |
113 | | - "cs01 = ax[0, 1].contourf(kxx, kyy, bands[0,...], 20, cmap='Spectral_r', vmin=-1.6, vmax=-1)\n", |
| 116 | + "cs01 = ax[0, 1].contourf(kxx, kyy, bands[0,...], 20, cmap=custom_cmap, vmin=-1.6, vmax=-1)\n", |
114 | 117 | "ax[0, 1].contour(cs01, colors='k', linestyles='-', linewidths=0.5)\n", |
115 | 118 | "\n", |
116 | | - "cs11 = ax[1, 1].contourf(kxx, kyy, bands[1,...], 20, cmap='Spectral_r', vmin=-1.95, vmax=-1.4)\n", |
| 119 | + "cs11 = ax[1, 1].contourf(kxx, kyy, bands[1,...], 20, cmap=custom_cmap, vmin=-1.95, vmax=-1.4)\n", |
117 | 120 | "ax[1, 1].contour(cs11, colors='k', linestyles='-', linewidths=0.5)\n", |
118 | 121 | "\n", |
119 | 122 | "plt.subplots_adjust(hspace=0.08, wspace=0.08)\n", |
|
180 | 183 | " ax[1, i].set_yticks([])\n", |
181 | 184 | " ax[1, i].set_xlabel('$k_x$ ($\\mathrm{\\AA}^{-1}$)', fontsize=15)\n", |
182 | 185 | " \n", |
183 | | - "cs00 = ax[0, 0].contourf(kxx, kyy, rcfb['bands'][0,ofs+1:-ofs+1,ofs:-ofs], 23, cmap='Spectral_r', vmax=-0.7, vmin=-1.2+minsft)\n", |
| 186 | + "cs00 = ax[0, 0].contourf(kxx, kyy, rcfb['bands'][0,ofs+1:-ofs+1,ofs:-ofs], 23, cmap=custom_cmap, vmax=-0.7, vmin=-1.2+minsft)\n", |
184 | 187 | "ax[0, 0].contour(cs00, colors='k', linestyles='-', linewidths=0.5)\n", |
185 | 188 | "ax[0, 0].text(0.65, 0.9, 'Band #1', fontsize=15, transform=ax[0,0].transAxes)\n", |
186 | 189 | "\n", |
187 | | - "cs10 = ax[1, 0].contourf(kxx, kyy, rcfb['bands'][1,ofs+1:-ofs+1,ofs:-ofs], 23, cmap='Spectral_r', vmax=-1.15, vmin=-1.55+minsft)\n", |
| 190 | + "cs10 = ax[1, 0].contourf(kxx, kyy, rcfb['bands'][1,ofs+1:-ofs+1,ofs:-ofs], 23, cmap=custom_cmap, vmax=-1.15, vmin=-1.55+minsft)\n", |
188 | 191 | "ax[1, 0].contour(cs10, colors='k', linestyles='-', linewidths=0.5)\n", |
189 | 192 | "ax[1, 0].text(0.65, 0.9, 'Band #2', fontsize=15, transform=ax[1,0].transAxes)\n", |
190 | 193 | " \n", |
191 | | - "cs01 = ax[0, 1].contourf(kxx, kyy, rfb['bands'][0,ofs+1:-ofs+1,ofs:-ofs], 23, cmap='Spectral_r', vmax=-0.7, vmin=-1.2+minsft)\n", |
| 194 | + "cs01 = ax[0, 1].contourf(kxx, kyy, rfb['bands'][0,ofs+1:-ofs+1,ofs:-ofs], 23, cmap=custom_cmap, vmax=-0.7, vmin=-1.2+minsft)\n", |
192 | 195 | "ax[0, 1].contour(cs01, colors='k', linestyles='-', linewidths=0.5)\n", |
193 | 196 | "\n", |
194 | | - "cs11 = ax[1, 1].contourf(kxx, kyy, rfb['bands'][1,ofs+1:-ofs+1,ofs:-ofs], 23, cmap='Spectral_r', vmax=-1.15, vmin=-1.55+minsft)\n", |
| 197 | + "cs11 = ax[1, 1].contourf(kxx, kyy, rfb['bands'][1,ofs+1:-ofs+1,ofs:-ofs], 23, cmap=custom_cmap, vmax=-1.15, vmin=-1.55+minsft)\n", |
195 | 198 | "ax[1, 1].contour(cs11, colors='k', linestyles='-', linewidths=0.5)\n", |
196 | 199 | "\n", |
197 | | - "cs02 = ax[0, 2].contourf(kxx, kyy, fitbs['b1'], 23, cmap='Spectral_r', vmax=-0.7, vmin=-1.2+minsft)\n", |
| 200 | + "cs02 = ax[0, 2].contourf(kxx, kyy, fitbs['b1'], 23, cmap=custom_cmap, vmax=-0.7, vmin=-1.2+minsft)\n", |
198 | 201 | "ax[0, 2].contour(cs02, colors='k', linestyles='-', linewidths=0.5)\n", |
199 | 202 | "\n", |
200 | | - "cs12 = ax[1, 2].contourf(kxx, kyy, fitbs['b2'], 23, cmap='Spectral_r', vmax=-1.15, vmin=-1.55+minsft)\n", |
| 203 | + "cs12 = ax[1, 2].contourf(kxx, kyy, fitbs['b2'], 23, cmap=custom_cmap, vmax=-1.15, vmin=-1.55+minsft)\n", |
201 | 204 | "ax[1, 2].contour(cs12, colors='k', linestyles='-', linewidths=0.5)\n", |
202 | 205 | "\n", |
203 | 206 | "cs03 = ax[0, 3].contourf(kxx, kyy, 1e3*(fitbs['b1'] - rfb['bands'][0,ofs+1:-ofs+1,ofs:-ofs]), 23, cmap='RdBu_r', vmax=12, vmin=-12)\n", |
|
0 commit comments