Skip to content

Commit b40d7e8

Browse files
committed
test README.md snippet
1 parent be06f61 commit b40d7e8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ addons:
3131
- python-tk
3232

3333
before_install:
34-
- pip install pytest pytest-cov
34+
- pip install pytest pytest-cov code_extract
35+
- code_extract README.md test/readme_test.py --filter python,test
3536

3637
install:
3738
- pip install -r test_requirements.txt

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ sits on top of TikZ and describes graphs in terms of axes, data etc.
2020
Consequently, the output of matplotlib2tikz retains more information, can be
2121
more easily understood, and is more easily editable than [raw TikZ output](http://matplotlib.org/users/whats_new.html#pgf-tikz-backend).
2222
For example, the matplotlib figure
23-
```python
23+
```python,test
2424
import matplotlib.pyplot as plt
2525
from matplotlib import style
2626
import numpy as np
27+
2728
fig = plt.figure()
2829
style.use('ggplot')
2930
t = np.arange(0.0, 2.0, 0.1)

0 commit comments

Comments
 (0)