活动介绍
file-type

iTunes 12.7.4.76版本发布,提供64位安装包

ZIP文件

下载需积分: 12 | 259.69MB | 更新于2025-08-15 | 130 浏览量 | 51 下载量 举报 收藏
download 立即下载
从给定的文件信息中,我们可以提取出以下几个知识点: ### 标题知识点: - **文件类型与格式**:标题中的 "iTunes64_v12.7.4.76.zip" 表明这是一个压缩包文件,具体是一个名为 "iTunes" 的软件程序的64位版本的安装文件。 - **版本信息**:文件名中的 "v12.7.4.76" 指明了该 iTunes 版本的具体版本号。根据版本号,我们可以了解到该文件是 iTunes 的一个特定发行版本。 - **文件压缩类型**:"zip" 是一种广泛使用的数据压缩和归档文件格式,它能够将多个文件及文件夹压缩成一个单独的压缩包,以便于传输和存储。 ### 描述知识点: - **描述重复**:描述部分完全重复标题信息,因此所含知识点与标题相同,未提供额外信息。 ### 标签知识点: - **iTunes 标签**:标签 "itunes" 代表该压缩包文件与苹果公司的数字媒体播放器软件 iTunes 有关。iTunes 是苹果公司开发的一套应用程序,主要用于管理和播放音乐与视频,同时也能管理iOS设备上的内容。 ### 压缩包子文件的文件名称列表知识点: - **可执行文件名**:"iTunes64Setup.exe" 是该压缩包解压后的主要文件名,属于可执行文件。它的存在意味着解压缩该zip文件后,用户将获得一个 iTunes 安装程序,通过运行这个可执行文件,用户可以安装 iTunes 应用到他们的计算机上。 - **64位系统兼容性**:通过文件名中的 "64" 可知,这个版本的 iTunes 是专为64位操作系统设计的。这说明,用户在安装时需要确保他们的计算机系统支持64位应用程序。 ### 综合知识点: - **iTunes 应用介绍**:iTunes 是一个多功能的媒体管理软件,它允许用户播放、组织和购买音乐、视频、电视节目、应用程序、电子书、Podcast 等。iTunes Store 是一个在线商店,用户可以在其中购买或免费下载这些数字媒体内容。 - **更新与维护**:文件名中的版本号 "12.7.4.76" 表示这是一个已经更新过的版本,表明在iTunes发展过程中的一个阶段。随着版本的更新,可能会修复一些先前版本中存在的bug,也可能增加了新的功能。 - **操作系统的兼容性**:文件为64位格式,说明它与操作系统的兼容性仅限于64位的Windows操作系统。用户在安装前需要确认自己的操作系统版本。 - **下载与安装流程**:对于想要安装iTunes的用户来说,首先需要下载 "iTunes64_v12.7.4.76.zip" 压缩包,然后使用解压软件(如WinRAR、7-Zip等)将其解压缩到本地计算机。解压后,用户会找到 "iTunes64Setup.exe" 文件,双击该文件开始安装程序,并按照安装向导的指示完成安装。 - **数据备份与隐私保护**:在安装新版本的iTunes之前,建议用户对现有的iTunes库进行数据备份,以防在安装过程中出现数据丢失的情况。同时,对于个人隐私数据要特别保护,在安装任何软件时都要注意隐私协议,确保不泄露个人信息。 - **系统资源占用**:安装iTunes可能会占用一定的系统资源,包括硬盘空间和内存,因此在安装前应确保计算机的资源能够满足iTunes的运行需求。 通过上述知识点的解析,我们能够清晰了解文件 "iTunes64_v12.7.4.76.zip" 所涉及的软件信息、版本信息、安装使用细节、以及数据管理和隐私保护的重要性。对于用户来说,了解这些知识点有助于他们在使用iTunes时能更好地管理和使用媒体资源。

相关推荐

filetype
filetype

