BaşlayınÜcretsiz Başlayın

Working with axes

Now that you've seen how to create a figure within matplotlib, you can extend this knowledge to the other plotting libraries you've used. If you look at what gets returned from the various seaborn plotting calls, most functions will return an axes, while some will return a figure. You can leverage this information when creating axes' in a figure. This way you are not limited to just using base matplotlib as a plotting library when making more complex figures.

Bu egzersiz

Python for R Users

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# histplot of tip
import seaborn as sns
dis = ____(tips['tip'], kde = True)

# Print the type
print(____(____))
Kodu Düzenle ve Çalıştır