dankelley / oce

R package for oceanographic processing
http://dankelley.github.io/oce/
GNU General Public License v3.0
143 stars 42 forks source link

plotTS() not obeying rho1000 parameter #2085

Closed dankelley closed 1 year ago

dankelley commented 1 year ago
library(oce)
#> Loading required package: gsw
par(mfrow=c(2,1))
data(ctd)
plotTS(ctd)
plotTS(ctd, rho1000=TRUE)

Created on 2023-05-19 with reprex v2.0.2

dankelley commented 1 year ago

This was caused by some changes made a few months back, to speed up the display of isopycnal contours.

dankelley commented 1 year ago

Fixed in "develop" branch, commit 48e2bceed045d4d691e3a8d5279d792a442d8d34 (see below).

library(oce)
#> Loading required package: gsw
par(mfrow=c(2,1))
data(ctd)
plotTS(ctd)
plotTS(ctd, rho1000=TRUE)

Created on 2023-05-19 with reprex v2.0.2

dankelley commented 1 year ago

PS. the reprex of the previous comment shows why the default, rho1000=FALSE, is useful. Reprexes use tight figure sizes...

dankelley commented 1 year ago
library(oce)
#> Loading required package: gsw
data(ctd)
plotTS(ctd)

plotTS(ctd, rho1000=TRUE)

Created on 2023-05-19 with reprex v2.0.2