From eaf48e4ac816f0a8fa843b6c1a8ef9eac7c37ae2 Mon Sep 17 00:00:00 2001
From: Delaigue Olivier <olivier.delaigue@irstea.priv>
Date: Thu, 28 Mar 2019 14:27:25 +0100
Subject: [PATCH] v1.2.11.20 CLEAN: main argument removed from empty plot in
 plot.Outputsmodel fun

---
 DESCRIPTION           | 2 +-
 NEWS.rmd              | 2 +-
 R/plot.OutputsModel.R | 6 +++---
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/DESCRIPTION b/DESCRIPTION
index c8524111..d5b486be 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.2.11.19
+Version: 1.2.11.20
 Date: 2019-03-28
 Authors@R: c(
   person("Laurent", "Coron", role = c("aut", "trl"), comment = c(ORCID = "0000-0002-1503-6204")),
diff --git a/NEWS.rmd b/NEWS.rmd
index cfddabb4..5fc238cf 100644
--- a/NEWS.rmd
+++ b/NEWS.rmd
@@ -13,7 +13,7 @@ output:
 
 
 
-### 1.2.11.19 Release Notes (2019-03-28) 
+### 1.2.11.20 Release Notes (2019-03-28) 
 
 
 
diff --git a/R/plot.OutputsModel.R b/R/plot.OutputsModel.R
index 06fe4b3b..5a1c5b1a 100644
--- a/R/plot.OutputsModel.R
+++ b/R/plot.OutputsModel.R
@@ -491,7 +491,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
         (NameTS == "day"   & length(IndPeriod_Plot) <  30) |
         (NameTS == "month" & length(IndPeriod_Plot) <   2) |
         (NameTS == "year"  & length(IndPeriod_Plot) <   2)) {
-      plot(0, 0, type = "n", xaxt = "n", yaxt = "n", xlab = "", ylab = "", main = "", ...)
+      plot(0, 0, type = "n", xaxt = "n", yaxt = "n", xlab = "", ylab = "")
       par(las = 0)
       mtext(side = 1, text = "", line = line, cex = cex.lab)
       par(las = 0)
@@ -688,7 +688,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
       plot(0, 0, type = "n",
            xlim = xlim, ylim = ylim,
            xaxt = "n", yaxt = "n",
-           xlab = "", ylab = "", main = "", ...)
+           xlab = "", ylab = "", ...)
       axis(side = 1, at = pretty(xlim), labels = pretty(xlim), cex.axis = cex.axis, ...)
       par(las = 0)
       mtext(side = 1, text = "non-exceedance prob. [-]", line = line, cex = cex.lab)
@@ -735,7 +735,7 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
       legend("topleft", txtleg, col = colleg, lty = 1, lwd = lwd, bty = "o", bg = bg, box.col = bg, cex = cex.leg)
       legend("bottomright", "log scale", lty = 1, col = NA, bty = "o", bg = bg, box.col = bg, cex = cex.leg)
     } else {
-      plot(0, 0, type = "n", xaxt = "n", yaxt = "n", xlab = "", ylab = "", main = "", ...)
+      plot(0, 0, type = "n", xaxt = "n", yaxt = "n", xlab = "", ylab = "", ...)
       par(las = 0)
       mtext(side = 1, text = "non-exceedance prob. [-]", line = line, cex = cex.lab)
       par(las = 0)
-- 
GitLab