#+TITLE: Exercice 02-3 – Python #+AUTHOR: Kamill Daniel KOVACS #+DATE: 02/12/2025 #+LANGUAGE: fr # #+PROPERTY: header-args :eval never-export #+BEGIN_SRC python :results file :file plot.png import numpy as np import matplotlib.pyplot as plt x = np.array([...]) # toutes les données ici plt.figure(figsize=(6,4)) plt.plot(x, color="blue") plt.grid(True) plt.savefig("plot.png") "plot.png" #+END_SRC #+RESULTS: [[file:plot.png]] #+BEGIN_SRC python :results file :file hist.png plt.figure(figsize=(6,4)) plt.hist(x, bins=10, color="blue") plt.savefig("hist.png") "hist.png" #+END_SRC #+RESULTS: [[file:hist.png]]