From: Amit S. <ami...@gm...> - 2014-11-12 21:43:08
|
Hi all, I think i might have a better shot at having my query answered here, so forward my email to user-list here. Thanks for any insights! Query: Consider the following code: import matplotlib.pyplot as plt fig = plt.figure() ax = fig.gca() circle = plt.Circle((0, 0), radius = 0.5) ax.add_patch(circle) print(plt.axis()) plt.show() The default axis limits are printed as: (0.0, 1.0, 0.0, 1.0) I am not sure why this is the case. So, I would like to learn why? PS: I know I can just do plt.axis('scaled') so that I can see the entire circle. I also asked this on SO, so feel free to answer there as well: http://stackoverflow.com/questions/26824696/matplotlib-axis-default-limits-with-a-circle-patch Thanks, Amit. |