Skip to content

Commit

Permalink
Add figure pdf version
Browse files Browse the repository at this point in the history
  • Loading branch information
chonlei committed Jul 18, 2019
1 parent 06fcd83 commit db838a3
Show file tree
Hide file tree
Showing 17 changed files with 23 additions and 15 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added room-temperature-only/figs/paper/rmsd-hist.pdf
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@
file_name, cell), bbox_inch='tight', pad_inches=0, dpi=100)
plt.savefig('%s/fitting-and-validation-%s_%s-zoom.png' % (savedir, file_name, \
cell), bbox_inch='tight', pad_inches=0, dpi=300)
# plt.savefig('%s/fitting-and-validation-%s_%s-zoom.pdf' % (savedir, \
# file_name, cell), format='pdf', bbox_inch='tight', pad_inches=0)
plt.savefig('%s/fitting-and-validation-%s_%s-zoom.pdf' % (savedir, file_name, \
cell), format='pdf', bbox_inch='tight', pad_inches=0)

print('Done')
10 changes: 5 additions & 5 deletions room-temperature-only/paper-fitting-and-validation-recordings.py
Original file line number Diff line number Diff line change
Expand Up @@ -423,19 +423,19 @@
if prt not in protocol_iv:
axes[ai, aj].plot(times, data / norm,
lw=0.2, alpha=0.1,
c=colour_list[i_CELL])
c=colour_list[i_CELL], rasterized=True)
else:
iv_i = protocols.get_corrected_iv(data, times,
*protocol_iv_args[prt]())
iv_v = protocol_iv_v[prt]() * 1000 # mV
axes[ai, aj].plot(iv_v, iv_i / np.max(iv_i), lw=0.5, alpha=0.5,
c=colour_list[i_CELL])
c=colour_list[i_CELL], rasterized=True)

# Plot inset
if prt in add_inset.keys(): # not in provtocol_iv
axins[ai, aj].plot(times, data / norm,
lw=0.2, alpha=0.1,
c=colour_list[i_CELL])
c=colour_list[i_CELL], rasterized=True)


#
Expand All @@ -447,7 +447,7 @@
bbox_inch='tight', pad_inches=0, dpi=100)
plt.savefig('%s/fitting-and-validation-recordings-samey.png' % savedir,
bbox_inch='tight', pad_inches=0, dpi=300)
# plt.savefig('%s/fitting-and-validation-recordings.pdf' % savedir,
# format='pdf', bbox_inch='tight', pad_inches=0)
plt.savefig('%s/fitting-and-validation-recordings-samey.pdf' % savedir,
format='pdf', bbox_inch='tight', pad_inches=0, dpi=300)

print('Done')
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,7 @@
plt.savefig('%s/fitting-and-validation-selected-cells-zoom.png' % savedir,
bbox_inch='tight', pad_inches=0, dpi=300)
# This pdf version can get up to 40+MB!
# plt.savefig('%s/fitting-and-validation-selected-cells-zoom.pdf' % savedir,
# format='pdf', bbox_inch='tight', pad_inches=0)
plt.savefig('%s/fitting-and-validation-selected-cells-zoom.pdf' % savedir,
format='pdf', bbox_inch='tight', pad_inches=0)

print('Done')
2 changes: 2 additions & 0 deletions room-temperature-only/paper-rmsd-hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,5 +365,7 @@
grid.update(wspace=0.2, hspace=0.0)
plt.savefig('%s/rmsd-hist.png' % (savedir), bbox_inch='tight', pad_inches=0,
dpi=300)
plt.savefig('%s/rmsd-hist.pdf' % (savedir), format='pdf', bbox_inch='tight',
pad_inches=0)

print('Done')
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -681,5 +681,7 @@ def boolean_indexing(v, fillval=np.nan):
prt), bbox_inch='tight', pad_inches=0, dpi=300)
plt.savefig('%s/fitting-and-validation-eyring-q10-%s-v2.png' % (savedir, prt),
bbox_inch='tight', pad_inches=0, dpi=500)
plt.savefig('%s/fitting-and-validation-eyring-q10-%s-v2.pdf' % (savedir, prt),
format='pdf', bbox_inch='tight', pad_inches=0)

print('Done')
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
if prt not in protocol_iv:
axes[ai, aj].plot(times, data / norm_data,
lw=0.2, alpha=0.1,
c=colour_list[i_CELL])
c=colour_list[i_CELL], rasterized=True)
else:
iv_i = protocols.get_corrected_iv(data, times,
*protocol_iv_args[prt]())
Expand All @@ -388,7 +388,7 @@
if prt in add_inset.keys(): # not in provtocol_iv
axins[ai, aj].plot(times, data / norm_data,
lw=0.2, alpha=0.1,
c=colour_list[i_CELL])
c=colour_list[i_CELL], rasterized=True)


#
Expand All @@ -400,7 +400,7 @@
bbox_inch='tight', pad_inches=0, dpi=100)
plt.savefig('%s/fitting-and-validation-recordings-all.png' % savedir,
bbox_inch='tight', pad_inches=0, dpi=300)
# plt.savefig('%s/fitting-and-validation-recordings.pdf' % savedir,
# format='pdf', bbox_inch='tight', pad_inches=0)
plt.savefig('%s/fitting-and-validation-recordings-all.pdf' % savedir,
format='pdf', bbox_inch='tight', pad_inches=0, dpi=300)

print('Done')
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,8 @@
plt.savefig('%s/fitting-and-validation-%s-zoom.png' % (savedir, file_id),
bbox_inch='tight', pad_inches=0, dpi=300)
# This pdf version can get up to 40+MB!
# plt.savefig('%s/fitting-and-validation-selected-cells-zoom.pdf' % savedir,
# format='pdf', bbox_inch='tight', pad_inches=0)
if '--pdf' in sys.argv:
plt.savefig('%s/fitting-and-validation-%s-zoom.pdf' % (savedir, file_id),
format='pdf', bbox_inch='tight', pad_inches=0)

print('Done')
3 changes: 3 additions & 0 deletions temperature-dependency/paper-rmsd-hist.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,5 +375,8 @@
grid.update(wspace=0.2, hspace=0.0)
plt.savefig('%s/rmsd-hist-%s.png' % (savedir, file_id), bbox_inch='tight',
pad_inches=0, dpi=300)
if '--pdf' in sys.argv:
plt.savefig('%s/rmsd-hist-%s.pdf' % (savedir, file_id), format='pdf',
bbox_inch='tight', pad_inches=0)

print('Done')

0 comments on commit db838a3

Please sign in to comment.