From ca94147d3c668a8ab8c98d8e0d4f20d78974b0fe Mon Sep 17 00:00:00 2001
From: unknown <olivier.delaigue@ANPI1430.antony.irstea.priv>
Date: Tue, 11 Jul 2017 10:04:11 +0200
Subject: [PATCH] v1.0.9.11 bug fixed in y-axis labelling of plot.OutputsMode
 when argument BasinArea is used #4660

---
 DESCRIPTION           | 2 +-
 R/plot.OutputsModel.R | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index e85ba193..590b7a1c 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -1,7 +1,7 @@
 Package: airGR
 Type: Package
 Title: Suite of GR Hydrological Models for Precipitation-Runoff Modelling
-Version: 1.0.9.10
+Version: 1.0.9.11
 Date: 2017-07-11
 Authors@R: c(
   person("Laurent", "Coron", role = c("aut", "trl")),
diff --git a/R/plot.OutputsModel.R b/R/plot.OutputsModel.R
index 4a49ccfc..334614e8 100644
--- a/R/plot.OutputsModel.R
+++ b/R/plot.OutputsModel.R
@@ -415,7 +415,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
     if (BOOL_Pobs) { posleg <- "right"; txtlab <- "precip. & flow regime"; }
     par(las = 0); mtext(side = 2, paste0(txtlab, " ", plotunitregime), line = line, cex = cex.lab); par(las = 0);
     if (!is.null(BasinArea)) {
-      Factor <- Factor_MMM_M3S;
+      Factor <- Factor_UNIT_M3S;
       axis(side = 4, at = pretty(ylimQ*Factor)/Factor, labels = pretty(ylimQ*Factor), cex.axis = cex.axis, ...);
       par(las = 0); mtext(side = 4, paste0("flow ", "m3/s"), line = line, cex = cex.lab); par(las = 0); }
     ### posleg <- "topright"; if (BOOL_Pobs) { posleg <- "right"; }
-- 
GitLab