import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap from matplotlib.ticker import MultipleLocator, FormatStrFormatter # 设置全局字体大小(影响所有文本元素) plt.rcParams.update({ 'font.size': 26, # 基础字体大小,包括ax.text 'axes.titlesize': 30, # 标题字体大小 'axes.labelsize': 26, # 坐标轴标签字体大小 'xtick.labelsize': 26, # X轴刻度标签字体大小 'ytick.labelsize': 26, # Y轴刻度标签字体大小 'legend.fontsize': 24, # 图例字体大小 'figure.titlesize': 32 # 图形标题字体大小 }) # 1. 准备数据 data = np.array([ [1.00, -1.27, -4.46, -2.07], [1.00, -1.59, -2.86, -4.76], [1.00, -1.56, -4.69, -3.13], [1.00, 0.61, 0.36, 0.35] ]) methods = ['GOOD-D', 'GraphDE', 'AAGOD', 'our'] noise_levels = ['clean', '10%', '20%', '30%'] # 2. 使用提供的蓝绿色渐变颜色映射 colors = ['#e7ffc9', '#c2ecd6', '#a4dee1', '#7ccbed', '#59bcf6', '#3aaeff'] cmap = LinearSegmentedColormap.from_list("custom_blue_green", colors, N=256) # 3. 根据数据范围调整值范围 abs_data = np.abs(data) vmin, vmax = 0, np.ceil(abs_data.max()) # 自动适应数据范围 # 4. 创建热力图 plt.figure(figsize=(12, 9)) # 进一步增大画布尺寸 ax = plt.gca() # 使用绝对值绘制热力图 heatmap = ax.imshow(abs_data, cmap=cmap, vmin=vmin, vmax=vmax, aspect='auto') # 5. 添加文本标签 for i in range(len(methods)): for j in range(len(noise_levels)): # 格式化显示(保留负号,使用两位小数) value_str = f"{data[i, j]:.2f}" # 显示两位小数 ax.text(j, i, value_str, ha='center', va='center', color='black', fontweight='bold') # 6. 设置坐标轴 ax.set_xticks(np.arange(len(noise_levels))) ax.set_yticks(np.arange(len(methods))) ax.set_xticklabels(noise_levels) ax.set_yticklabels(methods) # 添加标签 plt.xlabel('Perturbation', labelpad=15) plt.ylabel('Method', labelpad=15) # 7. 添加标题 plt.title('BZR', fontweight='bold', pad=25,y=-0.6) # 颜色条 cbar = plt.colorbar(heatmap, ax=ax, pad=0.12) cbar.set_label('Absolute Value') cbar.ax.tick_params() # 设置颜色条刻度间隔为1.0 tick_interval = 1.0 cbar.locator = MultipleLocator(tick_interval) cbar.formatter = FormatStrFormatter('%.1f') cbar.update_ticks() # 8. 添加(a)标签 ax.text(-0.4, -0.4, '(a)', fontweight='bold', transform=ax.transAxes) # 添加网格线 ax.set_xticks(np.arange(len(noise_levels)) - 0.5, minor=True) ax.set_yticks(np.arange(len(methods)) - 0.5, minor=True) ax.grid(which='minor', color='gray', linestyle='-', linewidth=0.5) ax.tick_params(which='minor', size=0) # 9. 美化布局并保存 plt.tight_layout() plt.savefig('large_font_heatmap.png', dpi=300, bbox_inches='tight') plt.show() 根据这个代码修改

filetype

