KOTA ITO

Generation

generate functionMon, 26 Dec 2022

X軸は10代、20代、30代、40代、50代、60代という、年齢です。Y軸は各年代における人気曲のランキングです。この折れ線グラフをスムーズな曲線にする関数を書いてください。

import matplotlib.pyplot as plt def plot_graph(x, y): plt.plot(x, y) plt.show() x = [10, 20, 30, 40, 50, 60] y = [1, 2, 3, 4, 5, 6] plot_graph(x, y)

Questions about programming?Chat with your personal AI assistant