Hello World from OSS Silicon Valley


HowToUse/Python/2.7

_ Prerequisite

_ Install&Setup

If you have Ubuntu server, you should have python by default. But in case you wish to switch version of your python, you can refer HowToUse/Virtualenv/15.0 as needed.

_ HowToUse

_ Create graph with matplotlib

Step.1
Install necessary modules.
$ pip install numpy
$ pip install matplotlib
Step.2
Prepare source code like this
Step.3
Execute the program.
$ python <source file>
HowToUse_fig1.png

_ Show image with matplotlib

Step.1
Install Tkinter.
$ sudo apt-get install python-tk
Step.2
Install necessary modules.
$ pip install matplotlib
Step.3
Prepare source code like this
Step.4
Execute the program.
$ python <source file>
HowToUse_fig2.png

_ Author

S.Yatsuzuka

 
Attach file: fileHowToUse_fig2.png 211 download [Information] fileHowToUse_fig1.png 225 download [Information]
Last-modified: 2016-11-13 (Sun) 02:24:13 (3022d)