NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 21 forks source link

SHADE plot with very long axis on the horizontal yields mostly-blank plot #1032

Open karlmsmith opened 6 years ago

karlmsmith commented 6 years ago

Reported by @AnsleyManke on 15 Oct 2010 22:19 UTC Reported by Ned Cokelet. When a time axis has more than 25000 points, a SHADE plot with the time axis horizontal results in a blank, or mostly-blank plot. If the time axis is horizontal, then the plot is correct.

define axis/t=1:25021:1/t0=1-jan-2000/units=minutes longtime
define axis/y=1:300:1 yax
let jj = j[gy=yax]
let LL = l[gt=longtime]
let var = 30*randu(jj) + 10*randu(LL)

set win/asp=1.5
set view upper
shade/title="T axis 25021 points, time axis horizontal" var

set view lower
shade/title="Same variable plotted with SHADE/TRANS"/trans var

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1760

karlmsmith commented 6 years ago

Attachment from @AnsleyManke on 15 Oct 2010 22:20 UTC the plot resulting from the script shadebug