User Tools

Site Tools


cs501r_f2016:lab1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cs501r_f2016:lab1 [2016/08/29 16:32]
admin
cs501r_f2016:lab1 [2021/06/30 23:42] (current)
Line 119: Line 119:
  
 import matplotlib.pyplot as plt import matplotlib.pyplot as plt
-plt.plot_date 
  
 plt.legend plt.legend
Line 127: Line 126:
 plt.tight_layout plt.tight_layout
  
 +</​code>​
 +
 +Also note that to get plots to show up inline, you may have to add the magic incantation **in the first cell**:
 +
 +<code python>
 +
 +%matplotlib inline
 +
 +import matplotlib
 +import numpy as np
 +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>​
  
cs501r_f2016/lab1.1472488364.txt.gz ยท Last modified: 2021/06/30 23:40 (external edit)