Skip to content

Commit

Permalink
Fixed handling of axis preferences in plot.biwavelet
Browse files Browse the repository at this point in the history
  • Loading branch information
tgouhier committed Jun 25, 2016
1 parent 6623fd1 commit f3209ce
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 8 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: biwavelet
Type: Package
Title: Conduct Univariate and Bivariate Wavelet Analyses
Version: 0.20.7
Date: 2016-06-01
Version: 0.20.8
Date: 2016-06-25
Author: Tarik C. Gouhier, Aslak Grinsted, Viliam Simko
Maintainer: Tarik C. Gouhier <[email protected]>
Description: This is a port of the WTC MATLAB package written by Aslak Grinsted
Expand Down
8 changes: 4 additions & 4 deletions R/plot.biwavelet.R
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,14 @@ plot.biwavelet <- function(x, ncol = 64, fill.cols = NULL,
} else {
if (xaxt != "n") {
xlocs <- axTicks(1)
axis(side = 1, at = xlocs)
axis(side = 1, at = xlocs, ...)
}
}

if (yaxt != "n") {
axis.locs <- axTicks(2)
yticklab <- format(2 ^ axis.locs, dig = 1)
axis(2, at = axis.locs, labels = yticklab)
axis(2, at = axis.locs, labels = yticklab, ...)
}

# COI
Expand Down Expand Up @@ -266,7 +266,7 @@ plot.biwavelet <- function(x, ncol = 64, fill.cols = NULL,
}
box()

## Add color bar: this must happen after everything else otherwise chaos!
## Add color bar: this must happen after everything, otherwise chaos ensues!
if (plot.cb) {
image.plot(x$t,
yvals,
Expand All @@ -280,7 +280,7 @@ plot.biwavelet <- function(x, ncol = 64, fill.cols = NULL,
horizontal = legend.horiz,
legend.only = TRUE,
axis.args =
list(at = locs, labels = format(leg.lab, dig = 2)),
list(at = locs, labels = format(leg.lab, dig = 2), ...),
xpd = NA)
}
}
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
bibentry("Manual",
title="biwavelet: Conduct univariate and bivariate wavelet analyses",
author="Tarik C. Gouhier, Aslak Grinsted, Viliam Simko",
year="2015",
note="(Version 0.20.7)",
year="2016",
note="(Version 0.20.8)",
url="http://github.com/tgouhier/biwavelet",

textVersion =
Expand Down
9 changes: 9 additions & 0 deletions inst/NEWS.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
\title{News for Package 'biwavelet'}
\encoding{UTF-8}

\section{Changes in biwavelet version 0.20.8 (2016-06-25)}{
\subsection{fixed}{
\itemize{
\item Fixed handling of axis preferences in \code{plot.biwavelet}.
}
}
}


\section{Changes in biwavelet version 0.20.7 (2016-06-01)}{
\subsection{fixed}{
\itemize{
Expand Down

0 comments on commit f3209ce

Please sign in to comment.