tanszek:oktatas:muszaki_informatika:matplotlib_i._alap_plotok
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tanszek:oktatas:muszaki_informatika:matplotlib_i._alap_plotok [2026/02/27 08:13] – [Összefoglaló feladatok] szabom | tanszek:oktatas:muszaki_informatika:matplotlib_i._alap_plotok [2026/02/27 08:14] (current) – [Összefoglaló feladatok] szabom | ||
|---|---|---|---|
| Line 167: | Line 167: | ||
| - Használj különböző vonalstílust. | - Használj különböző vonalstílust. | ||
| - | <sxh python> import numpy as np import matplotlib.pyplot as plt | + | <sxh python> |
| + | import numpy as np import matplotlib.pyplot as plt | ||
| x = np.linspace(0, | x = np.linspace(0, | ||
| Line 198: | Line 199: | ||
| - Ábrázold az átlagértékeket a sávok felett. | - Ábrázold az átlagértékeket a sávok felett. | ||
| - | <sxh python> import numpy as np import matplotlib.pyplot as plt | + | <sxh python> |
| + | import numpy as np import matplotlib.pyplot as plt | ||
| np.random.seed(0) | np.random.seed(0) | ||
| Line 234: | Line 236: | ||
| - Emeld ki a 30°C feletti napokat külön jelöléssel. | - Emeld ki a 30°C feletti napokat külön jelöléssel. | ||
| - | <sxh python> import numpy as np import matplotlib.pyplot as plt | + | <sxh python> |
| + | import numpy as np import matplotlib.pyplot as plt | ||
| np.random.seed(1) | np.random.seed(1) | ||
| Line 268: | Line 271: | ||
| - Jelöld a tengelyeket. | - Jelöld a tengelyeket. | ||
| - | <sxh python> import numpy as np import matplotlib.pyplot as plt | + | <sxh python> |
| + | import numpy as np import matplotlib.pyplot as plt | ||
| np.random.seed(2) | np.random.seed(2) | ||
| Line 293: | Line 297: | ||
| - Adj címeket és jelmagyarázatot. | - Adj címeket és jelmagyarázatot. | ||
| - | <sxh python> import numpy as np import matplotlib.pyplot as plt | + | <sxh python> |
| + | import numpy as np import matplotlib.pyplot as plt | ||
| np.random.seed(3) | np.random.seed(3) | ||
| Line 302: | Line 307: | ||
| plt.figure(figsize=(10, | plt.figure(figsize=(10, | ||
| - | 1. grafikon | + | #1. grafikon |
| plt.subplot(2, | plt.subplot(2, | ||
| plt.plot(honapok, | plt.plot(honapok, | ||
| Line 315: | Line 319: | ||
| plt.grid(True) | plt.grid(True) | ||
| - | 2. grafikon | + | #2. grafikon |
| plt.subplot(2, | plt.subplot(2, | ||
| eves = np.sum(bevetel, | eves = np.sum(bevetel, | ||
tanszek/oktatas/muszaki_informatika/matplotlib_i._alap_plotok.1772180020.txt.gz · Last modified: 2026/02/27 08:13 by szabom
