Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Let's Cope with Axes | Plot Customization
First Dive into seaborn Visualization
course content

Kursinnhold

First Dive into seaborn Visualization

First Dive into seaborn Visualization

1. Nice to Meet you, seaborn!
2. More and More Plots
3. Plot Customization

book
Let's Cope with Axes

Setting label names:

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

python

X(y)ticks rotation:

To rotate labels, we need to use:

python
Oppgave

Swipe to start coding

  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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 3
toggle bottom row

book
Let's Cope with Axes

Setting label names:

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

python

X(y)ticks rotation:

To rotate labels, we need to use:

python
Oppgave

Swipe to start coding

  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.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 3
Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Vi beklager at noe gikk galt. Hva skjedde?
some-alt