Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Let's Cope with Axes | Plot Customization
First Dive into seaborn Visualization
セクション 3.  3
single

single

bookLet's Cope with Axes

メニューを表示するにはスワイプしてください

Setting label names:

To set label names, we need to set a plot variable and use:

# g is the plot variable.
g.set(xlabel = 'x_name', ylabel = 'y_name')

X(y)ticks rotation:

To rotate labels, we need to use:

# n is the angle
plt.xticks(rotation = n)
plt.yticks(rotation = n)
タスク

スワイプしてコーディングを開始

  1. Import seaborn with sns alias.
  2. Import matplotlib.pyplot with plt alias.
  3. Import pandas with pd alias.
  4. Set label names 'Population'(Oy axis) & 'Years(2012-2022)'(Ox axis).
  5. Rotate labels along the Ox axis by 45 degrees.
  6. Show the plot.

解答

Switch to desktop実践的な練習のためにデスクトップに切り替える下記のオプションのいずれかを利用して、現在の場所から続行する
すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  3
single

single

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

some-alt