November 2018
Beginner to intermediate
214 pages
5h 2m
English
To generate a more complicated plot, generate a three-dimensional potential. This is called a Goldstone potential, which is an important energy potential in physics used to describe a lot of things, including the Higgs mechanism. We will look at the scatter plot of this Goldstone potential, as shown in the following snippet:
# Scatter plotfig = plt.figure()ax = fig.add_subplot(111, projection='3d')x,y = np.meshgrid(np.arange(-10,10,0.5), np.arange(-10,10,0.5))r = np.linalg.norm([x,y], axis=0)goldstone = -160*np.power(r,2)+np.power(r,4)ax.scatter(x,y,goldstone)

Read now
Unlock full access