1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Python] How to add line based on slope and intercept

Discussão em 'Python' iniciado por Stack, Setembro 28, 2024 às 03:42.

  1. Stack

    Stack Membro Participativo

    In R, there is a function called abline in which a line can be drawn on a plot based on the specification of the intercept (first argument) and the slope (second argument). For instance,

    plot(1:10, 1:10)
    abline(0, 1)


    where the line with an intercept of 0 and the slope of 1 spans the entire range of the plot. Is there such a function in Matplotlib?

    Continue reading...

Compartilhe esta Página