Skip to content

Commit e5d3bca

Browse files
committed
fix scale with width
1 parent fa18fb2 commit e5d3bca

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

lectures/about_py.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,13 @@ The most popular and comprehensive Python library for creating figures and graph
416416
Example 2D plot with embedded LaTeX annotations
417417

418418
```{figure} /_static/lecture_specific/about_py/qs.png
419-
:scale: 75
419+
:width: 75%
420420
```
421421

422422
Example contour plot
423423

424424
```{figure} /_static/lecture_specific/about_py/bn_density1.png
425-
:scale: 70
425+
:width: 70%
426426
```
427427

428428
Example 3D plot

lectures/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ You will spend a lot of time debugging code, so it is important to [learn how to
367367
If you are using a newer version of Jupyter, you should see a bug icon on the right end of the toolbar.
368368

369369
```{figure} /_static/lecture_specific/getting_started/debug.png
370-
:scale: 80%
370+
:width: 80%
371371
:figclass: auto
372372
```
373373

lectures/matplotlib.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Place all the curves in the same figure.
451451
The output should look like this
452452

453453
```{figure} /_static/lecture_specific/matplotlib/matplotlib_ex1.png
454-
:scale: 130
454+
:width: 130%
455455
```
456456

457457
```{exercise-end}

lectures/pandas.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ of fields such as data science and machine learning.
3535
Here's a popularity comparison over time against Matlab and STATA courtesy of Stack Overflow Trends
3636

3737
```{figure} /_static/lecture_specific/pandas/pandas_vs_rest.png
38-
:scale: 100
38+
:width: 100%
3939
```
4040

4141
Just as [NumPy](http://www.numpy.org/) provides the basic array data type plus core array operations, pandas
@@ -674,7 +674,7 @@ ticker = read_data(ticker_list)
674674
Complete the program to plot the result as a bar graph like this one:
675675

676676
```{figure} /_static/lecture_specific/pandas/pandas_share_prices.png
677-
:scale: 80
677+
:width: 80%
678678
```
679679

680680
```{exercise-end}
@@ -740,7 +740,7 @@ indices_list = {'^GSPC': 'S&P 500',
740740
Complete the program to show summary statistics and plot the result as a time series graph like this one:
741741

742742
```{figure} /_static/lecture_specific/pandas/pandas_indices_pctchange.png
743-
:scale: 80
743+
:width: 80%
744744
```
745745

746746
```{exercise-end}

lectures/parallelization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ Now, let's look at the output of the htop system monitor on our machine while
133133
this code is running:
134134

135135
```{figure} /_static/lecture_specific/parallelization/htop_parallel_npmat.png
136-
:scale: 80
136+
:width: 80%
137137
```
138138

139139
We can see that 4 of the 8 CPUs are running at full speed.

lectures/python_by_example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ process $\epsilon_0, \epsilon_1, \ldots, \epsilon_T$, where each draw $\epsilon_
3636
In other words, we want to generate figures that look something like this:
3737

3838
```{figure} /_static/lecture_specific/python_by_example/test_program_1_updated.png
39-
:scale: 120
39+
:width: 120%
4040
```
4141

4242
(Here $t$ is on the horizontal axis and $\epsilon_t$ is on the

0 commit comments

Comments
 (0)