How to do the astronomical symbol “\sun” in PyX
问题 I've been trying to put the astronomical symbol of the sun on a graph using PyX, but so for with no success. The code I have is the following: from pyx import * from pylab import * x=arange(1,5,0.1) y=exp(-(x-3.0)**2/(2.0*0.5**2))/sqrt(2.0*pi*0.5**2) ###################### g=graph.graphxy(width=8,y=graph.axis.linear(title=r"Fraction of DM halos"),x=graph.axis.linear(min=1,title=r"Mass ($10^{11}M_{\sun}$)")) g.plot(graph.data.values(x=x,y=y),styles=[graph.style.histogram()]) g.writeEPSfile(