Skip to content

Commit 57efe7f

Browse files
authored
Merge pull request #80 from jehyunlee/master
[MOD] removal of 'figures' for savefig() commands
2 parents aa19622 + bf99b2a commit 57efe7f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmocean/plots.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ def plot_lightness(saveplot=False):
5555
label.set_rotation(60)
5656

5757
if saveplot:
58-
fig.savefig('figures/lightness.png', bbox_inches='tight')
59-
fig.savefig('figures/lightness.pdf', bbox_inches='tight')
58+
fig.savefig('cmocean_lightness.png', bbox_inches='tight')
59+
fig.savefig('cmocean_lightness.pdf', bbox_inches='tight')
6060

6161
plt.show()
6262

@@ -109,8 +109,8 @@ def plot_gallery(saveplot=False):
109109
ax.set_axis_off()
110110

111111
if saveplot:
112-
fig.savefig('figures/gallery.pdf', bbox_inches='tight')
113-
fig.savefig('figures/gallery.png', bbox_inches='tight')
112+
fig.savefig('cmocean_gallery.pdf', bbox_inches='tight')
113+
fig.savefig('cmocean_gallery.png', bbox_inches='tight')
114114

115115
plt.show()
116116

@@ -132,8 +132,8 @@ def wrap_viscm(cmap, dpi=100, saveplot=False):
132132
plt.show()
133133

134134
if saveplot:
135-
fig.savefig('figures/eval_' + cmap.name + '.png', bbox_inches='tight', dpi=dpi)
136-
fig.savefig('figures/eval_' + cmap.name + '.pdf', bbox_inches='tight', dpi=dpi)
135+
fig.savefig('cmocean_eval_' + cmap.name + '.png', bbox_inches='tight', dpi=dpi)
136+
fig.savefig('cmocean_eval_' + cmap.name + '.pdf', bbox_inches='tight', dpi=dpi)
137137

138138

139139
def test(cmap, fig=None, ax=None):

0 commit comments

Comments
 (0)