In [1]:
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 5, 11)
y = x ** 2
%matplotlib inline
In [36]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y)
Out[36]:
In [5]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="red")
Out[5]:
In [37]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000")
Out[37]:
In [39]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,linewidth=2)
Out[39]:
In [40]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,linewidth=40)
Out[40]:
In [41]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,linewidth=100)
Out[41]:
In [21]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,linewidth=100,alpha=0.5)
Out[21]:
In [23]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,linewidth=100,alpha=0.1)
Out[23]:
In [42]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,lw=7,alpha=0.6)
Out[42]:
In [43]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,lw=3,linestyle="--")
Out[43]:
In [44]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,lw=3,linestyle="-.")
Out[44]:
In [33]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,lw=3,linestyle=":")
Out[33]:
In [46]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,lw=3,linestyle="steps")
Out[46]:
In [47]:
fig = plt.figure()
ax = fig.add_axes([0,0,1,1])
ax.plot(x, y,color="#808000" ,lw=3,ls="steps")
Out[47]:
No comments:
Post a Comment