This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
cs501r_f2016:lab1 [2016/08/31 18:16] wingated |
cs501r_f2016:lab1 [2021/06/30 23:42] (current) |
||
|---|---|---|---|
| Line 138: | Line 138: | ||
| import matplotlib.pyplot as plt | import matplotlib.pyplot as plt | ||
| + | </code> | ||
| + | |||
| + | Here is a full setup for cairo in linux. | ||
| + | <code> | ||
| + | sudo apt-get install libcairo2-dev | ||
| + | git clone https://github.com/pygobject/pycairo.git | ||
| + | cd pycairo/ | ||
| + | python setup.py build | ||
| + | python setup.py install | ||
| + | </code> | ||
| + | |||
| + | Here is a setup for cairo in mac. | ||
| + | <code> | ||
| + | brew install cairo --use-clang | ||
| + | brew install py2cairo | ||
| </code> | </code> | ||