Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Final Challenge | Plot Customization
First Dive into seaborn Visualization
course content

Kursinhalt

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
Final Challenge

Aufgabe

Swipe to start coding

This is the right time for the final task of drawing a plot based on the material we have learned in this course. After completing this task, you will definitely be ready to create cool and colorful graphics for your future projects 🥳.

  1. Import the seaborn with sns alias.

  2. Import the matplotlib.pyplot with plt alias.

  3. Import the pandas with pd alias.

  4. Read the file.

  5. Set blue color for boy, pink for girl values.

  6. Set a histplot variable with histplot's binwidth = 0.1, data = df.

  7. Set the title 'Yummy fish!'.

  8. Set the xlabel 'Kilos of fish'.

  9. Set the context paper.

  10. Set the unique style: 'axes.facecolor' - 'white', 'figure.facecolor' - 'black', 'axes.labelcolor' - 'white', 'xtick.color':'white', 'ytick.color':'white'.

  11. Show the plot.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 6
toggle bottom row

book
Final Challenge

Aufgabe

Swipe to start coding

This is the right time for the final task of drawing a plot based on the material we have learned in this course. After completing this task, you will definitely be ready to create cool and colorful graphics for your future projects 🥳.

  1. Import the seaborn with sns alias.

  2. Import the matplotlib.pyplot with plt alias.

  3. Import the pandas with pd alias.

  4. Read the file.

  5. Set blue color for boy, pink for girl values.

  6. Set a histplot variable with histplot's binwidth = 0.1, data = df.

  7. Set the title 'Yummy fish!'.

  8. Set the xlabel 'Kilos of fish'.

  9. Set the context paper.

  10. Set the unique style: 'axes.facecolor' - 'white', 'figure.facecolor' - 'black', 'axes.labelcolor' - 'white', 'xtick.color':'white', 'ytick.color':'white'.

  11. Show the plot.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 6
Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
We're sorry to hear that something went wrong. What happened?
some-alt