Commit 7f0eb0dc authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

refactor(plot.OutputsModel): display x-axis labels in English language

Refs #122
Showing with 8 additions and 2 deletions
+8 -2
...@@ -5,9 +5,15 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea = ...@@ -5,9 +5,15 @@ plot.OutputsModel <- function(x, Qobs = NULL, IndPeriod_Plot = NULL, BasinArea =
verbose = TRUE, ...) { verbose = TRUE, ...) {
## save default graphical parameters and resetting on exit ## save default graphical & time parameters and resetting on exit
opar <- par(no.readonly = TRUE) opar <- par(no.readonly = TRUE)
on.exit(par(opar)) olctime <- Sys.getlocale(category = "LC_TIME")
Sys.setlocale(category = "LC_TIME", locale = "English_United Kingdom")
on.exit({
par(opar)
Sys.setlocale(category = "LC_TIME", locale = olctime)
})
OutputsModel <- x OutputsModel <- x
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment