Ask Your Question

Revision history [back]

In SageMath, when plotting the square root function, you may encounter issues with the frame and axes not staying centered like in other plots. To address this, manually set the axes_pad option to control spacing and the ticks option to specify ticks on the axes. Here's a modified snippet of your code: p1 = plot(-sqrt(-x-2)+1, (x,-10,8), gridlines="minor", frame=True, axes=True, figsize=(3,3), thickness='3', axes_pad=(0.5, 0.5), ticks=[[-10, -5, 0, 5, 10], [-10, -5, 0, 5, 10]])

Repeat for other plots...

graphics_array(((p1, p2), (p3, p4))).show(frame=True, figsize=(5,5)) Adjust the axes_pad and ticks values as needed for optimal centering and appearance of the plots.