% ADVISOR Data file: FC_SI102_emis.m % % Data source: Dill Murrell, JDM Associates, under contract to % Argonne National Laboratory. FTP Revision Project. % % Data confidence level: % % Notes: % This file loads the variables associated with a Dodge Caravan engine, % a 3.0 L, 6-cyl., 136 hp, 1991 model year. % Maximum Power 102 kW @ 4875 rpm % Peak Torque 217 Nm @ 4143 rpm % % WARNING: This data comes from transient testing on the FTP and is % only appropriate to model transient-operation engines. % % Created on: 06/23/98 % By: Tony Markel, National Renewable Energy Laboratory, [email protected] % % Revision history at end of file. % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FILE ID INFO %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fc_description='1991 Dodge Caravan 1.2L (93kW) SI Engine - transient data'; fc_version=2002; % version of ADVISOR for which the file was generated fc_proprietary=0; % 0=> non-proprietary, 1=> proprietary, do not distribute fc_validation=0; % 1=> no validation, 1=> data agrees with source data, % 2=> data matches source data and data collection methods have been verified fc_fuel_type='Gasoline'; fc_disp=1.2; % (L), engine displacement fc_emis=1; % boolean 0=no emis data; 1=emis data fc_cold=0; % boolean 0=no cold data; 1=cold data exists disp(['Data loaded: FC_SI93_emis.m - ',fc_description]); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % SPEED & TORQUE RANGES over which data is defined %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (rad/s), speed range of the engine fc_map_spd=[128.8 190.7 249 310.5 338.7 366.9 433.9 471.8 640.457]; % (N*m), torque range of the engine fc_map_trq=[27.1 40.6 54.2 67.7 81.3 94.8 108.4 122 135.5 149.1 162.6 176.2 ... 189.7 203.3 216.9]; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % FUEL USE AND EMISSIONS MAPS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (g/s), fuel use map indexed vertically by fc_map_spd and % horizontally by fc_map_trq fc_fuel_map_gpkWh = [ 436.14 421.94 407.74 393.54 393.54 393.54 393.54 393.54 393.54 393.54 393.54 393.54 393.54 393.54 393.54 400.86 386.66 372.46 358.26 344.07 329.87 315.67 301.47 301.47 301.47 301.47 301.47 301.47 301.47 301.47 363.32 363.32 352.92 347.72 342.52 332.13 326.93 321.73 311.33 306.13 300.93 288.46 288.46 288.46 288.46 384.94 384.94 384.94 368.08 351.22 337.93 333.63 329.33 323.58 321.79 320 319.91 319.83 401.06 401.06 395.25 395.25 395.25 370.95 346.65 325.11 319.32 313.54 311.03 314.14 317.25 328.48 339.71 412.22 412.22 405.56 405.56 405.56 373.82 342.08 312.28 305.02 297.75 298.49 306.49 314.5 337.04 359.59 423.38 423.38 406.85 406.85 406.85 394.57 382.3 371.68 369.71 367.74 370.48 375.2 379.91 391.39 402.87 420.29 437.71 592.04 592.04 554.46 516.87 460.66 442.04 423.41 413.32 403.23 410.21 423.18 436.14 488.45 488.45 488.45 731.92 731.92 572.15 539.11 506.07 477.45 472.51 467.57 468.93 470.29 476.89 483.5 483.5 483.5 483.5]; % (g/s), engine out HC emissions indexed vertically by fc_map_spd and % horizontally by fc_map_trq fc_hc_map_gpkWh = [ 6.12 5.92 5.72 5.52 5.52 5.52 5.52 5.52 5.52 5.52 5.52 5.52 5.52 5.52 5.52 5.68 5.48 5.27 5.07 4.87 4.67 4.47 4.27 4.27 4.27 4.27 4.27 4.27 4.27 4.27 3.76 3.76 3.76 3.76 3.76 3.76 3.76 3.76 3.76 3.76 3.76 3.44 3.44 3.44 3.44 4.07 4.07 4.07 4 3.93 3.83 3.78 3.73 3.63 3.585 3.54 3.5 3.46 4.4 4.4 4.23 4.23 4.23 4.035 3.84 3.63 3.56 3.49 3.41 3.405 3.4 3.46 3.52 4.24 4.24 4.39 4.39 4.39 4.07 3.75 3.43 3.335 3.24 3.19 3.23 3.27 3.425 3.58 4.07 4.07 3.53 3.53 3.53 3.645 3.76 3.8 3.795 3.79 3.76 3.76 3.76 3.82 3.88 4.06 4.24 3.86 3.86 2.11 0.36 1.07 1.64 2.21 2.885 3.56 4.26 4.445 4.63 4.63 4.63 4.63 1.66 1.66 2.13 2.36 2.59 3.06 3.29 3.52 3.83 4.14 4.45 4.76 4.76 4.76 4.76]; % (g/s), engine out CO emissions indexed vertically by fc_map_spd and % horizontally by fc_map_trq fc_co_map_gpkWh = [ 30.88 31.6 32.32 33.04 33.04 33.04 33.04 33.04 33.04 33.04 33.04 33.04 33.04 33.04 33.04 27.19 27.91 28.62 29.34 30.06 30.78 31.5 32.21 32.21 32.21 32.21 32.21 32.21 32.21 32.21 49.9 49.9 48.09 46.825 45.56 42.31 40.32 38.33 33.63 30.92 28.21 20.76 20.76 20.76 20.76 29.83 29.83 29.83 33.35 36.87 34.51 30.87 27.23 17.93 15.455 12.98 30.53 48.08 361.62 361.62 40.07 40.07 40.07 43.235 46.4 36.39 29.895 23.4 16.84 22.35 27.86 64.495 101.13 359.17 359.17 50.32 50.32 50.32 53.125 55.93 38.27 28.92 19.57 15.75 29.245 42.74 98.46 154.18 356.71 356.71 23.36 23.36 23.36 29.575 35.79 57.71 74.075 90.44 133.98 161.145 188.31 232.94 277.57 331.805 386.04 42.98 42.98 34.9 26.82 23.41 28.08 32.75 48.89 65.03 402.14 402.14 402.14 402.14 402.14 402.14 34.8 34.8 26.82 25.115 23.41 100.74 174.64 248.54 337.135 425.73 456.71 487.69 487.69 487.69 487.69]; % (g/s), engine out NOx emissions indexed vertically by fc_map_spd and % horizontally by fc_map_trq fc_nox_map_gpkWh = [ 16.82 16.85 16.88 16.91 16.91 16.91 16.91 16.91 16.91 16.91 16.91 16.91 16.91 16.91 16.91 18 18.08 18.15 18.23 18.3 18.38 18.45 18.53 18.53 18.53 18.53 18.53 18.53 18.53 18.53 10.66 10.66 16.54 18.71 20.88 23.69 24.325 24.96 24.7 23.8 22.9 18.71 18.71 18.71 18.71 21.61 21.61 21.61 24.37 27.13 29.08 29.11 29.14 27.33 25.485 23.64 19.715 15.79 5.88 5.88 22.05 22.05 22.05 24.275 26.5 27.85 27.67 27.49 25.44 23.565 21.69 17.86 14.03 4.56 4.56 22.48 22.48 22.48 24.17 25.86 26.61 26.23 25.85 23.55 21.645 19.74 16.01 12.28 3.25 3.25 26.75 26.75 26.75 26.915 27.08 27.33 27.44 27.55 27.73 17.27 6.81 4.845 2.88 2.97 3.06 27.63 27.63 27.255 26.88 26.13 25.745 25.36 24.82 24.28 6.72 4.84 2.96 3.02 3.02 3.02 17.05 17.05 16.09 15.42 14.75 13.03 11.975 10.92 9.22 7.52 5.485 3.45 3.45 3.45 3.45]; % (g/s), engine out PM emissions indexed vertically by fc_map_spd and % horizontally by fc_map_trq fc_pm_map_gpkWh=zeros(size(fc_fuel_map_gpkWh)); % (g/s), engine out O2 indexed vertically by fc_map_spd and % horizontally by fc_map_trq fc_o2_map=zeros(size(fc_fuel_map_gpkWh)); % convert g/kWh to g/s [T,w]=meshgrid(fc_map_trq, fc_map_spd); fc_map_kW=T.*w/1000; fc_fuel_map=fc_fuel_map_gpkWh.*fc_map_kW/3600; fc_co_map=fc_co_map_gpkWh.*fc_map_kW/3600; fc_nox_map=fc_nox_map_gpkWh.*fc_map_kW/3600; fc_hc_map=fc_hc_map_gpkWh.*fc_map_kW/3600; fc_pm_map=fc_pm_map_gpkWh.*fc_map_kW/3600; %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Cold Engine Maps %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fc_cold_tmp=20; %deg C fc_fuel_map_cold=zeros(size(fc_fuel_map)); fc_hc_map_cold=zeros(size(fc_fuel_map)); fc_co_map_cold=zeros(size(fc_fuel_map)); fc_nox_map_cold=zeros(size(fc_fuel_map)); fc_pm_map_cold=zeros(size(fc_fuel_map)); %Process Cold Maps to generate Correction Factor Maps names={'fc_fuel_map','fc_hc_map','fc_co_map','fc_nox_map','fc_pm_map'}; for i=1:length(names) %cold to hot raio, e.g. fc_fuel_map_c2h = fc_fuel_map_cold ./ fc_fuel_map eval([names{i},'_c2h=',names{i},'_cold./(',names{i},'+eps);']) end %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % LIMITS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (N*m), max torque curve of the engine indexed by fc_map_spd fc_max_trq=[67.8 122.0 167.1 180 180 180 156.9 149.3 149.3]; % (N*m), closed throttle torque of the engine (max torque that can be absorbed) % indexed by fc_map_spd -- correlation from JDMA fc_ct_trq=4.448/3.281*(-fc_disp)*61.02/24 * ... (9*(fc_map_spd/max(fc_map_spd)).^2 + 14 * (fc_map_spd/max(fc_map_spd))); %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % DEFAULT SCALING %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % (--), used to scale fc_map_spd to simulate a faster or slower running engine fc_spd_scale=1.0; % (--), used to scale fc_map_trq to simulate a higher or lower torque engine fc_trq_scale=1.0; fc_pwr_scale=fc_spd_scale*fc_trq_scale; % -- scale fc power % user definable mass scaling function fc_mass_scale_fun=inline('(x(1)*fc_trq_scale+x(2))*(x(3)*fc_spd_scale+x(4))*(fc_base_mass+fc_acc_mass)+fc_fuel_mass','x','fc_spd_scale','fc_trq_scale','fc_base_mass','fc_acc_mass','fc_fuel_mass'); fc_mass_scale_coef=[1 0 1 0]; % coefficients of mass scaling function %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % STUFF THAT SCALES WITH TRQ & SPD SCALES (MASS AND INERTIA) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fc_inertia=0.1*fc_pwr_scale; % (kg*m^2), rotational inertia of the engine (unknown) fc_max_pwr=(max(fc_map_spd.*fc_max_trq)/1000)*fc_pwr_scale; % kW peak engine power fc_base_mass=1.8*fc_max_pwr; % (kg), mass of the engine block and head (base engine) % mass penalty of 1.8 kg/kW from 1994 OTA report, Table 3 fc_acc_mass=0.8*fc_max_pwr; % kg engine accy's, electrics, cntrl's - assumes mass penalty of 0.8 kg/kW (from OTA report) fc_fuel_mass=0.6*fc_max_pwr; % kg mass of fuel and fuel tank (from OTA report) fc_mass=fc_base_mass+fc_acc_mass+fc_fuel_mass; % kg total engine/fuel system mass fc_ext_sarea=0.3*(fc_max_pwr/100)^0.67; % m^2 exterior surface area of engine %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % OTHER DATA %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% fc_fuel_den=0.749*1000; % (g/l), density of the fuel fc_fuel_lhv=42.6*1000; % (J/g), lower heating value of the fuel %the following was added for the new thermal modeling of the engine 12/17/98 ss and sb fc_tstat=96; % C engine coolant thermostat set temperature (typically 95 +/- 5 C) fc_cp=500; % J/kgK ave cp of engine (iron=500, Al or Mg = 1000) fc_h_cp=500; % J/kgK ave cp of hood & engine compartment (iron=500, Al or Mg = 1000) fc_hood_sarea=1.5; % m^2 surface area of hood/eng compt. fc_emisv=0.8; % emissivity of engine ext surface/hood int surface fc_hood_emisv=0.9; % emissivity hood ext fc_h_air_flow=0.0; % kg/s heater air flow rate (140 cfm=0.07) fc_cl2h_eff=0.7; % -- ave cabin heater HX eff (based on air side) fc_c2i_th_cond=500; % W/K conductance btwn engine cyl & int fc_i2x_th_cond=500; % W/K conductance btwn engine int & ext fc_h2x_th_cond=10; % W/K conductance btwn engine & engine compartment % calc "predicted" exh gas flow rate and engine-out (EO) temp fc_ex_pwr_frac=[0.40 0.30]; % -- frac of waste heat that goes to exhaust as func of engine speed fc_exflow_map=fc_fuel_map*(1+14.5); % g/s ex gas flow map: for SI engines, exflow=(fuel use)*[1 + (stoic A/F ratio)] fc_waste_pwr_map=fc_fuel_map*fc_fuel_lhv - T.*w; % W tot FC waste heat = (fuel pwr) - (mech out pwr) spd=fc_map_spd; fc_ex_pwr_map=zeros(size(fc_waste_pwr_map)); % W initialize size of ex pwr map for i=1:length(spd) fc_ex_pwr_map(i,:)=fc_waste_pwr_map(i,:)*interp1([min(spd) max(spd)],fc_ex_pwr_frac,spd(i)); % W trq-spd map of waste heat to exh end fc_extmp_map=fc_ex_pwr_map./(fc_exflow_map*1089/1000) + 20; % W EO ex gas temp = Q/(MF*cp) + Tamb (assumes engine tested ~20 C) %the following variable is not used directly in modelling and should always be equal to one %it's used for initialization purposes fc_eff_scale=1; % clean up workspace clear T w fc_waste_pwr_map fc_ex_pwr_map spd fc_map_kW %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % REVISION HISTORY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % 06/23/98 (tm): created from a_dodg3l.m % 07/06/98 (MC): corrected max power calc. in mass calc. % renamed fc_init_coolant_temp to fc_coolant_init_temp % 07/17/98 (tm): file renamed FC_SI102.M % 07/16/98 (SS): added variable fc_fuel_type under file id section % 07/17/98 (tm): fc_fuel_den changed from 0.737 to 0.749 and fc_fuel_lhv changed from 42.7 to 42.6 % 07/30/98 (sb): added A/F ratio and split of waste heat variables % 10/9/98 (vh,sb,ss): added pm and removed init conditions and added new exhaust variables % 10/13/98 (MC): added variable fc_disp under file id section % fc_ct_trq computed according to correlation from JDMA, 5/98 % 10/13/98 (MC): updated equation for fc_ct_trq (convert from ft-lb to Nm) % 12/17/98 ss,sb: added 12 new variables for engine thermal modelling. % 01/25/99 (SB): modified thermal section to work with new BD, revised FC mass calc's % 2/4/99: ss,sb changed fc_ext_sarea=0.3*(fc_max_pwr/100)^0.67 it was 0.3*(fc_max_pwr/100) % it now takes into account that surface area increases based on mass to the 2/3 power % 3/15/99:ss updated *_version to 2.1 from 2.0 % 7/9/99:tm cosmetic changes % 11/03/99:ss updated version from 2.2 to 2.21 % 01/31/01: vhj added fc_cold=0, added cold map variables, added +eps to avoid dividing by zero % 02/26/01: vhj added variable definition of fc_o2_map (used in NOx absorber emis.) % 03/15/01: vhj,ss; fixed fc_o2_map to use fc_fuel_map_gpkwh instead of fc_fuel_map % 7/30/01:tm added user definable mass scaling function mass=f(fc_spd_scale,fc_trq_scale,fc_base_mass,fc_acc_mass,fc_fuel_mass) 参数名称 参数值 额定功率/kW 55 峰值功率/kW 110 额定转矩/(N·m) 110 峰值转矩/(N·m) 215 额定转速/(r/min) 5000 最高转速/(r/min) 9500

