First time here? Check out the FAQ!
answered 2017-09-08 15:52:24 +0100
Sage wants to put two tickmarks on the graph and is asking that you extend the x-range so that it can do so. Try changing the code to:
show(plot(sin(a*x+b), (x,0,a*pi),ticks=pi/2*a,tick_formatter='latex',gridlines=True))