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: |

What is Telegram Possible Future Strategies?

Cryptoassets enthusiasts use this application for their trade activities, and they may make donations for this cause.If somehow Telegram do run out of money to sustain themselves they will probably introduce some features that will not hinder the rudimentary principle of Telegram but provide users with enhanced and enriched experience. This could be similar to features where characters can be customized in a game which directly do not affect the in-game strategies but add to the experience.

The lead from Wall Street offers little clarity as the major averages opened lower on Friday and then bounced back and forth across the unchanged line, finally finishing mixed and little changed.The Dow added 33.18 points or 0.10 percent to finish at 34,798.00, while the NASDAQ eased 4.54 points or 0.03 percent to close at 15,047.70 and the S&P 500 rose 6.50 points or 0.15 percent to end at 4,455.48. For the week, the Dow rose 0.6 percent, the NASDAQ added 0.1 percent and the S&P gained 0.5 percent.The lackluster performance on Wall Street came on uncertainty about the outlook for the markets following recent volatility.

Python4Finance from br


Telegram Python4Finance
FROM USA