{"id":"7SVEcy3VTc","url":"https://pastebin.ca/7SVEcy3VTc","raw_url":"https://raw.anybin.ca/7SVEcy3VTc","visibility":"public","access":"public","created_at":1793949578676,"expires_at":1794554378676,"fetch_limit":null,"fetches_used":0,"reads_remaining":null,"size_bytes":451,"syntax_hint":null,"title":null,"filename":null,"change_note":null,"cipher":null,"cipher_meta":null,"parent_id":null,"root_id":"7SVEcy3VTc","version":1,"owner_id":null,"recipient_id":null,"body":"import pandas as pd\nimport matplotlib.pyplot as plt\n\n# 解决中文显示\nplt.rcParams['font.sans-serif'] = ['SimHei']\nplt.rcParams['axes.unicode_minus'] = False\n\ndf = pd.read_csv(\"data.csv\")\nx = df['x'].values\ny = df['y'].values\n\nplt.figure(figsize=(6,4))\nplt.scatter(x, y, s=12, c=\"#4477bb\")\nplt.title(\"x和y的散点图\")\nplt.xlabel(\"x值\")\nplt.ylabel(\"y值\")\nplt.grid(alpha=0.3)\nplt.tight_layout()\nplt.savefig(\"plot_data.jpg\", dpi=300)\nplt.show()\n"}