plot_emoji 2¶

Query¶

import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

"""
Create matrix of ones
"""
a = np.ones((5,10))
# end

"""
Make a points plot of a sin wave 
Use a smiley face emoji unicode as marker
Save to emoji.png
"""

Output¶

import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt

"""
Create matrix of ones
"""
a = np.ones((5,10))
# end

"""
Make a points plot of a sin wave 
Use a smiley face emoji unicode as marker
Save to emoji.png
"""
x = np.linspace(0,10,100)
y = np.sin(x)
plt.plot(x,y,'o',markersize=10,marker=u'\U0001F600')
plt.savefig('emoji.png')
Unrecognized marker style '😀'
<string>:19: UserWarning: marker is redundantly defined by the 'marker' keyword argument and the fmt string "o" (-> marker='o'). The keyword argument will take precedence.

Evaluate¶

Go to Google Form