| 1 | initial version |
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]])
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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.