“Seeborn memutar label x” Kode Jawaban

Seeborn memutar label x

plt.figure(figsize=(15,8))

ax = sns.histplot(data=test, x='date')

ax.tick_params(axis='x', rotation=90)
Smoking Snake

Seeborn memutar xlabel

plt.figure(figsize=(10,5))
chart = sns.countplot(
    data=data[data['Year'] == 1980],
    x='Sport',
    palette='Set1'
)
chart.set_xticklabels(chart.get_xticklabels(), rotation=45)
Dark Duck

Ubah Xlabel Rotate in Seaborn

import pandas
import matplotlib.pylab as plt
import seaborn as sns
import numpy as np
plt.rcParams["figure.figsize"] = [7.50, 3.50]
plt.rcParams["figure.autolayout"] = True
df = pandas.DataFrame({"X-Axis": [np.random.randint(10) for i in range(10)], "YAxis": [i for i in range(10)]})
bar_plot = sns.barplot(x='X-Axis', y='Y-Axis', data=df)
plt.xticks(rotation=45)
plt.show()
Tender Tapir

LABEL Sudut LABUNG SEORBORN

chart = data[data['Year'] == 1980]['Sport'].value_counts().plot(kind='bar')
chart.set_xticklabels(chart.get_xticklabels(), rotation=45, horizontalalignment='right')
Exuberant Elk

Jawaban yang mirip dengan “Seeborn memutar label x”

Pertanyaan yang mirip dengan “Seeborn memutar label x”

Lebih banyak jawaban terkait untuk “Seeborn memutar label x” di Python

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya