Nimrodian Nimrodian - 3 months ago 17
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,


for x, y in zip(x_values, y_values):
    if x == 0 or y == 0:
        print(x, y)