This repository has been archived on 2024-01-06. You can view files and clone it, but cannot push or open issues or pull requests.
justhomework/AIandML/e1_python_basics/e1.2_matplotlib.ipynb

78 lines
1.6 KiB
Text
Raw Normal View History

2022-09-21 03:18:09 +00:00
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 人工智能与机器学习-实验1"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Part.III Matplotlib绘图练习\n",
"\n",
"|学号 |姓名 |\n",
"|----------|--------|\n",
"| | |"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 1. 曲线\n",
"\n",
"* 用蓝线绘制函数$𝑓(𝑥) = 𝑥^22𝑥+3$的图表,并在坐标(1,2)位置处标上一个红色的点\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 2. x-y图\n",
"\n",
"* 使用`np.linspace()`函数生成$t\\in [0, 2\\pi]$。\n",
"* 给定$𝑥=16*sin(𝑡)^3$和$𝑦=13*cos(𝑡)5*cos(2𝑡)2*cos(3𝑡)cos(4𝑡)$画出x-y图表\n",
"* 并给图标添加一个题目Heart"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
}
},
"nbformat": 4,
"nbformat_minor": 2
}