fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. }
  14. }
Success #stdin #stdout 0.08s 52584KB
stdin
import matplotlib.pyplot as plt
import numpy as np

# Configurer la figure propre et pro
fig, ax = plt.subplots(figsize=(11, 9))

# --- MURS ---
ax.plot([0, 0.96], [2.6, 2.6], color='#0f172a', linewidth=5)
ax.plot([0.96, 1.85], [2.6, 2.6], color='#0ea5e9', linewidth=5, label='Fenetre') 
ax.plot([1.85, 3.463], [2.6, 2.6], color='#0f172a', linewidth=5)
ax.plot([3.463, 3.463], [2.6, 0.48], color='#0f172a', linewidth=5)

# Niche Frigo Americain (94 x 71 cm)
ax.plot([3.463, 3.463], [0.0, -0.94], color='#0f172a', linewidth=5) 
ax.plot([3.463, 4.173], [0.0, 0.0], color='#0f172a', linewidth=3) 
ax.plot([3.463, 4.173], [-0.94, -0.94], color='#0f172a', linewidth=3) 
ax.plot([4.173, 4.173], [0.0, -0.94], color='#0f172a', linewidth=4) 

ax.plot([0, 0], [2.6, 1.67], color='#0f172a', linewidth=5)
ax.plot([0, 0], [0.77, 0], color='#0f172a', linewidth=5)

# --- PORTES ---
ax.plot([0, 0.45], [1.67, 1.67], color='#475569', linewidth=2.5)
ax.plot([0, 0.45], [0.77, 0.77], color='#475569', linewidth=2.5)
ax.plot([3.463, 3.463], [0.48, 0.0], color='#cbd5e1', linestyle='--') 
ax.plot([3.463, 3.463], [0.0, -0.40], color='#475569', linewidth=2.5) 

# --- MOBILIER ---
rect_lv = plt.Rectangle((0.36, 2.0), 0.60, 0.60, facecolor='#f8fafc', edgecolor='#64748b', linewidth=1.5)
ax.add_patch(rect_lv)
rect_evier = plt.Rectangle((0.96, 2.0), 0.89, 0.60, facecolor='#f1f5f9', edgecolor='#64748b', linewidth=1.5, hatch='//')
ax.add_patch(rect_evier)
rect_pdt_fond = plt.Rectangle((1.85, 2.0), 1.613, 0.60, facecolor='#f1f5f9', edgecolor='#64748b', linewidth=1.5)
ax.add_patch(rect_pdt_fond)
rect_pdt_droit = plt.Rectangle((2.863, 0.60), 0.60, 1.40, facecolor='#f1f5f9', edgecolor='#64748b', linewidth=1.5)
ax.add_patch(rect_pdt_droit)
rect_cuisson = plt.Rectangle((2.863, 1.40), 0.60, 0.60, facecolor='#fee2e2', edgecolor='#ef4444', linewidth=1.5)
ax.add_patch(rect_cuisson)
rect_frigo = plt.Rectangle((3.493, -0.89), 0.65, 0.85, facecolor='#e0f2fe', edgecolor='#0284c7', linewidth=2)
ax.add_patch(rect_frigo)

# --- PRISES (ROUGE) ---
ax.plot([0.37], [2.62], 'ro', markersize=10)
ax.text(0.37, 2.30, "Prises\n28-46 cm", fontsize=8, color='red', ha='center', weight='bold')
ax.plot([2.26], [2.62], 'ro', markersize=10)
ax.text(2.26, 2.30, "Prises\n33-49 cm", fontsize=8, color='red', ha='center', weight='bold')
ax.plot([3.48], [1.26], 'ro', markersize=10)
ax.text(2.25, 1.26, "PRISE FOUR DANS L'ANGLE\n(1,26-1,42 m du fond)", fontsize=8.5, color='#b91c1c', weight='bold', ha='right', va='center')

# --- ANNOTATIONS COMPLÈTES ---
ax.text(0.48, 2.45, "0,96 m", fontsize=10, ha='center', color='#334155')
ax.text(1.40, 2.45, "FENETRE\n0,89 m", fontsize=10, ha='center', color='#0284c7', weight='bold')
ax.text(2.65, 2.45, "1,613 m", fontsize=10, ha='center', color='#334155')
ax.text(3.68, 1.54, "Mur Droit : 2,12 m", fontsize=10, va='center', rotation=-90, color='#0f172a', weight='bold')
ax.text(0.66, 2.25, "LAVE-\nVAISSELLE", fontsize=8.5, weight='bold', ha='center', va='center')
ax.text(1.40, 2.25, "EVIER", fontsize=9.5, weight='bold', ha='center', va='center', color='#0284c7')
ax.text(3.16, 1.70, "CUISSON\n& FOUR\n(Angle)", fontsize=9, weight='bold', ha='center', va='center', color='#b91c1c')
ax.text(3.82, -0.47, "FRIGO\nAMERICAIN\n(94x71)", fontsize=9.5, color='#0284c7', weight='bold', ha='center', va='center')

ax.text(1.73, 3.30, "LONGUEUR TOTALE DU FOND : 3,463 m", fontsize=12, weight='bold', ha='center')
ax.text(1.73, -1.35, "Hauteur sous plafond : 2,395 m", fontsize=11, weight='bold', ha='center')

ax.set_xlim(-0.6, 4.6)
ax.set_ylim(-1.5, 3.6)
ax.axis('off')
plt.title("PLAN CUISINE TECHNIQUE DÉFINITIF", fontsize=14, weight='bold')
plt.show()
stdout
Standard output is empty