tset label color accordingly - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit 8a79c970d669dc7f3918d959eb17a4abb7c9e2ef
(DIR) parent 3c3689da812e82a152de533e40619531dcaa04e5
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Tue, 24 Feb 2015 21:10:51 +0100
set label color accordingly
Diffstat:
M python/halfshear-darcy-combined.py | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/python/halfshear-darcy-combined.py b/python/halfshear-darcy-combined.py
t@@ -147,6 +147,7 @@ lns5 = ax2.plot(t, p_f_bar/1000.0 + 80.0, '--',
color=ax2color,
label='$\\bar{p}_\\text{f}$')
ax2.set_ylabel('Mean fluid pressure [kPa]')
+ax2.yaxis.label.set_color(ax2color)
for tl in ax2.get_yticklabels():
tl.set_color(ax2color)
#ax2.legend(loc='upper right')
t@@ -195,6 +196,7 @@ ax6color='blue'
ax6 = ax5.twinx()
ax6.plot(t, phi_bar, color=ax6color)
ax6.set_ylabel('Mean porosity [-]')
+ax6.yaxis.label.set_color(ax6color)
for tl in ax6.get_yticklabels():
tl.set_color(ax6color)
t@@ -208,15 +210,18 @@ ax6.text(bbox_x, bbox_y, 'c',
## ax7: n_heavy, dn_heavy, ax8: z
ax7 = plt.subplot(5, 1, 4, sharex=ax1)
ax7.semilogy(t, n, 'k', label='$n_\\text{heavy}$')
-ax7.set_ylabel('Number of contacts [-]')
-ax7.semilogy(t, n - nkept, 'b', label='$\Delta n_\\text{heavy}$')
+ax7.set_ylabel('Number of heavily loaded contacts [-]')
+#ax7.semilogy(t, n - nkept, 'b', label='$\Delta n_\\text{heavy}$')
+ax7.set_ylim([1.0e1, 2.0e4])
ax8 = ax7.twinx()
ax8color='green'
ax8.plot(t, coordinationnumber, color=ax8color)
ax8.set_ylabel('Coordination number [-]')
+ax8.yaxis.label.set_color(ax8color)
for tl in ax8.get_yticklabels():
tl.set_color(ax8color)
+ax8.set_ylim([-0.2,9.8])
ax7.text(bbox_x, bbox_y, 'd',
horizontalalignment=horizontalalignment,