import matplotlib.pyplot as plt
%matplotlib inline
import numpy as np
x=np.linspace(0,5,11)
y=x**2
fig=plt.figure()
ax=fig.add_axes([0,0,1,1])
ax.plot(x,y)
ax.set_title('Title')
fig=plt.figure()
ax=fig.add_axes([0,0,1,1])
ax.plot(x,y,color='#FF8c00',linewidth=1,alpha=0.5,linestyle='--',marker='o',markersize=5) #rgb hex code and alha is transparency
%matplotlib inline
import numpy as np
x=np.linspace(0,5,11)
y=x**2
fig=plt.figure()
ax=fig.add_axes([0,0,1,1])
ax.plot(x,y)
ax.set_title('Title')
fig=plt.figure()
ax=fig.add_axes([0,0,1,1])
ax.plot(x,y,color='#FF8c00',linewidth=1,alpha=0.5,linestyle='--',marker='o',markersize=5) #rgb hex code and alha is transparency
No comments:
Post a Comment