@@ -26,14 +26,22 @@ def parse(fname):
26
26
# overwrite with fancier labels
27
27
xlabel = r'$\log(\rho/{\rm g\,cm^{-3}})$'
28
28
ylabel = r'$\log(T/{\rm K})$'
29
- title = r'MESA EOS Regions ($X=0.7$, $Z=0.02$)'
30
29
31
30
eosDT , Yran , Xran = parse ('eos_plotter.dat' )
32
31
33
32
apjcolwidth = 3.38
34
33
# set up plot and labels
35
34
#fig, ax = plt.subplots(figsize=(apjcolwidth,apjcolwidth*4./5.)) # for paper figures
36
35
fig , ax = plt .subplots (figsize = (5 ,4 )) # for website pngs
36
+
37
+ ## for solar composition plot
38
+ title = r'MESA EOS Regions ($X=0.7$, $Z=0.02$)'
39
+ ax .text (4.0 ,2.3 ,'no coverage' ,fontsize = 'small' )
40
+
41
+ ## for Z = 1 plot
42
+ #title = r'MESA EOS Regions ($X=0.0$, $Z=1.0$)'
43
+ #ax.text(4.8,2.3,'no coverage',fontsize='small')
44
+
37
45
ax .set_title (title )
38
46
ax .set_xlabel (xlabel )
39
47
ax .set_ylabel (ylabel )
@@ -48,9 +56,9 @@ def parse(fname):
48
56
cmap = colors .ListedColormap (my_colors )
49
57
bounds = [- 0.5 , 0.5 , 1.5 , 2.5 , 3.5 , 5.5 , 7.5 ]
50
58
norm = colors .BoundaryNorm (bounds , cmap .N )
59
+ cmap .set_under ('white' )
51
60
52
61
pcol = ax .pcolormesh (Xran , Yran , eosDT [...,2 ], shading = 'nearest' , cmap = cmap , norm = norm , rasterized = True )
53
- pcol .set_edgecolor ('face' )
54
62
cax = fig .colorbar (pcol , ticks = [0 , 1 , 2 , 3 , 4.5 , 6.5 ])
55
63
cax .set_label ('' )
56
64
cax .ax .tick_params (labelsize = 'x-small' )
0 commit comments