2025-03-17 16:40:01 +08:00
|
|
|
|
{
|
|
|
|
|
"cells": [
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 1,
|
|
|
|
|
"metadata": {},
|
2025-05-19 23:22:56 +08:00
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"name": "stderr",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 31639 (\\N{CJK UNIFIED IDEOGRAPH-7B97}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 27861 (\\N{CJK UNIFIED IDEOGRAPH-6CD5}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 24615 (\\N{CJK UNIFIED IDEOGRAPH-6027}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 33021 (\\N{CJK UNIFIED IDEOGRAPH-80FD}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 25351 (\\N{CJK UNIFIED IDEOGRAPH-6307}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 26631 (\\N{CJK UNIFIED IDEOGRAPH-6807}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 36816 (\\N{CJK UNIFIED IDEOGRAPH-8FD0}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 34892 (\\N{CJK UNIFIED IDEOGRAPH-884C}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 26102 (\\N{CJK UNIFIED IDEOGRAPH-65F6}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 38388 (\\N{CJK UNIFIED IDEOGRAPH-95F4}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 20248 (\\N{CJK UNIFIED IDEOGRAPH-4F18}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 21270 (\\N{CJK UNIFIED IDEOGRAPH-5316}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 26041 (\\N{CJK UNIFIED IDEOGRAPH-65B9}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 21521 (\\N{CJK UNIFIED IDEOGRAPH-5411}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 31181 (\\N{CJK UNIFIED IDEOGRAPH-79CD}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 32676 (\\N{CJK UNIFIED IDEOGRAPH-7FA4}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 20010 (\\N{CJK UNIFIED IDEOGRAPH-4E2A}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 20307 (\\N{CJK UNIFIED IDEOGRAPH-4F53}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 24085 (\\N{CJK UNIFIED IDEOGRAPH-5E15}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 32047 (\\N{CJK UNIFIED IDEOGRAPH-7D2F}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 25176 (\\N{CJK UNIFIED IDEOGRAPH-6258}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 21069 (\\N{CJK UNIFIED IDEOGRAPH-524D}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1782657241.py:68: UserWarning: Glyph 27839 (\\N{CJK UNIFIED IDEOGRAPH-6CBF}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"source": [
|
|
|
|
|
"import numpy as np\n",
|
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
|
"from matplotlib.patches import Polygon\n",
|
|
|
|
|
"import matplotlib.font_manager as fm\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 设置中文字体\n",
|
|
|
|
|
"plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签\n",
|
|
|
|
|
"plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 生成随机种群\n",
|
|
|
|
|
"np.random.seed(42)\n",
|
|
|
|
|
"n_points = 50\n",
|
|
|
|
|
"points = np.random.rand(n_points, 2) * 10\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 识别帕累托前沿\n",
|
|
|
|
|
"def is_pareto_efficient(costs):\n",
|
|
|
|
|
" is_efficient = np.ones(costs.shape[0], dtype=bool)\n",
|
|
|
|
|
" for i, c in enumerate(costs):\n",
|
|
|
|
|
" if is_efficient[i]:\n",
|
|
|
|
|
" is_efficient[is_efficient] = np.any(costs[is_efficient] < c, axis=1) # Remove dominated points\n",
|
|
|
|
|
" is_efficient[i] = True\n",
|
|
|
|
|
" return is_efficient\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 获取帕累托前沿点\n",
|
|
|
|
|
"pareto_front_mask = is_pareto_efficient(points)\n",
|
|
|
|
|
"pareto_front = points[pareto_front_mask]\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 创建图形\n",
|
|
|
|
|
"plt.figure(figsize=(10, 8))\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 绘制非帕累托前沿点\n",
|
|
|
|
|
"plt.scatter(points[~pareto_front_mask, 0], points[~pareto_front_mask, 1], \n",
|
|
|
|
|
" c='lightgray', s=100, label='种群个体')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 绘制帕累托前沿点\n",
|
|
|
|
|
"plt.scatter(pareto_front[:, 0], pareto_front[:, 1], \n",
|
|
|
|
|
" c='red', s=100, label='帕累托前沿个体')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 连接帕累托前沿点\n",
|
|
|
|
|
"sorted_front = pareto_front[np.argsort(pareto_front[:, 0])]\n",
|
|
|
|
|
"plt.plot(sorted_front[:, 0], sorted_front[:, 1], 'r--', alpha=0.5)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 添加密度分布示意\n",
|
|
|
|
|
"for point in pareto_front:\n",
|
|
|
|
|
" circle = plt.Circle(point, 0.5, color='blue', fill=False, alpha=0.2)\n",
|
|
|
|
|
" plt.gca().add_patch(circle)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 添加箭头和标注\n",
|
|
|
|
|
"plt.arrow(8, 8, -0.5, -0.5, head_width=0.2, head_length=0.2, fc='k', ec='k')\n",
|
|
|
|
|
"plt.text(8.2, 8.2, '优化方向', fontsize=20)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 设置标题和标签\n",
|
|
|
|
|
"# plt.title('帕累托前沿维护策略示意图', fontsize=14, pad=20)\n",
|
|
|
|
|
"plt.xlabel('算法性能指标', fontsize=20)\n",
|
|
|
|
|
"plt.ylabel('运行时间', fontsize=20)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 添加图例\n",
|
|
|
|
|
"plt.legend(loc='upper right', fontsize=20)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 添加网格\n",
|
|
|
|
|
"plt.grid(True, linestyle='--', alpha=0.3)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 设置坐标轴范围\n",
|
|
|
|
|
"plt.xlim(-0.5, 11)\n",
|
|
|
|
|
"plt.ylim(-0.5, 11)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 保存图片\n",
|
|
|
|
|
"plt.savefig('pareto_front_strategy.png', dpi=300, bbox_inches='tight')\n",
|
|
|
|
|
"plt.close() "
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2025-03-18 16:51:30 +08:00
|
|
|
|
"execution_count": 2,
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [],
|
|
|
|
|
"source": [
|
|
|
|
|
"text1 = '''贪心\n",
|
|
|
|
|
"回溯\n",
|
|
|
|
|
"高度优先\n",
|
|
|
|
|
"图着色\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"饱和度\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"回溯\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"相邻约束\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"图着色\n",
|
|
|
|
|
"贪心\n",
|
|
|
|
|
"回溯\n",
|
|
|
|
|
"高度优先\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"优先队列\n",
|
2025-03-18 16:51:30 +08:00
|
|
|
|
"度数优先\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"颜色选择\n",
|
|
|
|
|
"贪心\n",
|
|
|
|
|
"相邻未着色\n",
|
|
|
|
|
"颜色选择\n",
|
2025-03-18 16:51:30 +08:00
|
|
|
|
"度数优先\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"饱和度\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"动态更新\n",
|
|
|
|
|
"可用颜色\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"优先队列\n",
|
|
|
|
|
"相邻约束\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"饱和度\n",
|
|
|
|
|
"度数选择\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"相邻约束\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"颜色使用\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"Welsh-Powell\n",
|
|
|
|
|
"Welsh-Powell\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"动态更新\n",
|
|
|
|
|
"可用颜色\n",
|
|
|
|
|
"相邻冲突\n",
|
|
|
|
|
"颜色选择\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"饱和度\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"动态更新\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"相邻约束\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"颜色选择\n",
|
|
|
|
|
"'''\n",
|
|
|
|
|
"text2 = '''\n",
|
|
|
|
|
"贪心\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"度数优先\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"颜色分配\n",
|
|
|
|
|
"图着色\n",
|
|
|
|
|
"最低可用颜色\n",
|
|
|
|
|
"优化\n",
|
|
|
|
|
"优先队列\n",
|
|
|
|
|
"颜色分配\n",
|
|
|
|
|
"贪心\n",
|
|
|
|
|
"图着色\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"度数优先\n",
|
|
|
|
|
"邻居历史\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"最小颜色\n",
|
|
|
|
|
"图着色\n",
|
|
|
|
|
"贪心\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"贪心\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"邻居历史\n",
|
|
|
|
|
"颜色最小化\n",
|
|
|
|
|
"图着色\n",
|
|
|
|
|
"颜色选择\n",
|
|
|
|
|
"Welsh-Powell\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"度数优先\n",
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"颜色分配\n",
|
|
|
|
|
"贪心\n",
|
|
|
|
|
"图着色\n",
|
|
|
|
|
"贪心\n",
|
|
|
|
|
"迭代着色\n",
|
|
|
|
|
"相邻约束\n",
|
|
|
|
|
"图着色\n",
|
|
|
|
|
"颜色选择\n",
|
|
|
|
|
"Welsh-Powell\n",
|
|
|
|
|
"贪心\n",
|
|
|
|
|
"降序着色\n",
|
|
|
|
|
"图着色\n",
|
|
|
|
|
"颜色分配\n",
|
|
|
|
|
"贪心\n",
|
|
|
|
|
"度数优先\n",
|
|
|
|
|
"最小颜色\n",
|
|
|
|
|
"相邻约束\n",
|
|
|
|
|
"图着色'''"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
2025-05-19 23:22:56 +08:00
|
|
|
|
"execution_count": 4,
|
2025-03-17 16:40:01 +08:00
|
|
|
|
"metadata": {},
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"outputs": [
|
2025-05-19 23:22:56 +08:00
|
|
|
|
{
|
|
|
|
|
"name": "stderr",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 20248 (\\N{CJK UNIFIED IDEOGRAPH-4F18}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 20808 (\\N{CJK UNIFIED IDEOGRAPH-5148}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 38431 (\\N{CJK UNIFIED IDEOGRAPH-961F}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 21015 (\\N{CJK UNIFIED IDEOGRAPH-5217}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 21160 (\\N{CJK UNIFIED IDEOGRAPH-52A8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 24577 (\\N{CJK UNIFIED IDEOGRAPH-6001}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 26356 (\\N{CJK UNIFIED IDEOGRAPH-66F4}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 26032 (\\N{CJK UNIFIED IDEOGRAPH-65B0}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 22238 (\\N{CJK UNIFIED IDEOGRAPH-56DE}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 28335 (\\N{CJK UNIFIED IDEOGRAPH-6EAF}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 24230 (\\N{CJK UNIFIED IDEOGRAPH-5EA6}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 25968 (\\N{CJK UNIFIED IDEOGRAPH-6570}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 36873 (\\N{CJK UNIFIED IDEOGRAPH-9009}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 25321 (\\N{CJK UNIFIED IDEOGRAPH-62E9}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 30456 (\\N{CJK UNIFIED IDEOGRAPH-76F8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 37051 (\\N{CJK UNIFIED IDEOGRAPH-90BB}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 20914 (\\N{CJK UNIFIED IDEOGRAPH-51B2}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 31361 (\\N{CJK UNIFIED IDEOGRAPH-7A81}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 32422 (\\N{CJK UNIFIED IDEOGRAPH-7EA6}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 26463 (\\N{CJK UNIFIED IDEOGRAPH-675F}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 36138 (\\N{CJK UNIFIED IDEOGRAPH-8D2A}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 24515 (\\N{CJK UNIFIED IDEOGRAPH-5FC3}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 23621 (\\N{CJK UNIFIED IDEOGRAPH-5C45}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 21382 (\\N{CJK UNIFIED IDEOGRAPH-5386}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 21490 (\\N{CJK UNIFIED IDEOGRAPH-53F2}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 39281 (\\N{CJK UNIFIED IDEOGRAPH-9971}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 21644 (\\N{CJK UNIFIED IDEOGRAPH-548C}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:70: UserWarning: Glyph 39640 (\\N{CJK UNIFIED IDEOGRAPH-9AD8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.tight_layout()\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 20248 (\\N{CJK UNIFIED IDEOGRAPH-4F18}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 20808 (\\N{CJK UNIFIED IDEOGRAPH-5148}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 38431 (\\N{CJK UNIFIED IDEOGRAPH-961F}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 21015 (\\N{CJK UNIFIED IDEOGRAPH-5217}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 21160 (\\N{CJK UNIFIED IDEOGRAPH-52A8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 24577 (\\N{CJK UNIFIED IDEOGRAPH-6001}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 26356 (\\N{CJK UNIFIED IDEOGRAPH-66F4}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 26032 (\\N{CJK UNIFIED IDEOGRAPH-65B0}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 22238 (\\N{CJK UNIFIED IDEOGRAPH-56DE}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 28335 (\\N{CJK UNIFIED IDEOGRAPH-6EAF}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 24230 (\\N{CJK UNIFIED IDEOGRAPH-5EA6}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 25968 (\\N{CJK UNIFIED IDEOGRAPH-6570}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 36873 (\\N{CJK UNIFIED IDEOGRAPH-9009}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 25321 (\\N{CJK UNIFIED IDEOGRAPH-62E9}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 30456 (\\N{CJK UNIFIED IDEOGRAPH-76F8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 37051 (\\N{CJK UNIFIED IDEOGRAPH-90BB}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 20914 (\\N{CJK UNIFIED IDEOGRAPH-51B2}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 31361 (\\N{CJK UNIFIED IDEOGRAPH-7A81}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 32422 (\\N{CJK UNIFIED IDEOGRAPH-7EA6}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 26463 (\\N{CJK UNIFIED IDEOGRAPH-675F}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 36138 (\\N{CJK UNIFIED IDEOGRAPH-8D2A}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 24515 (\\N{CJK UNIFIED IDEOGRAPH-5FC3}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 23621 (\\N{CJK UNIFIED IDEOGRAPH-5C45}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 21382 (\\N{CJK UNIFIED IDEOGRAPH-5386}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 21490 (\\N{CJK UNIFIED IDEOGRAPH-53F2}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 39281 (\\N{CJK UNIFIED IDEOGRAPH-9971}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 21644 (\\N{CJK UNIFIED IDEOGRAPH-548C}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/var/folders/q7/rt2ts9ns2nb8_xd5d3t4p7_r0000gn/T/ipykernel_86780/1483034064.py:71: UserWarning: Glyph 39640 (\\N{CJK UNIFIED IDEOGRAPH-9AD8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" plt.savefig('rador.png', dpi=300)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 20248 (\\N{CJK UNIFIED IDEOGRAPH-4F18}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 20808 (\\N{CJK UNIFIED IDEOGRAPH-5148}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 38431 (\\N{CJK UNIFIED IDEOGRAPH-961F}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 21015 (\\N{CJK UNIFIED IDEOGRAPH-5217}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 21160 (\\N{CJK UNIFIED IDEOGRAPH-52A8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 24577 (\\N{CJK UNIFIED IDEOGRAPH-6001}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 26356 (\\N{CJK UNIFIED IDEOGRAPH-66F4}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 26032 (\\N{CJK UNIFIED IDEOGRAPH-65B0}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 22238 (\\N{CJK UNIFIED IDEOGRAPH-56DE}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 28335 (\\N{CJK UNIFIED IDEOGRAPH-6EAF}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 24230 (\\N{CJK UNIFIED IDEOGRAPH-5EA6}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 25968 (\\N{CJK UNIFIED IDEOGRAPH-6570}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 36873 (\\N{CJK UNIFIED IDEOGRAPH-9009}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 25321 (\\N{CJK UNIFIED IDEOGRAPH-62E9}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 30456 (\\N{CJK UNIFIED IDEOGRAPH-76F8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 37051 (\\N{CJK UNIFIED IDEOGRAPH-90BB}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 20914 (\\N{CJK UNIFIED IDEOGRAPH-51B2}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 31361 (\\N{CJK UNIFIED IDEOGRAPH-7A81}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 32422 (\\N{CJK UNIFIED IDEOGRAPH-7EA6}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 26463 (\\N{CJK UNIFIED IDEOGRAPH-675F}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 36138 (\\N{CJK UNIFIED IDEOGRAPH-8D2A}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 24515 (\\N{CJK UNIFIED IDEOGRAPH-5FC3}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 23621 (\\N{CJK UNIFIED IDEOGRAPH-5C45}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 21382 (\\N{CJK UNIFIED IDEOGRAPH-5386}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 21490 (\\N{CJK UNIFIED IDEOGRAPH-53F2}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 39281 (\\N{CJK UNIFIED IDEOGRAPH-9971}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 21644 (\\N{CJK UNIFIED IDEOGRAPH-548C}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"/Users/yangyudong/miniconda3/envs/lead/lib/python3.11/site-packages/IPython/core/pylabtools.py:170: UserWarning: Glyph 39640 (\\N{CJK UNIFIED IDEOGRAPH-9AD8}) missing from font(s) DejaVu Sans.\n",
|
|
|
|
|
" fig.canvas.print_figure(bytes_io, **kw)\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n",
|
|
|
|
|
"findfont: Generic family 'sans-serif' not found because none of the following families were found: SimHei\n"
|
|
|
|
|
]
|
|
|
|
|
},
|
2025-03-17 16:48:24 +08:00
|
|
|
|
{
|
|
|
|
|
"data": {
|
2025-05-19 23:22:56 +08:00
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA54AAAMDCAYAAADKd8p6AAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQABAABJREFUeJzs3Xd8W/W9P/6XJO8lb8t77xXvlcSO7YR1oQXKaEtp4LaEG1rgFiizLVxoKaX8KKuF0kKgYbVAKVwoAdvxiLe8916yLG9blq2t8/uDr3Wz43FkDb+fj4cecWzrc962ZOm8zmdxGIZhQAghhBBCCCGEGAjX2AUQQgghhBBCCLFsFDwJIYQQQgghhBgUBU9CCCGEEEIIIQZFwZMQQgghhBBCiEFR8CSEEEIIIYQQYlAUPAkhhBBCCCGEGBQFT0II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w7bXX4pZbbkFhYaHF/eyEEMIGemUkhBACAJiensb777+Pd955B+3t7bjqqqvw+9//HldeeSVsbW2NXR5rGIaBQqE4I1yuf7y6ugoA+vDk5OQEgUAAe3v7M8KmJYZvDocDW1tb2Nrags/nX/D7GIaBWq0+I6DK5XLIZDJIJBLIZDJoNBrY2dmdEUTXP3Z0dLSI319ISAgeeeQRPPzww2htbcXx48dx+PBh6HQ6fPe738X3v/99pKWl0VxnQgj5fyh4EkLILiaTyfDJJ5/g+PHjKC0tRV5eHu644w5cf/31cHNzM3Z526ZQKLC0tITl5WWsrKzog6ZWqz2jl87T0xMhISFwcnKCvb29RQQjQ+FwOLCxsYGNjQ1cXFzO+fp
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 1200x800 with 1 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
2025-05-19 23:22:56 +08:00
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"text1_freq: {'Welsh-Powell': 2, '优先队列': 2, '动态更新': 3, '回溯': 3, '度数优先': 2, '度数选择': 1, '相邻冲突': 1, '相邻约束': 4, '贪心': 3, '邻居历史': 0, '饱和度': 4, '高度优先': 2}\n",
|
|
|
|
|
"text2_freq: {'Welsh-Powell': 2, '优先队列': 1, '动态更新': 0, '回溯': 0, '度数优先': 4, '度数选择': 0, '相邻冲突': 0, '相邻约束': 2, '贪心': 8, '邻居历史': 2, '饱和度': 0, '高度优先': 0}\n"
|
|
|
|
|
]
|
2025-03-17 16:48:24 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
|
"import numpy as np\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"plt.rcParams['font.sans-serif'] = ['SimHei'] # 用来正常显示中文标签\n",
|
|
|
|
|
"plt.rcParams['axes.unicode_minus'] = False # 用来正常显示负号\n",
|
|
|
|
|
"plt.rcParams['font.size'] = 16 # 设置更大的字号\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 定义要删除的关键词\n",
|
|
|
|
|
"keywords = ['着色', '颜色', '图着色',' ','优化']\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 预处理文本,删除包含关键词的行\n",
|
|
|
|
|
"text1_lines = text1.strip().split('\\n')\n",
|
|
|
|
|
"text2_lines = text2.strip().split('\\n')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"text1_filtered = []\n",
|
|
|
|
|
"text2_filtered = []\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"for line in text1_lines:\n",
|
|
|
|
|
" if not any(keyword in line for keyword in keywords):\n",
|
|
|
|
|
" text1_filtered.append(line)\n",
|
|
|
|
|
" \n",
|
|
|
|
|
"for line in text2_lines:\n",
|
|
|
|
|
" if not any(keyword in line for keyword in keywords):\n",
|
|
|
|
|
" text2_filtered.append(line)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"text1 = '\\n'.join(text1_filtered)\n",
|
|
|
|
|
"text2 = '\\n'.join(text2_filtered)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 统计text1和text2中的词频\n",
|
|
|
|
|
"text1_words = text1.strip().split('\\n')\n",
|
|
|
|
|
"text2_words = text2.strip().split('\\n')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 获取所有唯一的词\n",
|
|
|
|
|
"all_words = sorted(set(text1_words + text2_words))\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 统计词频\n",
|
|
|
|
|
"text1_freq = {word: text1_words.count(word) for word in all_words}\n",
|
|
|
|
|
"text2_freq = {word: text2_words.count(word) for word in all_words}\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 创建雷达图\n",
|
|
|
|
|
"plt.figure(figsize=(12, 8))\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 计算角度\n",
|
|
|
|
|
"angles = np.linspace(0, 2*np.pi, len(all_words), endpoint=False)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 闭合雷达图\n",
|
|
|
|
|
"values1 = list(text1_freq.values())\n",
|
|
|
|
|
"values2 = list(text2_freq.values())\n",
|
|
|
|
|
"values1.append(values1[0])\n",
|
|
|
|
|
"values2.append(values2[0])\n",
|
|
|
|
|
"angles = np.concatenate((angles, [angles[0]]))\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 绘制雷达图\n",
|
|
|
|
|
"ax = plt.subplot(111, projection='polar')\n",
|
2025-03-18 16:51:30 +08:00
|
|
|
|
"ax.plot(angles, values1, 'o-', linewidth=2, label='AAE', color='skyblue', alpha=0.7)\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"ax.fill(angles, values1, alpha=0.25, color='skyblue')\n",
|
|
|
|
|
"ax.plot(angles, values2, 'o-', linewidth=2, label='EoH', color='red', alpha=0.7)\n",
|
|
|
|
|
"ax.fill(angles, values2, alpha=0.25, color='red')\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 设置刻度标签\n",
|
|
|
|
|
"ax.set_xticks(angles[:-1])\n",
|
|
|
|
|
"ax.set_xticklabels(all_words, fontsize=20)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 添加图例和标题\n",
|
2025-03-18 16:51:30 +08:00
|
|
|
|
"plt.legend(loc='upper right', bbox_to_anchor=(0.05, 0.05),fontsize=24)\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"# plt.title('词频分布雷达图对比', pad=20)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"plt.tight_layout()\n",
|
|
|
|
|
"plt.savefig('rador.png', dpi=300)\n",
|
2025-05-19 23:22:56 +08:00
|
|
|
|
"plt.show()\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 输出画雷达图的时候最终用到的数据\n",
|
|
|
|
|
"print(\"text1_freq:\", text1_freq)\n",
|
|
|
|
|
"print(\"text2_freq:\", text2_freq)\n"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 4,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA+YAAAMUCAYAAAAxOj01AAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQABAABJREFUeJzs3XdcU2f7P/BPCHvvvZENAjIcqKioVVut1lZra51tfWxrW9s+be1Qa+2wS/t02+GoHVY7XHWB4AAUEJApIhD23jMJyf37w1/OF2TICIRxvV+vvIycc+5z5SQ5Ode5F48xxkAIIYQQQgghhBCFUFJ0AIQQQgghhBBCyFhGiTkhhBBCCCGEEKJAlJgTQgghhBBCCCEKRIk5IYQQQgghhBCiQJSYE0IIIYQQQgghCkSJOSGEEEIIIYQQokCUmBNCCCGEEEIIIQpEiTkhhBBCCCGEEKJAlJgTQgghhBBCCCEKRIk5IYQQQkaN/fv3g8fjgcfjQSAQKDocREZGcvFERkYqOhxCCCHDFCXmhBBCRoT2CU77h7KyMgwNDeHg4IDp06dj8+bN+PPPPyESiRQdMgEgEAi6fN94PB7U1NRgYWGBOXPmYPfu3airq1N0uIQQQohCUGJOCCFkRJNIJKipqYFAIMDly5exZ88ePPzww7C2tsbOnTvR1tam6BBJN0QiEUpLSxEWFoaXXnoJHh4eiImJUXRYQ2r79u3cjQpCCCFjF48xxhQdBCGEEHIvkZGRmDlzJgBg48aNeOaZZ7hljY2NqKmpQXJyMsLDwxEWFgbZz1tQUBBOnjwJExMThcQ91gkEAjg4OAAAHnzwQezcuZNb1traips3b+Krr77C1atX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mgx0UIIUQ+KDEnhBAyqmlra3PPGxoaOiw7duwYACAkJKTLhLq96dOnAwBiYmI6/D08PBzAnRsA999/f7fbr1q1qtcxP/74490uKyoqwvXr1wEAy5Yt67Ecd3d3GBsbA+gYt1gs5kY+f/jhhzsMVnY3fX19eHt7dyqjPw4cONBhYDM1NTX4+vrip59+AgCoqqrip59+gqenZ5fbBwcHdxjora/CwsK45+vXr+92veDgYLi7u3fa5m42NjaYNm1av+PpK9lNmPr6+i4HJDxx4gQqKysBUDN2QggZaSgxJ4QQMqq1T8Z1dXU7LIuPjwcAnD17tssRsds/ZNN5yUZYl0lNTQUA+Pr6gs/ndxuHt7d3r2t6x48f3+0yWcwAsGLFinvGLUvU2sednp7O1bhu2bLlnmXI9nn3a5cXMzMzrFmzBgkJCXjiiSe6Xa+n49IbsvdKVVWVm0qvOxMnTgQAZGVlQSQSDUo8fTV58mTupsXdLTfa/83MzKzHm0SEEEKGH0rMCSGEjGqyxBQADA0NuedisRi1tbV9Lu/uJsSy5vH3qnHn8/kwMDDo1T56Wk82QFpftY9bHmX0x4MPPoiUlBTukZmZifLycpSWlmLfvn3d1pTL9Pb4dae6uhrAnc+BsnLP49/KmoEzxjp1gZBXPP0hqzWPiIjoMB1cSUkJzpw5A+BO64x7vT5CCCHDC521CSGEjGqyEaoBwNXVlXsukUi458uWLcPbb789pHH1pKea9/Zx//LLL72utW2fRLYv4+OPP8a8efN6VYaWllav1uuOvr4+vLy8+r19T8elL3pqui/DGLvnOvKKpy+eeOIJvP766xAKhThw4AC2bdsGADh48CD3vlIzdkIIGXkoMSeEEDKqnT9/nns+depU7rm6ujo0NTXR3NyM2trafieMBgYGKC0tvWcttEQi6bbmtS/aD2bH4/H6FXf7MsRi8YCS5ZFE1mKiqqoKbW1tPdY
|
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 1200x800 with 1 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
|
"import numpy as np\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# Create English translations for AAE_freq\n",
|
|
|
|
|
"AAE_freq_en = {\n",
|
|
|
|
|
" 'Welsh-Powell': 2,\n",
|
|
|
|
|
" 'Priority Queue': 2, # 优先队列\n",
|
|
|
|
|
" 'Dynamic Update': 3, # 动态更新\n",
|
|
|
|
|
" 'Backtracking': 3, # 回溯\n",
|
|
|
|
|
" 'Degree Priority': 2, # 度数优先\n",
|
|
|
|
|
" 'Degree Selection': 1, # 度数选择\n",
|
|
|
|
|
" 'Adjacent Conflict': 1, # 相邻冲突\n",
|
|
|
|
|
" 'Adjacent Constraint': 4, # 相邻约束\n",
|
|
|
|
|
" 'Greedy': 3, # 贪心\n",
|
|
|
|
|
" 'Neighbor History': 0, # 邻居历史\n",
|
|
|
|
|
" 'Saturation': 4, # 饱和度\n",
|
|
|
|
|
" 'Height Priority': 2 # 高度优先\n",
|
|
|
|
|
"}\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# Create English translations for MEoH_freq\n",
|
|
|
|
|
"MEoH_freq_en = {\n",
|
|
|
|
|
" 'Welsh-Powell': 2,\n",
|
|
|
|
|
" 'Priority Queue': 1,\n",
|
|
|
|
|
" 'Dynamic Update': 0,\n",
|
|
|
|
|
" 'Backtracking': 0,\n",
|
|
|
|
|
" 'Degree Priority': 4,\n",
|
|
|
|
|
" 'Degree Selection': 0,\n",
|
|
|
|
|
" 'Adjacent Conflict': 0,\n",
|
|
|
|
|
" 'Adjacent Constraint': 2,\n",
|
|
|
|
|
" 'Greedy': 8,\n",
|
|
|
|
|
" 'Neighbor History': 2,\n",
|
|
|
|
|
" 'Saturation': 0,\n",
|
|
|
|
|
" 'Height Priority': 0\n",
|
|
|
|
|
"}\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 获取所有唯一的词\n",
|
|
|
|
|
"all_words = sorted(set(AAE_freq_en.keys()).union(set(MEoH_freq_en.keys())))\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 使用上面这份数据绘图\n",
|
|
|
|
|
"# 创建雷达图\n",
|
|
|
|
|
"plt.figure(figsize=(12, 8))\n",
|
|
|
|
|
"# 计算角度\n",
|
|
|
|
|
"angles = np.linspace(0, 2*np.pi, len(all_words), endpoint=False)\n",
|
|
|
|
|
"# 闭合雷达图\n",
|
|
|
|
|
"values1 = list(AAE_freq_en.values())\n",
|
|
|
|
|
"values2 = list(MEoH_freq_en.values())\n",
|
|
|
|
|
"values1.append(values1[0])\n",
|
|
|
|
|
"values2.append(values2[0])\n",
|
|
|
|
|
"angles = np.concatenate((angles, [angles[0]]))\n",
|
|
|
|
|
"# 绘制雷达图\n",
|
|
|
|
|
"ax = plt.subplot(111, projection='polar')\n",
|
|
|
|
|
"ax.plot(angles, values1, 'o-', linewidth=2, label='AAE', color='skyblue', alpha=0.7)\n",
|
|
|
|
|
"ax.fill(angles, values1, alpha=0.25, color='skyblue')\n",
|
|
|
|
|
"ax.plot(angles, values2, 'o-', linewidth=2, label='MEoH', color='red', alpha=0.7)\n",
|
|
|
|
|
"ax.fill(angles, values2, alpha=0.25, color='red')\n",
|
|
|
|
|
"# 设置刻度标签\n",
|
|
|
|
|
"ax.set_xticks(angles[:-1])\n",
|
|
|
|
|
"ax.set_xticklabels(all_words, fontsize=20)\n",
|
|
|
|
|
"# 添加图例和标题\n",
|
|
|
|
|
"plt.legend(loc='upper right', bbox_to_anchor=(0.05, 0.05),fontsize=24)\n",
|
|
|
|
|
"# plt.title('词频分布雷达图对比', pad=20)\n",
|
|
|
|
|
"plt.tight_layout()\n",
|
|
|
|
|
"plt.savefig('rador_en.png', dpi=300)\n",
|
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 8,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"name": "stdout",
|
|
|
|
|
"output_type": "stream",
|
|
|
|
|
"text": [
|
|
|
|
|
"AAE_freq_en count: 27\n",
|
|
|
|
|
"MEoH_freq_en count: 19\n"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"# 计算AAE_freq_en和MEoH_freq_en分别有多少个关键词,不需要唯一\n",
|
|
|
|
|
"AAE_count = sum(AAE_freq_en.values())\n",
|
|
|
|
|
"MEoH_count = sum(MEoH_freq_en.values())\n",
|
|
|
|
|
"print(\"AAE_freq_en count:\", AAE_count)\n",
|
|
|
|
|
"print(\"MEoH_freq_en count:\", MEoH_count)\n"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"cell_type": "code",
|
|
|
|
|
"execution_count": 7,
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"outputs": [
|
|
|
|
|
{
|
|
|
|
|
"data": {
|
|
|
|
|
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAw4AAAJOCAYAAAAebVCVAAAAOnRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjEwLjAsIGh0dHBzOi8vbWF0cGxvdGxpYi5vcmcvlHJYcgAAAAlwSFlzAAAPYQAAD2EBqD+naQAAghxJREFUeJzs3Xd8VMX6x/Hv2TRCSUJN6E0RuEgREAEpUi8WEBALIEUFFBsXUVGuAhYEVNSfKIIoTUABQVQUUZAmoJRQgoIloYYAoSSQhJTd8/sjN0tCEnaTs6l83ve1r5vMzjnzTHZc9tk5c8YwTdMUAAAAAFyFraADAAAAAFD4kTgAAAAAcInEAQAAAIBLJA4AAAAAXCJxAAAAAOASiQMAAAAAl0gcAAAAALhE4gAAAADAJe+CDqCwcjgcioyMVJkyZWQYRkGHAwAAAHiEaZq6cOGCqlSpIpvN/XkEEodsREZGqnr16gUdBgAAAJAnjh49qmrV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efGW43WqdOHVWqVElhYWFKSEhwltevX19BQUEKDQ3NMAgaN24sX19f7dixI0MMLVq0UFJSkvbu3ess8/LyUsuWLRUTE6MDBw44y/39/dWkSRNFR0crPDzcWR4YGKgGDRooMjJSx44dc5bTJ/pEn+gTfaJP9Ik+0adrq0+53U/N0hqH7du3q1WrVjIMQ7Nnz3be3z+rNQ7Hjh1Tnz59tGPHDnl7e+v333/Xddddl9umM4iLi1PdunX
|
|
|
|
|
"text/plain": [
|
|
|
|
|
"<Figure size 800x600 with 1 Axes>"
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
"metadata": {},
|
|
|
|
|
"output_type": "display_data"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"source": [
|
|
|
|
|
"# 画一个柱状图,横轴分别是AAE,MEoH、EoH、FunSearch,纵轴是平均代码行数\n",
|
|
|
|
|
"# 开始绘图\n",
|
|
|
|
|
"import matplotlib.pyplot as plt\n",
|
|
|
|
|
"import numpy as np\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"data = {\n",
|
|
|
|
|
" 'AAE': 45.3,\n",
|
|
|
|
|
" 'MEoH': 21.5,\n",
|
|
|
|
|
" 'EoH': 23.1,\n",
|
|
|
|
|
" 'FunSearch': 18.2\n",
|
|
|
|
|
"}\n",
|
|
|
|
|
"# 提取数据\n",
|
|
|
|
|
"labels = list(data.keys())\n",
|
|
|
|
|
"values = list(data.values())\n",
|
|
|
|
|
"# 设置柱状图的宽度\n",
|
|
|
|
|
"bar_width = 0.4\n",
|
|
|
|
|
"# 设置柱状图的位置\n",
|
|
|
|
|
"x = np.arange(len(labels))\n",
|
|
|
|
|
"# 创建柱状图\n",
|
|
|
|
|
"plt.figure(figsize=(8, 6))\n",
|
|
|
|
|
"plt.bar(x, values, width=bar_width, color=['skyblue', 'red', 'green', 'orange'])\n",
|
|
|
|
|
"# 添加数据标签\n",
|
|
|
|
|
"for i, v in enumerate(values):\n",
|
|
|
|
|
" plt.text(i, v + 5, str(v), ha='center', fontsize=20)\n",
|
|
|
|
|
"# 设置坐标轴标签和标题\n",
|
|
|
|
|
"plt.ylabel('Average number of lines of code', fontsize=20)\n",
|
|
|
|
|
"# 设置x轴刻度\n",
|
|
|
|
|
"plt.xticks(x, labels, fontsize=20)\n",
|
|
|
|
|
"# 设置y轴范围\n",
|
|
|
|
|
"plt.ylim(0, max(values) + 10)\n",
|
|
|
|
|
"# 添加网格\n",
|
|
|
|
|
"plt.grid(axis='y', linestyle='--', alpha=0.7)\n",
|
|
|
|
|
"\n",
|
|
|
|
|
"# 展示图形\n",
|
|
|
|
|
"plt.tight_layout()\n",
|
|
|
|
|
"plt.savefig('bar_chart.png', dpi=300)\n",
|
2025-03-17 16:48:24 +08:00
|
|
|
|
"plt.show()"
|
|
|
|
|
]
|
2025-03-17 16:40:01 +08:00
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"metadata": {
|
|
|
|
|
"kernelspec": {
|
|
|
|
|
"display_name": "lead",
|
|
|
|
|
"language": "python",
|
|
|
|
|
"name": "python3"
|
|
|
|
|
},
|
|
|
|
|
"language_info": {
|
|
|
|
|
"codemirror_mode": {
|
|
|
|
|
"name": "ipython",
|
|
|
|
|
"version": 3
|
|
|
|
|
},
|
|
|
|
|
"file_extension": ".py",
|
|
|
|
|
"mimetype": "text/x-python",
|
|
|
|
|
"name": "python",
|
|
|
|
|
"nbconvert_exporter": "python",
|
|
|
|
|
"pygments_lexer": "ipython3",
|
|
|
|
|
"version": "3.11.11"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"nbformat": 4,
|
|
|
|
|
"nbformat_minor": 2
|
|
|
|
|
}
|