Telegram Group & Telegram Channel
تغییر جهت لیبل نمودار x ها در Matplotlib
یکی از سوالاتی که خیلی پرسیده شده است این است که چگونه جهت لیبل های نمودار x را تغییر دهیم. این موضوع زمانی اهمیت پیدا می کند که تعداد داده ها خیلی زیاد هستند و نمودار x ها عملا غیر قابل استفاده می شود. برای این موضوع 5 روش وجود دارد که برای نمونه یکی از آنها را در تصویر این پست قرار می دهم.

# Option 1
plt.xticks(rotation=30, ha='right')

# Option 2
plt.draw()
ax.set_xticklabels(ax.get_xticklabels(), rotation=30, ha='right')

# Option 3
for label in ax.get_xticklabels():
label.set_rotation(30)
label.set_ha('right')

# Option 4
ax.tick_params(axis='x', labelrotation=30)
# Eventually, this shouldn't be needed and an ha argument should
# be available for the above.
plt.xticks(ha='right')

# Option 5
plt.setp(ax.get_xticklabels(), rotation=30, ha='right')

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

پایتون برای مالی در تلگرام
https://www.tg-me.com/joinchat-AAAAAFGMkouqbsb86Vfzug



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

تغییر جهت لیبل نمودار x ها در Matplotlib
یکی از سوالاتی که خیلی پرسیده شده است این است که چگونه جهت لیبل های نمودار x را تغییر دهیم. این موضوع زمانی اهمیت پیدا می کند که تعداد داده ها خیلی زیاد هستند و نمودار x ها عملا غیر قابل استفاده می شود. برای این موضوع 5 روش وجود دارد که برای نمونه یکی از آنها را در تصویر این پست قرار می دهم.

# Option 1
plt.xticks(rotation=30, ha='right')

# Option 2
plt.draw()
ax.set_xticklabels(ax.get_xticklabels(), rotation=30, ha='right')

# Option 3
for label in ax.get_xticklabels():
label.set_rotation(30)
label.set_ha('right')

# Option 4
ax.tick_params(axis='x', labelrotation=30)
# Eventually, this shouldn't be needed and an ha argument should
# be available for the above.
plt.xticks(ha='right')

# Option 5
plt.setp(ax.get_xticklabels(), rotation=30, ha='right')

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

پایتون برای مالی در تلگرام
https://www.tg-me.com/joinchat-AAAAAFGMkouqbsb86Vfzug

BY Python4Finance




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

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

What is Telegram?

Telegram’s stand out feature is its encryption scheme that keeps messages and media secure in transit. The scheme is known as MTProto and is based on 256-bit AES encryption, RSA encryption, and Diffie-Hellman key exchange. The result of this complicated and technical-sounding jargon? A messaging service that claims to keep your data safe.Why do we say claims? When dealing with security, you always want to leave room for scrutiny, and a few cryptography experts have criticized the system. Overall, any level of encryption is better than none, but a level of discretion should always be observed with any online connected system, even Telegram.

Telegram Gives Up On Crypto Blockchain Project

Durov said on his Telegram channel today that the two and a half year blockchain and crypto project has been put to sleep. Ironically, after leaving Russia because the government wanted his encryption keys to his social media firm, Durov’s cryptocurrency idea lost steam because of a U.S. court. “The technology we created allowed for an open, free, decentralized exchange of value and ideas. TON had the potential to revolutionize how people store and transfer funds and information,” he wrote on his channel. “Unfortunately, a U.S. court stopped TON from happening.”

Python4Finance from tr


Telegram Python4Finance
FROM USA