<div dir="ltr">I get an error (somewhat expectedly) when I try<div><br></div><div><div> (big-bang init</div><div> (on-tick random-walk 1)</div><div> ;(on-key door-actions)</div><div> (to-draw plot-render)</div>
<div> ))</div></div><div><br></div><div>where plot-render is defined as</div><div><br></div><div><div>(define (plot-render world)</div><div> (p:plot (p:lines</div><div> (world->list-of-vectors world)</div>
<div> #:color 6 #:label "Random walk")))</div></div><div><br></div><div>with the following at the top</div><div><br></div><div>(require (prefix-in p: plot))<br></div><div><br></div><div>The error msg is</div>
<div><br></div><div>plot: could not determine sensible plot bounds; got x ∈ [0,0], y ∈ [1,1]<br></div><div><br></div><div>Is there way to let plot know of the context? Or pass a context to plot and extract the pixels and hand it over to via some proc in 2htdp/image? Or maybe there is a simple way?</div>
<div><br></div><div>jGc</div><div><br></div></div>