Here are the contents of the cell I am trying to execute:
params = {
'axes.labelsize': 20,
'font.size': 20,
'legend.fontsize': 14,
# 'xtick.labelsize': 16,
'xtick.major.width': 3,
'xtick.minor.width': 2,
'xtick.major.size': 8,
'xtick.minor.size': 5,
'xtick.direction': 'in',
'xtick.top': True,
'lines.linewidth':3,
'axes.linewidth':3,
'axes.labelweight':3,
'axes.titleweight':3,
'ytick.major.width':3,
'ytick.minor.width':2,
'ytick.major.size': 8,
'ytick.minor.size': 5,
'ytick.direction': 'in',
'ytick.right': True,
# 'ytick.labelsize': 20,
'text.usetex': True,
'text.latex.preamble': r'\boldmath',
'figure.figsize': [7,9]
}
plt.rcParams.update(params)
#plt.plot(g0-i0,i0,'k.',alpha=0.01)
plt.plot(g0[star & cen]-i0[star & cen],i0[star & cen],'c.',alpha=0.2)
plt.ylim(25.8,16.8)
plt.xlim(-1,4)
plt.xlabel(r'$(g-i)_0$')
plt.ylabel(r'$i_0$')
plt.minorticks_on()