擅长:python、mysql、java
<p>调用<a href="http://pandas.pydata.org/pandas-docs/version/0.15.0/generated/pandas.DataFrame.plot.html?highlight=plot#pandas-dataframe-plot" rel="noreferrer">^{<cd2>}</a>时,可以指定绘制线的<code>style</code>:</p>
<pre><code>df.plot(x='col_name_1', y='col_name_2', style='o')
</code></pre>
<p>参数<code>style</code>也可以是<code>dict</code>或<code>list</code>,例如:</p>
<pre><code>import numpy as np
import pandas as pd
d = {'one' : np.random.rand(10),
'two' : np.random.rand(10)}
df = pd.DataFrame(d)
df.plot(style=['o','rx'])
</code></pre>
<p>所有接受的样式格式都列在<a href="http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.plot" rel="noreferrer">^{<cd6>}</a>的文档中。</p>
<p><img src="https://i.stack.imgur.com/3FXAE.png" alt="Output"/></p>