Logo

Every project should have a logo. Let's create one.



In [1]:
%pylab inline
import numpy as np
import matplotlib.pyplot as plt


Populating the interactive namespace from numpy and matplotlib

In [10]:
N = 1000
scale = 100.
phi = 0.22

fig = plt.figure(1,(8,5),dpi=800)
plt.axis("off")
plt.xlim(-30,65)
plt.ylim(-40,40)
theta1 = 4*np.pi*np.random.random(N)
r1 = np.exp((theta1)*np.tan(phi))

xx1 = r1*np.cos(theta1-0.7)
yy1 = r1*np.sin(theta1-0.7)

xx1+=np.random.normal(xx1, 0.1*r1**1.33, N)
yy1+=np.random.normal(yy1, 0.1*r1**1.33, N)


theta2 = 4*np.pi*np.random.random(N)
r2 = np.exp((theta2)*np.tan(phi))

xx2 = r2*np.cos(theta2-np.pi-0.7)
yy2 = r2*np.sin(theta2-np.pi-0.7)

xx2+=np.random.normal(xx2, 0.1*r2**1.33, N)
yy2+=np.random.normal(yy2, 0.1*r2**1.33, N)

s1 = scale**np.random.random(N)
plt.scatter(xx1,yy1,color='b',s=s1,alpha=0.2)

s2 = scale**np.random.random(N)
plt.scatter(xx2,yy2,color='c',s=s2,alpha=0.2)

"""m1 = 'C4P'
m2 = 'Computing for Physics'

text(15., -8., m1, fontsize=108,family='serif')
text(16.,-15, m2, fontsize=18,family='serif',style='italic')
"""

m1 = 'C'
m2 = '4'
m3 = 'P'
m4 = 'Computing'
m5 = 'for'
m6 = 'Physics'

text(15., -8., m1, fontsize=108,family='serif')
text(30, -15., m2, fontsize=108,family='serif')
text(45, -8.75, m3, fontsize=108,family='serif')
text(15.,-14, m4, fontsize=16,family='serif',style='italic')
#text(36.,-20, m5, fontsize=16,family='serif',style='italic')
text(44,-14, m6, fontsize=16,family='serif',style='italic')

plt.savefig('C4PLogo.png',dpi=300)
plt.show()



All content is under a modified MIT License, and can be freely used and adapted. See the full license text here.