# Generated by pandoc-plot 1.6.1

import matplotlib.pyplot as plt
import numpy as np
import math

V = 2.0
R = 1.0
C = 1.0
t = np.linspace(0, 5*R*C, 500)  # Sample data.

plt.figure(figsize=(5, 2.7), layout='constrained')
plt.plot(t, V*np.exp(-t/(R*C)), label='decharge')  # etc.
plt.xlabel('temps [s]')
plt.ylabel('tension [V]')
plt.title("Tension du condensateur")
plt.legend()
Click here to see how this plot was generated.