Skip to content

Commit 7c2b4d7

Browse files
committed
add png, latex fix
1 parent fa5e972 commit 7c2b4d7

File tree

5 files changed

+5
-2
lines changed

5 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install:
3030
- conda list
3131
- pip install --user coloredlogs
3232
- pip install --user travis-sphinx
33-
- sudo apt-get install -y texlive-latex-recommended
33+
- sudo apt-get install -y texlive-latex-recommended texlive-fonts-recommended
3434

3535
script:
3636
- ./docs/update_apidocs.sh

projects/parallelSDC/newton_vs_sdc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def plot_graphs(cwd=''):
165165

166166
assert os.path.isfile(fname + '.pdf'), 'ERROR: plotting did not create PDF file'
167167
assert os.path.isfile(fname + '.pgf'), 'ERROR: plotting did not create PGF file'
168+
assert os.path.isfile(fname + '.png'), 'ERROR: plotting did not create PNG file'
168169

169170

170171
if __name__ == "__main__":

projects/parallelSDC/nonlinear_playground.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ def plot_graphs():
176176

177177
assert os.path.isfile(fname + '.pdf'), 'ERROR: plotting did not create PDF file'
178178
assert os.path.isfile(fname + '.pgf'), 'ERROR: plotting did not create PGF file'
179+
assert os.path.isfile(fname + '.png'), 'ERROR: plotting did not create PNG file'
179180

180181

181182
if __name__ == "__main__":

projects/parallelSDC/preconditioner_playground.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def plot_iterations():
238238

239239
assert os.path.isfile(fname + '.pdf'), 'ERROR: plotting did not create PDF file'
240240
assert os.path.isfile(fname + '.pgf'), 'ERROR: plotting did not create PGF file'
241-
241+
assert os.path.isfile(fname + '.png'), 'ERROR: plotting did not create PNG file'
242242

243243
if __name__ == "__main__":
244244
# main()

pySDC/helpers/plot_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ def newfig(textwidth, scale):
6060
def savefig(filename):
6161
plt.savefig('{}.pgf'.format(filename), rasterized=True, bbox_inches='tight')
6262
plt.savefig('{}.pdf'.format(filename), rasterized=True, bbox_inches='tight')
63+
plt.savefig('{}.png'.format(filename), rasterized=True, bbox_inches='tight')

0 commit comments

Comments
 (0)