Skip to content
Advertisement

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,

Nimrodian.

Advertisement

Answer

for x, y in zip(x_values, y_values):
    if x == 0 or y == 0:
        print(x, y)
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement