Skip to content

Commit

Permalink
Add dashed lines that pass (0,0)
Browse files Browse the repository at this point in the history
  • Loading branch information
ycanerol committed Jun 30, 2017
1 parent 4806a8b commit f19d9a1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion onoffplotter_dimos.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,8 @@

plt.subplot(2, 2, 2)
plt.plot(np.linspace(-1, 1), np.linspace(-1, 1), '--', alpha=.4, color='black')
plt.axvline(0, linestyle='dashed', alpha=.2, color='gray')
plt.axhline(0, linestyle='dashed', alpha=.2, color='gray')
plt.plot(all_f, all_c, '.', alpha=.5)
plt.text(1, -1.05, 'r = {:4.2}'.format(r_cf), fontsize=r_fontsize,
horizontalalignment='right')
Expand All @@ -270,6 +272,8 @@
plt.subplot(2, 2, 3)
#plt.plot(all_f, all_o, '.', alpha=.5)
plt.plot(np.linspace(-1, 1), np.linspace(-1, 1), '--', alpha=.4, color='black')
plt.axvline(0, linestyle='dashed', alpha=.2, color='gray')
plt.axhline(0, linestyle='dashed', alpha=.2, color='gray')
plt.plot(f_npf, o_npf, '.', alpha=.5)
plt.plot(f_pf, o_pf, '.', alpha=.5)
plt.text(1, -0.81, r'$r_{{total}}$ = {:4.2}'.format(r_of),
Expand All @@ -289,6 +293,8 @@
plt.subplot(2, 2, 4)
#plt.plot(all_c, all_o, '.', alpha=.5)
plt.plot(np.linspace(-1, 1), np.linspace(-1, 1), '--', alpha=.4, color='black')
plt.axvline(0, linestyle='dashed', alpha=.2, color='gray')
plt.axhline(0, linestyle='dashed', alpha=.2, color='gray')
plt.plot(c_npf, o_npf, '.', alpha=.5)
plt.plot(c_pf, o_pf, '.', alpha=.5)
plt.text(1, -0.81, r'$r_{{total}}$ = {:4.2}'.format(r_co),
Expand All @@ -307,5 +313,6 @@
#plt.tight_layout()
plt.subplots_adjust(top=0.9)
plt.savefig('/Users/ycan/Documents/official/gottingen/lab rotations/\
LR3 Gollisch/figures/{}'.format(exp_name), dpi=200)
LR3 Gollisch/figures/{}'.format(exp_name), dpi=200, bbox_inches='tight',
pad_inches=0.0)
plt.show()

0 comments on commit f19d9a1

Please sign in to comment.