Skip to content

Commit 1027b7f

Browse files
author
gh-actions
committed
auto commit from showyourwork tests
1 parent d0fdd76 commit 1027b7f

3 files changed

Lines changed: 20 additions & 1 deletion

File tree

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
</a>
1919
</p>
2020

21-
An open source scientific article created using the [showyourwork](https://github.com/showyourwork/showyourwork) workflow.
21+
*This is an automatically generated test for [showyourwork](https://github.com/showyourwork/showyourwork) generated from the file [test_env.py](https://github.com/showyourwork/showyourwork/blob/main/tests/integration/test_env.py).*
22+
23+
Test that showyourwork creates a conda environment by default

src/scripts/test_figure.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import matplotlib.pyplot as plt
2+
import numpy as np
3+
import paths
4+
np.random.seed(0)
5+
data = np.random.randn(100, 10)
6+
fig = plt.figure(figsize=(7, 6))
7+
plt.plot(data)
8+
fig.savefig(paths.figures / 'test_figure.pdf', bbox_inches='tight', dpi=300)

src/tex/ms.tex

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,13 @@ \section{Introduction}
5959

6060
\bibliography{bib}
6161

62+
\begin{figure}[ht!]
63+
\script{test_figure.py}
64+
\begin{centering}
65+
\includegraphics[width=\linewidth]{figures/test_figure.pdf}
66+
\caption{A test figure.}
67+
\label{fig:test_figure}
68+
\end{centering}
69+
\end{figure}
70+
6271
\end{document}

0 commit comments

Comments
 (0)