Skip to content

Commit

Permalink
dashed vline and hline for image plots
Browse files Browse the repository at this point in the history
  • Loading branch information
martin3141 committed May 9, 2024
1 parent 3d6a010 commit 28cdcc4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: spant
Type: Package
Title: MR Spectroscopy Analysis Tools
Version: 2.20.0
Version: 2.21.9000
Date: 2024-05-01
Authors@R: c(
person("Martin", "Wilson", email = "martin@pipegrep.co.uk",
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# spant 2.21.0

# spant 2.20.0
* Added vertical line colour and linetype options for stackplots.
* Added option to give Y axis labels in units of seconds for spectrograms.
Expand Down
4 changes: 2 additions & 2 deletions R/mrs_data_display.R
Original file line number Diff line number Diff line change
Expand Up @@ -410,9 +410,9 @@ image.mrs_data <- function(x, xlim = NULL, mode = "re", col = NULL,
graphics::axis(2, at = y_ticks, labels = F, col = NA, col.ticks = "red")
}

if (!is.null(vline)) graphics::abline(v = vline, col = "white")
if (!is.null(vline)) graphics::abline(v = vline, col = "white", lty = 2)

if (!is.null(hline)) graphics::abline(h = hline, col = "white")
if (!is.null(hline)) graphics::abline(h = hline, col = "white", lty = 2)

if (restore_def_par) graphics::par(.pardefault)
}
Expand Down

0 comments on commit 28cdcc4

Please sign in to comment.