Nimrodian Nimrodian - 1 year ago 214
Python Question

How to get the x and y intercept in matplotlib?

I have scoured the internet and can't find a python command to find the x and y intercepts of a curve on matplotlib. Is there a command that exists? or is there a much easier way that is going over my head? Any help would be appreciated. Thanks,


Answer Source
for x, y in zip(x_values, y_values):
    if x == 0 or y == 0:
        print(x, y)
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download