compose with python graph


Updated by Altair Forum User
Hello All.
I attached 'oml' and 'py' file.
In python
1.
There are x and y limit
- plt.ylim(-4,5)
- plt.xlim(-1,5)
But it doesn't work. How can I make it work correctly?
2. How can i save the python graph with bmp type image?
Sort by:
1 - 3 of
31


Updated by Altair Forum User
Thank you, Manoj
Do you know why my 'ylim' doesn't work?


Updated by manoj kandukuri
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
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