compose with python graph

Altair Forum User
Altair Employee

Answers
-
Hi Seoksan,
In the python file you have axis set to 'equal' and that is trying to make the axis limits to be equal. comment the line 'plt.axis('equal')' and you can set the ylim and xlim as you requested.
#plt.axis('equal')
# axis limts
plt.ylim(-4,2)
plt.xlim(-1,5)Hope this helps
MK
0 -
Thank you, Manoj
Do you know why my 'ylim' doesn't work?
0 -
Seoksan,
I'm not sure why it didn't work but when i searched online, i found this is due to possible bug in axis('equal') - equal scaling by changing the limits when clf is refreshed, this causing the ylim changes to fade out.
( see https://github.com/matplotlib/matplotlib/issues/8093)
Thanks,
Manoj kandukuri
0