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

Scatterplots

The pyplot module can also be used to make other types of plots, like scatterplots. Let's make a scatterplot of the company's stock prices over time.

Two lists, days and prices are available in your workspace.

Bu egzersiz

Introduction to Python for Finance

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

Egzersiz talimatları

  • Draw a scatterplot with days on the x-axis and prices on the y-axis with green markers.
  • Display the plot with the show() function.

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

# Import pyplot as plt
import matplotlib.pyplot as plt

# Plot price as a function of time
plt.____(____, ____, color='____', s=0.1)

# Show plot
____
Kodu Düzenle ve Çalıştır