2.1.8.2.Plotly and Cufflinks
2.1.8.2.Plotly and Cufflinks
1. 使用library
import pandas as pd
import numpy as np
from plotly import __version__from plotly import __version__
print(__version__)%matplotlib inlineimport cufflinks as cf
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
init_notebook_mode(connected=True)
cf.go_offline()df = pd.DataFrame(np.random.randn(100, 4), columns='A B C D'.split()) df.head()df2 = pd.DataFrame({'Category':['A', 'B', 'C'], 'Values':[32, 43, 50]}) df2.head()
2. 畫圖的基本操作

3. Scatter plot


4. Bar plot


5. Box plot

6.3D surface plot



7. Histogram plot

8. Spread plot

9. Bubble plot

10. Scatter matrix plot

Previous2.1.8.1.Introduction to Plotly and CufflinksNext2.1.9. Python for Data Visualization - Geographical plotting
Last updated