filetype

data = np.array([ [1.00, -3.35, -3.35, -5.20], [1.00, -2.00, -6.00, -4.00], [1.00, -1.75, -2.63, -3.51], [1.00, 1.67, 2.5, 1.33] ])data = np.array([ [1.00, -1.27, -4.46, -2.07], [1.00, -1.59, -2.86, -4.76], [1.00, -1.56, -4.69, -3.13], [1.00, 0.61, 0.36, 0.35] ])data = np.array([ [1.00, -2.20, -1.57, -4.09], [1.00, -2.00, -4.00, -5.33], [1.00, -1.33, -2.67, -5.33], [1.00, 0.09, 0.48, -0.17] ])我要做三张一样的图,麻烦把他们的图例什么的设置为一样的,import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap from matplotlib.ticker import MultipleLocator, FormatStrFormatter 设置全局字体大小(影响所有文本元素) plt.rcParams.update({ ‘font.size’: 26, # 基础字体大小,包括ax.text ‘axes.titlesize’: 30, # 标题字体大小 ‘axes.labelsize’: 26, # 坐标轴标签字体大小 ‘xtick.labelsize’: 26, # X轴刻度标签字体大小 ‘ytick.labelsize’: 26, # Y轴刻度标签字体大小 ‘legend.fontsize’: 24, # 图例字体大小 ‘figure.titlesize’: 32 # 图形标题字体大小 }) 1. 准备数据 data = np.array([ [1.00, -1.27, -4.46, -2.07], [1.00, -1.59, -2.86, -4.76], [1.00, -1.56, -4.69, -3.13], [1.00, 0.61, 0.36, 0.35] ]) methods = [‘GOOD-D’, ‘GraphDE’, ‘AAGOD’, ‘our’] noise_levels = [‘clean’, ‘10%’, ‘20%’, ‘30%’] 2. 使用提供的蓝绿色渐变颜色映射 colors = [‘#e7ffc9’, ‘#c2ecd6’, ‘#a4dee1’, ‘#7ccbed’, ‘#59bcf6’, ‘#3aaeff’] cmap = LinearSegmentedColormap.from_list(“custom_blue_green”, colors, N=256) 3. 根据数据范围调整值范围 abs_data = np.abs(data) vmin, vmax = 0, np.ceil(abs_data.max()) # 自动适应数据范围 4. 创建热力图 plt.figure(figsize=(12, 9)) # 进一步增大画布尺寸 ax = plt.gca() 使用绝对值绘制热力图 heatmap = ax.imshow(abs_data, cmap=cmap, vmin=vmin, vmax=vmax, aspect=‘auto’) 5. 添加文本标签 for i in range(len(methods)): for j in range(len(noise_levels)): # 格式化显示(保留负号,使用两位小数) value_str = f"{data[i, j]:.2f}" # 显示两位小数 ax.text(j, i, value_str, ha=‘center’, va=‘center’, color=‘black’, fontweight=‘bold’) 6. 设置坐标轴 ax.set_xticks(np.arange(len(noise_levels))) ax.set_yticks(np.arange(len(methods))) ax.set_xticklabels(noise_levels) ax.set_yticklabels(methods) 添加标签 plt.xlabel(‘Perturbation’, labelpad=15) plt.ylabel(‘Method’, labelpad=15) 7. 添加标题 plt.title(‘BZR’, fontweight=‘bold’, pad=25,y=-0.6) 颜色条 cbar = plt.colorbar(heatmap, ax=ax, pad=0.12) cbar.set_label(‘Absolute Value’) cbar.ax.tick_params() 设置颜色条刻度间隔为1.0 tick_interval = 1.0 cbar.locator = MultipleLocator(tick_interval) cbar.formatter = FormatStrFormatter(‘%.1f’) cbar.update_ticks() 8. 添加(a)标签 ax.text(-0.4, -0.4, ‘(a)’, fontweight=‘bold’, transform=ax.transAxes) 添加网格线 ax.set_xticks(np.arange(len(noise_levels)) - 0.5, minor=True) ax.set_yticks(np.arange(len(methods)) - 0.5, minor=True) ax.grid(which=‘minor’, color=‘gray’, linestyle=‘-’, linewidth=0.5) ax.tick_params(which=‘minor’, size=0) 9. 美化布局并保存 plt.tight_layout() plt.savefig(‘large_font_heatmap.png’, dpi=300, bbox_inches=‘tight’) plt.show() 在这个代码的基础上改,我要分成三个python文件,不要整成一个

LSY_csdn_
  • 粉丝: 85
上传资源 快速赚钱