Telegram Group & Telegram Channel
رسم نمودارهای مثبت و منفی در Matplotlib
در ادامه یک نمونه کد برای رسم نمودارهایی که مقادیر مثبت و منفی با رنگ های مختلف نمایش داده شده اند با استفاده از کتابخانه matplotlib قرار داده شده است.

import matplotlib.pyplot as plt
x = range(7)
data_pos = [1,0,3,0,6,2,0]
data_neg = [0,-2,0,-6,0,0,-2]

plt.bar(x, data_pos, width=1, color='b')
plt.bar(x, data_neg, width=1, color='r')
plt.show()

#نمودار
#پایتون مالی
#matplotlib

@python4finance



tg-me.com/python4finance/465
Create:
Last Update:

رسم نمودارهای مثبت و منفی در Matplotlib
در ادامه یک نمونه کد برای رسم نمودارهایی که مقادیر مثبت و منفی با رنگ های مختلف نمایش داده شده اند با استفاده از کتابخانه matplotlib قرار داده شده است.

import matplotlib.pyplot as plt
x = range(7)
data_pos = [1,0,3,0,6,2,0]
data_neg = [0,-2,0,-6,0,0,-2]

plt.bar(x, data_pos, width=1, color='b')
plt.bar(x, data_neg, width=1, color='r')
plt.show()

#نمودار
#پایتون مالی
#matplotlib

@python4finance

BY Python4Finance




Share with your friend now:
tg-me.com/python4finance/465

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

What is Telegram?

Telegram is a cloud-based instant messaging service that has been making rounds as a popular option for those who wish to keep their messages secure. Telegram boasts a collection of different features, but it’s best known for its ability to secure messages and media by encrypting them during transit; this prevents third-parties from snooping on messages easily. Let’s take a look at what Telegram can do and why you might want to use it.

Python4Finance from de


Telegram Python4Finance
FROM USA