quantified-uncertainty / squiggle

An estimation language
https://squiggle-language.com
MIT License
148 stars 22 forks source link

Function charts don't show x-axis where y=0 isn't shown #3189

Closed OAGr closed 3 weeks ago

OAGr commented 2 months ago

Description of suggestion or shortcoming:

image

start = Date.make(2024, 4, 1)
end = Date.make(2024, 6, 1)

fn(time: [start, Date.make(2024, 11, 1)]) = {
  diff = toYears(time - start)
  yearlyRate = normal({ p5: -.2, p95: 0.4 })
  answer = (1 + yearlyRate) ^ diff 
  answer
}

fnPlot = Plot.distFn(fn, { xScale: Scale.date({ tickFormat: "%B %d" }) })
``
berekuk commented 1 month ago

This is a regression (0.9.3 vs 0.9.4).

Probably caused by #3126.

berekuk commented 3 weeks ago

Fixed in #3311.