79495752

Date: 2025-03-09 10:22:30
Score: 1
Natty:
Report link

# Menyimpan diagram sebagai gambar agar bisa diunduh

# Buat ulang diagram dalam ukuran besar untuk kualitas lebih baik

plt.figure(figsize=(20, 15))

nx.draw(G, pos, with_labels=True, node_color=node_colors, edge_color="gray", node_size=4000, font_size=10, font_weight="bold", arrowsize=12)

# Tambahkan legenda

plt.legend(handles=patches, loc="lower right", fontsize=12)

plt.title("Diagram Alur Kerangka Berpikir Penelitian", fontsize=16, fontweight="bold")

# Simpan gambar ke file untuk diunduh

diagram_path = "/mnt/data/kerangka_berpikir_penelitian.png"

plt.savefig(diagram_path, dpi=300, bbox_inches="tight")

# Berikan tautan untuk mengunduh

diagram_path

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Regina Khofifah