craiyon logo

Top-down blueprint style diagram of a vehicle interior with text labels like 'BAGAGES', 'CHAUFFEUR', and 'EMPLACEMENT PMR EXPRESS'.

Top-down blueprint style diagram of a vehicle interior with text labels like 'BAGAGES', 'CHAUFFEUR', and 'EMPLACEMENT PMR EXPRESS'.

import matplotlib.pyplot as plt import matplotlib.patches as patches def generer_plan_vehicule_court(): # Création de la figure fig, ax = plt.subplots(figsize=(12, 6), facecolor='#0f172a') ax.set_facecolor('#0f172a') # Contour du véhicule (Petit format / Monospace) vehicule = patches.FancyBboxPatch((1, 1), 8, 4, boxstyle="round,pad=0.3,rounding_size=0.8", linewidth=2, edgecolor='#38bdf8', facecolor='#1e293b') ax.add_patch(vehicule) # Pare-brise avant (à gauche) pare_brise = patches.Arc((1.5, 3), 1, 3.6, angle=0, theta1=90, theta2=270, color='#38bdf8', linewidth=2) ax.add_patch(pare_brise) # Porte coulissante latérale (en bas) ax.plot([4.5, 6.5], [0.9, 0.9], color='#0284c7', linewidth=4) ax.text(5.5, 0.5, "PORTE COULISSANTE & RAMPE PMR", color='#38bdf8', fontsize=8, ha='center', fontweight='bold') # Zone Avant (Conducteur & Rangement) ax.add_patch(patches.Rectangle((1.5, 3.2), 0.8, 0.8, linewidth=1, edgecolor='#38bdf8', facecolor='#334155', rx=0.1)) ax.text(1.9, 3.6, "Chauffeur", color='#ffffff', fontsize=8, ha='center', va='center') # Cloison légère de séparation ax.plot([2.8, 2.8], [1.2, 4.8], color='#94a3b8', linestyle='--', linewidth=1.5) # Place PMR (Siège Arrière Droit - Accès direct porte) ax.add_patch(patches.Rectangle((4.8, 1.5), 1.2, 1.2, linewidth=2, edgecolor='#38bdf8', facecolor='#0369a1', alpha=0.5, rx=0.1)) ax.add_patch(patches.Circle((5.4, 2.1), 0.4, linewidth=1.5, edgecolor='#38bdf8', facecolor='none')) ax.text(5.4, 1.1, "EMPLACEMENT PMR EXPRESS", Mehr sehen