From ce52c4b0243b6423d4167db1a1fa96a882f13584 Mon Sep 17 00:00:00 2001 From: Jose Luis Cercos Pita Date: Mon, 18 Jan 2016 13:10:53 +0100 Subject: [PATCH] Set a different color to the z-vol curve (in order to make possible3 to differentiate that from the level-vol curve) --- src/Mod/Ship/shipCapacityCurve/PlotAux.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Mod/Ship/shipCapacityCurve/PlotAux.py b/src/Mod/Ship/shipCapacityCurve/PlotAux.py index 2b58dcab1..81e0595b8 100644 --- a/src/Mod/Ship/shipCapacityCurve/PlotAux.py +++ b/src/Mod/Ship/shipCapacityCurve/PlotAux.py @@ -80,7 +80,7 @@ class Plot(object): ax.yaxis.set_label_position('right') # And X axis can be placed at top ax.xaxis.tick_top() - ax.spines['top'].set_color((0.0, 0.0, 0.0)) + ax.spines['top'].set_color((0.0, 0.0, 1.0)) ax.spines['bottom'].set_color('none') ax.xaxis.set_ticks_position('top') ax.xaxis.set_label_position('top') @@ -89,11 +89,13 @@ class Plot(object): vols = Plot.plot(z, v, 'Capacity') vols.line.set_linestyle('-') vols.line.set_linewidth(2.0) - vols.line.set_color((0.0, 0.0, 0.0)) + vols.line.set_color((0.0, 0.0, 1.0)) Plot.xlabel(r'$z \; [\mathrm{m}]$') Plot.ylabel(r'$V \; [\mathrm{m}^3]$') ax.xaxis.label.set_fontsize(20) ax.yaxis.label.set_fontsize(20) + ax.xaxis.label.set_color((0.0, 0.0, 1.0)) + ax.tick_params(axis='x', colors=(0.0, 0.0, 1.0)) Plot.grid(True) # End