“linha horizontal da trama python” Respostas de código

linha horizontal matplotlib python

import matplotlib.pyplot as plt
plt.axhline(0)
Tremendous Enceladus

linha horizontal para pyplot

import matplotlib.pyplot as plt
import numpy as np

x = np.linspace(1, 21, 200)
y = np.exp(-x)

fig, ax = plt.subplots()
ax.plot(x, y)
ax.hlines(y=0.2, xmin=4, xmax=20, linewidth=2, color='r')

plt.show()
Helpless Hawk

Linha horizontal da trama em Python

This will plot y=0 horizontal line , 
import matplotlib.pyplot as plt
plt.axhline(0)
Hutch Polecat

linha horizontal da trama python

import matplotlib.pyplot as plt
series.plot(kind='barh')
plt.show()
M.U

Como plotar Mltiple Horizontak Kines em Matplotlib

[ax.axhiline(y=i, linestyle='--') for i in [150,100,200,300]]
Naughty Nightingale

Respostas semelhantes a “linha horizontal da trama python”

Perguntas semelhantes a “linha horizontal da trama python”

Mais respostas relacionadas para “linha horizontal da trama python” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código