[sage-support] Re: Wrong plot in optimisation problem - not tangent

2009-01-31 Thread Paolo Crosetto
David, William, yes, by increasing plot_points it goes as it should. Thanks, and I should have thought of it! I second the idea of increaisng the default plot-points, at least to 100. On my not so recent intel duo it took less than a second with 200. Thanks, P --~--~-~--~~

[sage-support] Re: Wrong plot in optimisation problem - not tangent

2009-01-31 Thread William Stein
On Sat, Jan 31, 2009 at 7:08 AM, David Joyner wrote: > > I don't know anything about your economics problem but when I typed > > cp=contour_plot(utility,(x,0,24),(y, > 0,24),fill=False,cmap='cool',contours=(100,1000,2048,2700,3500),plot_points=200) > > instead, I definitely got a different plot.

[sage-support] Re: Wrong plot in optimisation problem - not tangent

2009-01-31 Thread David Joyner
I don't know anything about your economics problem but when I typed cp=contour_plot(utility,(x,0,24),(y, 0,24),fill=False,cmap='cool',contours=(100,1000,2048,2700,3500),plot_points=200) instead, I definitely got a different plot. Can you try that (or even with a higher value) and see if it is co