Skip to content

Commit

Permalink
write plot legend fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nizamibilal committed Jun 8, 2018
1 parent 53ab574 commit fe78a28
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/write_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def write_fig(file_name, pca, out_dir, title):
plt.ylabel('PC2')
plt.title(title)
cbar = plt.colorbar()
cbar.set_label('Time [ps]')
cbar.set_label('#Frame')
fig.savefig(fname)

## # plot 1 and 3 PC
Expand All @@ -117,7 +117,7 @@ def write_fig(file_name, pca, out_dir, title):
plt.ylabel('PC3')
plt.title(title)
cbar = plt.colorbar()
cbar.set_label('Time [ps]')
cbar.set_label('#Frame')
fig.savefig(fname)

## # plot 2 and 3 PC
Expand All @@ -128,7 +128,7 @@ def write_fig(file_name, pca, out_dir, title):
plt.ylabel('PC3')
plt.title(title)
cbar = plt.colorbar()
cbar.set_label('Time [ps]')
cbar.set_label('#Frame')
fig.savefig(fname)
return;

Expand Down

0 comments on commit fe78a28

Please sign in to comment.