Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Decoration and...Decoration! | Plot Customization
First Dive into seaborn Visualization
セクション 3.  4
single

single

bookDecoration and...Decoration!

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

Setting the style for the plot

To set the style use:

sns.set_style('style_name')

Styles available: white, dark, whitegrid, darkgrid, ticks etc.

Changing colors of the main elements of the plot

seaborn has different palette options. Below there are a few of them.

Palettes: RdBu, PRGn, RdBu_r, PRGn_r (different colors in the palette), Greys, Blues, PuRd, GnBu (gradient colors).

You can also create your unique palette by creating a list variable. To set the palette use:

sns.set_palette(palette_name)

Context setting

To set the context use:

sns.set_context('context_name')

Contexts available: paper, notebook, talk, poster etc.

タスク

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

  1. Import seaborn with sns alias.
  2. Import matplotlib.pyplot with plt alias.
  3. Import pandas with pd alias.
  4. Set the 'whitegrid' style.
  5. Set the 'paper' context.
  6. Rotate labels along the Ox axis by 45 degrees.

解答

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

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

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

セクション 3.  4
single

single

AIに質問する

expand

AIに質問する

ChatGPT

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

some-alt