This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
cs401r_w2016:lab1 [2017/01/11 22:32] wingated |
cs401r_w2016:lab1 [2021/06/30 23:42] (current) |
||
|---|---|---|---|
| Line 132: | Line 132: | ||
| ---- | ---- | ||
| ====Hints:==== | ====Hints:==== | ||
| + | |||
| + | When using an ipython notebook, it's nice to make your plots show up inline. To do this, add the following lines to the first cell of your notebook: | ||
| + | |||
| + | <code python> | ||
| + | |||
| + | # this tells seaborn and matplotlib to generate plots inline in the notebook | ||
| + | %matplotlib inline | ||
| + | |||
| + | # these two lines allow you to control the figure size | ||
| + | %pylab inline | ||
| + | pylab.rcParams['figure.figsize'] = (16.0, 8.0) | ||
| + | |||
| + | </code> | ||
| The following python functions might be helpful: | The following python functions might be helpful: | ||