Тёмный

Fill area of chart using matplotlib in python 

Karina Adcock
Подписаться 44 тыс.
Просмотров 3,5 тыс.
50% 1

import matplotlib.pyplot as plt
y = [1,2,3,4,5,6]
x = [1,2,1,2,3,2]
x1 = [0,1,0,1,2,1]
x2 = [2,3,2,3,4,3]
plt.plot(x,y)
plt.fill_betweenx(y,x1,x2, color="lightblue", alpha=0.5)
plt.axvspan(2,3, color="red", alpha=0.2)
plt.axhspan(3,5, color="green", alpha=0.2)
plt.show()

Наука

Опубликовано:

 

12 июл 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 1   
@bladdra
@bladdra Год назад
Thanks for your video, I was having an issue with fill_between method and I addressed it with axhspan method . 👍
Далее
Matplotlib Full Python Course - Data Science Fundamentals
1:02:41
Me: Don't cross there's cars coming
00:16
Просмотров 13 млн
100❤️
00:19
Просмотров 2 млн
Seaborn Is The Easier Matplotlib
22:39
Просмотров 162 тыс.
Is Plotly The Better Matplotlib?
22:58
Просмотров 94 тыс.
Introduction to Treemaps in Plotly Express (Python)
8:41
SymPy is REVOLUTIONARY For Mathematical Tasks
25:15
Просмотров 67 тыс.
Professional 3D Plotting in Matplotlib
17:24
Просмотров 111 тыс.