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)
Generation
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)
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description