教程
豆友w9E0使用豆绘AI创作了一幅文生图作品,创作时间为2025-11-25 22:27,创作主题为通用模型,创作描述为未填写,画风选择为无,创作模版为未设置和未设置风格参考图,欢迎围观并为TA点赞,作品链接:https://www.douhuiai.com/works/AaIQr4P_cvKB75Mf0WVscg.html
豆友w9E0
内容由 AI 生成,请仔细甄别
创作描述
import matplotlib.pyplot as plt import matplotlib.patches as patches from matplotlib.patches import FancyBboxPatch, Circle, Arrow plt.figure(figsize=(12, 8)) # 云端数据中心 cloud = FancyBboxPatch((0.4, 0.7), 0.2, 0.15, boxstyle="round,pad=0.02", facecolor='lightblue', edgecolor='darkblue', linewidth=2) plt.gca().add_patch(cloud) plt.text(0.5, 0.775, '云端数据中心\n(n₀)', ha='center', va='center', fontsize=10, weight='bold') # 边缘集群 clusters = [ (0.2, 0.45, '边缘集群1'), (0.5, 0.45, '边缘集群2'), (0.8, 0.45, '边缘集群3') ] for x, y, label in clusters: cluster = FancyBboxPatch((x-0.1, y-0.05), 0.2, 0.1, boxstyle="round,pad=0.02", facecolor='lightgreen', edgecolor='darkgreen', linewidth=2) plt.gca().add_patch(cluster) plt.text(x, y, label, ha='center', va='center', fontsize=9) # 边缘节点 for i in range(3): node = Circle((x-0.06+i*0.06, y-0.02), 0.02, facecolor='orange', edgecolor='darkorange') plt.gca().add_patch(node) # 数据采集设备 devices = [ (0.1, 0.25, '气象站', 'red'), (0.3, 0.25, '5G基站', 'purple'), (0.7, 0.25, 'MEC服务器', 'brown'), (0.9, 0.25, '气象站', 'red') ] for x, y, label, color in devices: device = FancyBboxPatch((x-0.05, y-0.03), 0.1, 0.06, boxstyle="round,pad=0.01", facecolor=color, edgecolor='dark'+color, linewidth=1, alpha=0.7) plt.gca().add_patch(device) plt.text(x, y, label, ha='center', va='center', fontsize=8, color='white') # 数据采集点 points = [(0.05, 0.1), (0.25, 0.1), (0.65, 0.1), (0.85, 0.1)] for x, y in points: point = Circle((x, y), 0.015, facecolor='red', edgecolor='darkred') plt.gca().add_patch(point) plt.text(x, y+0.03, '数据采集点', ha='center', va='center', fontsize=7) # 连接线 # 云端到边缘集群 plt.plot([0.5, 0.5], [0.7, 0.55], 'k--', linewidth=1) plt.text(0.52, 0.625, '高延迟链路', fontsize=8, rotation=90) # 边缘集群间连接 plt.plot([0.3, 0.45], [0.5, 0.5], 'b-', linewidth=2) plt.plot([0.55, 0.7], [0.5, 0.5], 'b-', linewidth=2) plt.
出图信息
创作类型
文生图
创作时间
11/25/2025
创作主题
通用模型