Installation of matplotlib (Python 3.3.2)

(Addition 2013/10/21) -Added the installation of SciPy

Installation

It seems that a FORTRAN compiler is required for scipy installation.

% brew install gfortran

Next, install various things with pip.

% pip install ipython

% pip install readline

% pip install numpy

% CC=clang CXX=clang FFLAGS=-ff2c pip install scipy

% pip install matplotlib

ipython

IPython is a shell for running Python interactively. Compared to the original Python, it has enhanced type inference, added grammar for interactive execution, and can be complemented with code highlighting and tabs. IPython is published as part of the SciPy package. Source: Wikipedia (IPython)

readline Library for character string input. Make ipython easier to use.

numpy

An extension module for Python that adds support for typed multidimensional arrays (which can represent vectors, matrices, etc.) to Python for efficient numerical calculations, and is large-scale for manipulating them. Provides a high-level library of mathematical functions. Source: Wikipedia (NumPy)

scipy

A library that enables high-dimensional scientific and technological calculations in addition to NumPy array and matrix operations. Source: Perfect Python Gijutsu-Hyoronsha Co., Ltd. P. 291

matplotlib

A graph drawing library for Python and its scientific computing library NumPy. Source: Wikipedia (matplotlib)

Make a symbolic link

If you are using virtualenv, ipython3 will be installed in .virtualenvs / virtual environment name / bin /, so make a symbolic link.

% cd ~/.virtualenvs/Virtual environment name/bin
% ln -s ipython3 ./ipython

Now you can start ipython from the terminal with ʻipython`.

Try to draw a graph

#Launch ipython
% ipython --pylab
In [1]: x = arange(0,1,0.1)

In [2]: y = 2*x

In [3]: plot(x,y)
Out[3]: [<matplotlib.lines.Line2D at 0x10cbbec10>]

figure_1.png

reference

-[Sessan's Diary-Install matplotlib in OS X Mountain Lion Environment](http://sessan.hatenablog.com/entry/2013/05/11/142547 "sessan's Diary-Install matplotlib in OS X Mountain Lion Environment" install") ・ @IT --Data Scientist Training Course for IT Engineers (3)Akiyoko blogF13 --Neural network with PyBrain --Installation

Recommended Posts

Installation of matplotlib (Python 3.3.2)
Installation of SciPy and matplotlib (Python)
Installation of Python, SciPy, matplotlib (Windows)
Installation of Python 3.3 rc1
Python installation
Python installation
Source installation and installation of Python
Installation of Anaconda3
Introduction of Python
Installation of CentOS 8
#Python basics (#matplotlib)
Basics of Python ①
Copy of python
My matplotlib (python)
Python installation 2020 (macOS)
Python3.4 installation notes
Introduction of Python
Installation of Visual studio code and installation of python
[Python] Japanese localization of matplotlib on Ubuntu
[Python] Operation of enumerate
List of python modules
Python basic course (2 Python installation)
Reinforcement learning 1 Python installation
Unification of Python environment
[Python] limit axis of 3D graph with Matplotlib
Copy of python preferences
Installation of OpenMDAO (version 1.7.1)
Basics of Python scraping basics
Python installation method Windows
Introduction of ferenOS 1 (installation)
[python] behavior of argmax
Usage of Python locals ()
the zen of Python
[Linux] Installation of nvm
Python 2.7 installation (yum) (CentOS 6.8)
[Python of Hikari-] Chapter 08-04 Module (Installation of external library)
# 4 [python] Basics of functions
Basic knowledge of Python
Code for checking the operation of Python Matplotlib
Sober trivia of python3
Summary of Python arguments
Application of Python 3 vars
Various processing of Python
Python 3.5 installation (yum) (CentOS 6.8)
Installation of dlib, cv2
I tried to summarize how to use matplotlib of python
Around the installation of the Python project management framework Trac
[Introduction to Python] Basic usage of the library matplotlib
[Python] Chapter 01-02 About Python (Execution and installation of development environment)
[Python] Correct usage of map
python (pyenv + pyenv-virtualenv) + CentOS7 installation
Python CMS Mezzanine installation procedure
Towards the retirement of Python2
Use matplotlib on Ubuntu 12 & Python
Summary of python file operations
Summary of Python3 list operations
Python --Quick start of logging
Recommendation of binpacking library of python
Python 3.6 installation procedure [for Windows]
Japanese display of matplotlib, seaborn
[python] Value of function object (?)