Graph drawing with IPython Notebook

Install IPython Notebook

Environment: Ubuntu 14.04 LTS

Install IPython Notebook

$ sudo apt-get install ipython-notebook

Installation of numerical calculation library and graph drawing library

$ sudo apt-get install python-matplotlib python-scipy python-pandas python-sympy python-nose

Launch IPython Notebook

$ ipython notebook

When you type the command, IPython Notebook starts in the browser

ipython_new.png

Example: Draw a 3D bubble chart

from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt

fig = plt.figure()
ax = fig.gca(projection='3d')
colors = ('r', 'g', 'b', 'k')
for c in colors:
    x = np.random.sample(30)
    y = np.random.sample(30)
    ax.scatter(x, y, 0, zdir='y', c=c)

ax.legend()
ax.set_xlim3d(0, 1)
ax.set_ylim3d(0, 1)
ax.set_zlim3d(0, 1)

plt.show()

ipython_notebook.png

Recommended Posts

Graph drawing with IPython Notebook
Graph drawing with jupyter (ipython notebook) + matplotlib + vagrant
Parallel computing with iPython notebook
Graph drawing method with matplotlib
Play with Jupyter Notebook (IPython Notebook)
Run Apache-Spark with IPython Notebook
Use Bokeh with IPython Notebook
R & D life with iPython notebook
Build IPython Notebook environment with boot2docker
Use apache Spark with jupyter notebook (IPython notebook)
"LIVE" HTML presentation with IPython 3.0.0-dev, IPython Notebook
ipython notebook installation
IPython Notebook Recommendations
Draw a graph with PyQtGraph Part 1-Drawing
Rich cell output with Jupyter Notebook (IPython)
How to debug with Jupyter or iPython Notebook
Create a table of contents with IPython notebook
Graph drawing using matplotlib
Band graph with matplotlib
Start IPython with virtualenv
Real-time drawing with matplotlib
Drawing with Python Tinker
Make slides with iPython
Remotely connect IPython notebook
Data analysis environment construction with Python (IPython notebook + Pandas)
Drawing a tree structure with D3.js in Jupyter Notebook
EC2 provisioning with Vagrant + Jupyter (IPython Notebook) on Docker
Pepper-kun remote control environment construction with Docker + IPython Notebook
[Machine learning] Start Spark with iPython Notebook and try MLlib
I want to use R functions easily with ipython notebook
Graph Excel data with matplotlib (1)
[IPython] How to Share IPython Notebook
When using optparse with iPython
Using Graphviz with Jupyter Notebook
Drawing GoogLeNet with caffe's draw_net
Draw a graph with NetworkX
Use pip with Jupyter Notebook
Create graph with plotly button
Displaying strings on IPython Notebook
How to use IPython Notebook
Use Cython with Jupyter Notebook
Launch the IPython notebook server
Run IPython Notebook on Docker
Draw a graph with networkx
reload in django shell with ipython
Draw a graph with Julia + PyQtGraph (2)
Visualize decision trees with jupyter notebook
Make a sound with Jupyter notebook
Script execution at startup with ipython
Learn with PyTorch Graph Convolutional Networks
Note: Graph drawing termplotlib on terminal
Draw a graph with Julia + PyQtGraph (1)
Output the call graph with PyCallGraph
Use markdown with jupyter notebook (with shortcut)
Add more kernels with Jupyter Notebook
Convenient analysis with Pandas + Jupyter notebook
Draw a graph with pandas + XlsxWriter
Let's make a graph with python! !!
Batch processing notes in IPython Notebook
Make a nice graph with plotly
Draw a graph with PySimple GUI