紫外测熔融实验结果温度和abs作折线图和求一阶导最大值

import numpy as np
import pandas as pd
from pyecharts.charts import Line
from pyecharts import options as opts
from matplotlib import pyplot as plt
import xlrd
# 读取 csv 文件
data = pd.read_excel('F:/LJX/lc8.xls')

# 假设 csv 文件中有两列数据:'x' 和 'y'
x_values = data['Temperature']
y_values = data['Abs']
plt.rcParams['font.sans-serif'] = ['SimHei']  # 用来正常显示中文标签
plt.rcParams['axes.unicode_minus'] = False  # 用来正常显示负号
plt.plot(x_values, y_values)
plt.xlabel("Temperature",size=14)
plt.ylabel("Abs",size=14)
plt.title("R8折线图",fontdict=None,loc="left",pad=None)
dy_dx = abs(np.diff(y_values) / np.diff(x_values))
print(type(dy_dx))
dy_dx_list = dy_dx.tolist()
print(type(dy_dx_list))
max_dao = dy_dx_list.index(max(dy_dx_list))
print(max_dao)
textprint = '导数最大值:' + str(dy_dx_list[max_dao]) +'。温度为:'+str(x_values[max_dao])
plt.annotate(textprint, xy=(x_values[max_dao],y_values[max_dao]), xytext=(x_values[max_dao],y_values[max_dao]-0.010), arrowprops=dict(arrowstyle="->"))
plt.show()

# # 创建折线图对象
# line_chart = Line()
#
# # 添加数据
# line_chart.add_xaxis(x_values.tolist())
# line_chart.add_yaxis('折线', y_values.tolist())
#
# # 设置全局配置
# line_chart.set_global_opts(
#     title_opts=opts.TitleOpts(title="black折线图"),
#     xaxis_opts=opts.AxisOpts(name='Temperature'),
#     yaxis_opts=opts.AxisOpts(name='Abs')
# )
#
# # 渲染生成 HTML 文件
# line_chart.render('black.html')

 数据如下:绘图也如下:

L8-1%MeOH  85.00-10.00 Ramp 2
TemperatureAbs
84.970001220.289775699
84.730003360.289772898
84.519996640.289753914
84.309997560.289791703
84.120002750.289888173
83.919998170.289871931
83.720001220.289892614
83.519996640.289982051
83.319999690.289918751
83.120002750.289979219
82.919998170.290063828
82.720001220.290138334
82.519996640.290162265
82.319999690.290249765
82.120002750.290316135
81.919998170.290309072
81.720001220.290509135
81.519996640.290560335
81.319999690.290631235
81.120002750.290638924
80.919998170.290659249
80.769996640.290761203
80.519996640.290816337
80.319999690.290902913
80.120002750.290874779
79.919998170.291025519
79.720001220.291229129
79.540000920.291381031
79.319999690.291313767
79.120002750.291418821
78.919998170.291318715
78.769996640.291283578
78.470001220.291214496
78.319999690.291229159
78.120002750.291251034
77.910003660.291236848
77.720001220.291296125
77.519996640.291178763
77.319999690.291171879
77.120002750.291263372
76.919998170.291264534
76.730003360.291292548
76.519996640.291220725
76.319999690.291292846
76.139999390.291277051
75.919998170.291291118
75.720001220.29129523
75.540000920.291274279
75.370002750.29128772
75.120002750.291312903
74.940002440.291347712
74.769996640.29123205
74.519996640.291254818
74.319999690.291262716
74.120002750.291325003
73.919998170.291266918
73.720001220.291336954
73.519996640.29133147
73.319999690.291346252
73.169998170.291326523
72.919998170.291337758
72.720001220.291334778
72.519996640.291236609
72.319999690.291340023
72.120002750.291321546
71.919998170.291348487
71.769996640.291358143
71.519996640.291290313
71.370002750.291313708
71.120002750.291264296
70.919998170.291350961
70.720001220.29136616
70.519996640.291316688
70.319999690.29128924
70.120002750.291255236
69.919998170.291306883
69.720001220.291192532
69.519996640.291173846
69.319999690.291179359
69.120002750.291233063
68.970001220.291287482
68.720001220.291226387
68.519996640.291262358
68.319999690.29126206
68.169998170.291240603
67.919998170.291168541
67.769996640.291122228
67.540000920.291165233
67.370002750.291113824
67.120002750.291047186
66.919998170.29107511
66.720001220.291123986
66.519996640.291230887
66.319999690.291136354
66.120002750.291114628
65.919998170.291155487
65.720001220.291145295
65.519996640.291066349
65.370002750.291025281
65.120002750.290942103
64.919998170.291067541
64.720001220.291023403
64.519996640.291036457
64.319999690.290963501
64.120002750.290956467
63.919998170.290989757
63.720001220.290984869
63.520000460.290999979
63.340000150.290966332
63.119998930.290926278
62.919998170.29093352
62.720001220.290865094
62.520000460.290893644
62.319999690.290822715
62.169998170.290895939
61.919998170.290778458
61.740001680.290800095
61.520000460.290780872
61.319999690.29076016
61.119998930.290794849
60.919998170.290686935
60.720001220.290691435
60.520000460.290566146
60.369998930.290671319
60.119998930.290581554
59.919998170.29061988
59.720001220.290570319
59.520000460.290494889
59.319999690.29041636
59.119998930.290560424
58.919998170.290550739
58.720001220.29045558
58.540000920.290323019
58.319999690.290423036
58.119998930.290393472
57.939998630.290405154
57.720001220.290409893
57.520000460.290291041
57.319999690.2904208
57.119998930.290308923
56.919998170.290231735
56.740001680.290227145
56.569999690.290249825
56.330001830.290192008
56.169998170.29016766
55.919998170.290216953
55.729999540.290187359
55.520000460.290102571
55.319999690.290104598
55.150001530.290063471
54.919998170.289918304
54.720001220.289920121
54.520000460.289979011
54.369998930.289980888
54.119998930.289954096
53.919998170.28988874
53.720001220.28974846
53.520000460.289820552
53.319999690.289742619
53.119998930.289817274
52.939998630.28978923
52.720001220.289813191
52.520000460.289613396
52.319999690.289732784
52.169998170.289775223
51.919998170.289646894
51.770000460.289596826
51.520000460.28956914
51.319999690.289584905
51.119998930.289490074
50.919998170.289438248
50.720001220.289477974
50.520000460.289325744
50.319999690.289276809
50.119998930.289331555
49.919998170.289295018
49.720001220.289296627
49.520000460.28915143
49.319999690.289193183
49.119998930.289128959
48.919998170.289065033
48.720001220.289002121
48.520000460.289101541
48.319999690.289002627
48.119998930.28890878
47.919998170.289007485
47.720001220.288935453
47.520000460.288857132
47.270000460.288808048
47.119998930.288675219
46.919998170.288865328
46.720001220.288711906
46.520000460.288633972
46.319999690.28860575
46.150001530.28852132
45.919998170.288538575
45.669998170.288431108
45.529998780.288401216
45.319999690.288309574
45.119998930.288317353
44.919998170.288279504
44.720001220.288180709
44.549999240.288055897
44.319999690.288086653
44.119998930.28794685
43.919998170.287966996
43.720001220.287874937
43.520000460.287852168
43.369998930.287828118
43.119998930.287792981
42.919998170.287585467
42.729999540.287576437
42.520000460.287577331
42.319999690.287411392
42.119998930.28738001
41.919998170.287313342
41.720001220.287242383
41.540000920.287164331
41.319999690.287036091
41.119998930.28703624
40.919998170.286783516
40.770000460.286710471
40.520000460.286570787
40.319999690.28652817
40.119998930.286334992
39.919998170.286312372
39.720001220.286121011
39.529998780.286084503
39.319999690.285883009
39.119998930.285734564
38.919998170.285749257
38.720001220.285529494
38.569999690.28531602
38.319999690.285131425
38.119998930.284954608
37.919998170.284751147
37.720001220.284648031
37.529998780.284379751
37.319999690.284210891
37.119998930.284112632
36.919998170.283857942
36.720001220.283601731
36.540000920.283411682
36.319999690.283199817
36.119998930.282873571
35.869998930.282679051
35.720001220.282400459
35.520000460.282109261
35.319999690.281829298
35.119998930.281520426
34.919998170.281252295
34.720001220.280893564
34.529998780.280569941
34.319999690.280233234
34.119998930.27978155
33.919998170.27933985
33.720001220.278997123
33.520000460.27866739
33.369998930.278179318
33.119998930.277876556
32.919998170.277383536
32.720001220.277005196
32.520000460.276473284
32.319999690.276106566
32.119998930.275604546
31.920000080.275117368
31.719999310.274595618
31.520000460.274127632
31.340000150.273532987
31.120000840.272938997
30.920000080.2725676
30.719999310.271897912
30.520000460.271363765
30.319999690.270751566
30.120000840.270129323
29.920000080.269645751
29.719999310.269051194
29.520000460.268456399
29.319999690.267962068
29.120000840.267270446
28.920000080.266738862
28.719999310.266006351
28.520000460.265481979
28.319999690.264831275
28.120000840.264232904
27.920000080.263675451
27.719999310.26303494
27.520000460.262438268
27.319999690.261804164
27.120000840.261120498
26.920000080.260569006
26.719999310.260044336
26.520000460.259405434
26.319999690.258819312
26.120000840.258242279
25.920000080.257679939
25.719999310.2570979
25.520000460.256487757
25.370000840.25590229
25.120000840.25532794
24.920000080.254778177
24.719999310.25410524
24.520000460.253657639
24.319999690.253173351
24.120000840.252608061
23.940000530.252033025
23.719999310.251483679
23.520000460.250937939
23.340000150.250526547
23.120000840.249979004
22.920000080.249466568
22.739999770.249063507
22.520000460.248660624
22.319999690.248175144
22.120000840.247794017
21.920000080.247374252
21.750.246980786
21.569999690.246683523
21.319999690.24631466
21.120000840.245911688
20.920000080.245679408
20.719999310.245338857
20.520000460.244930774
20.319999690.244685143
20.139999390.244306162
19.920000080.244005546
19.770000460.243800476
19.569999690.243406251
19.319999690.243300855
19.120000840.242946893
18.920000080.242748469
18.719999310.24243106
18.520000460.242171213
18.319999690.242056981
18.170000080.241781354
17.920000080.241629571
17.719999310.241456255
17.520000460.241409719
17.319999690.241192609
17.120000840.241008878
16.920000080.241027594
16.719999310.240784839
16.549999240.240591735
16.319999690.240471795
16.120000840.240396723
15.920000080.240146056
15.720000270.239994839
15.520000460.239879593
15.319999690.239714086
15.170000080.239571378
14.920000080.239323914
14.720000270.239161804
14.539999960.239066809
14.319999690.238902196
14.119999890.238841713
13.920000080.238734812
13.720000270.238687903
13.520000460.238492489
13.319999690.238415703
13.119999890.238240093
12.949999810.238196448
12.720000270.238090068
12.520000460.237997413
12.319999690.237959802
12.119999890.237707168
11.920000080.237703905
11.720000270.23764579
11.520000460.237563506
11.319999690.237518922
11.119999890.237495348
10.920000080.237405315
10.720000270.23731786
10.520000460.237466857
10.319999690.237433851
10.170000080.237485856
9.9200000760.237137243

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:/a/802759.html

如若内容造成侵权/违法违规/事实不符,请联系我们进行投诉反馈qq邮箱809451989@qq.com,一经查实,立即删除!

相关文章

[transformer] Attention is all you need

1、目的 提出一种新的网络结构,不用CNN或者RNN,只基于self-attention 2、方法 * Norm: Layer Normalization 1)Encoder -> -> self-attention的k、v、q来自上一个encoder层 2)Decoder -> 由于每个位置i的预测只能参考i…

跨境电商与TikTok达人带货:未来合作模式与市场机遇

随着全球社交媒体技术的不断进步和消费者行为的持续变化,跨境电商与TikTok达人合作的模式正展现出前所未有的多元化和专业化趋势。这种合作不仅推动了品牌的国际化进程,也为消费者带来了更加丰富和个性化的购物体验。本文Nox聚星将和大家探讨未来跨境电商…

php反序列化--1--PHP序列化

目录 一、什么是php序列化? 二、在php中怎么进行序列化? 三、不同数据类型的序列化后的表达方式 1、空-NULL 2、整形 3、浮点型 4、boolean型 5、字符型 6、数组 7、对象序列化-公有修饰符 8、对象序列化-私有修饰符 9、对象序列化-保护修饰…

C++ 回溯算法

什么时候不需要startIndex? 全排列:1在[1,2]中已经使用过了,但是在[2,1]中还要在使用一次1,所以处理排列问题就不用使用startIndex了;电话号码的字母组合:如果是多个集合取组合,各个集合之间相互不影响&a…

景区导航导览系统:基于AR技术+VR技术的功能效益全面解析

在数字化时代背景下,游客对旅游体验的期望不断提升。游客们更倾向于使用手机作为旅行的贴身助手,不仅因为它能提供实时、精准的导航服务,更在于其融合AR(增强现实)、VR(虚拟现实)等前沿技术&…

汽车免拆诊断案例 | 卡罗拉急加速抖动故障排除

车型信息 2017年改款卡罗拉,排量1.2T,行驶里程48800公里。 故障现象 车辆不管在什么状态下,只要是平缓加速,都不会有抖动。车辆静止时,急加速时,也不会有抖动。但是车速达40公里/小时以上,急加…

SQL注入问题

一、什么是sql注入 public class TestSql {public static void main(String[] args) {Scanner inScanner new Scanner(System.in);System.out.println("请输入用户名");String username inScanner.nextLine();System.out.println("请输入密码");String …

python-区间内的真素数(赛氪OJ)

[题目描述] 找出正整数 M 和 N 之间(N 不小于 M)的所有真素数。真素数的定义:如果一个正整数 P 为素数,且其反序也为素数,那么 P 就为真素数。 例如,11,13 均为真素数,因为 11 的反序…

JuiceFS缓存特性

缓存 对于一个由对象存储和数据库组合驱动的文件系统,缓存是本地客户端与远端服务之间高效交互的重要纽带。读写的数据可以提前或者异步载入缓存,再由客户端在后台与远端服务交互执行异步上传或预取数据。相比直接与远端服务交互,采用缓存技…

vue3配置代理

vite.config.js中的内容: 在这里配置访问后台的地址 import { defineConfig } from vite import vue from vitejs/plugin-vueexport default defineConfig({plugins: [vue()],server: {open: false,port: 3000,proxy: {/api: {target: http://127.0.0.1:9001, // 后…

【论文阅读】MCTformer+:弱监督语义分割的多类令牌转换器

【论文阅读】MCTformer:弱监督语义分割的多类令牌转换器 文章目录 【论文阅读】MCTformer:弱监督语义分割的多类令牌转换器一、介绍1.1 WSSS背景1.2 WSSS策略 二、联系工作2.1 弱监督语义分割2.2 transformers的可视化应用 三、MULTI-CLASS TOKEN TRANSFORMER3.1 Multi-class t…

【Apache POI】Java解析Excel文件并处理合并单元格-粘贴即用

同为牛马,点个赞吧! 一、Excel文件样例 二、工具类源码 import org.apache.poi.ss.usermodel.*; import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.xssf.usermodel.XSSFWorkbookFactory; import org.springframework.web.multip…

【Linux】进程信号 --- 信号产生

👦个人主页:Weraphael ✍🏻作者简介:目前正在学习c和算法 ✈️专栏:Linux 🐋 希望大家多多支持,咱一起进步!😁 如果文章有啥瑕疵,希望大佬指点一二 如果文章对…

【Android】活动的生命周期与启动模式

【Android】活动的生命周期与启动模式 活动的生命周期 返回栈 返回栈(Back Stack)是Android操作系统中用于管理用户在应用中导航历史的一种数据结构。它允许用户通过按下硬件返回键或调用系统返回功能来回到之前的操作步骤。以下是返回栈的一些关键特…

R与机器学习系列|15.可解释的机器学习算法(Interpretable Machine Learning)(中)

在上次推文中我们介绍了几种可解释机器学习算法的常见方法,包括置换特征重要性、偏依赖图和个体条件期望及其实现。本次我们将继续介绍其他的用来解释机器学习算法的方法。 1.特征交互(Feature interactions) 1.1介绍 在机器学习中&#xff0…

SpringCache介绍

SpringCache是Spring提供的缓存框架。提供了基于注解的缓存功能。 SpringCache提供了一层抽象,底层可以切换不同的缓存实现(只需要导入不同的Jar包即可),如EHCache,Caffeine,Redis。 2个重要依赖已经导入&a…

肿瘤微生态研究利器——5R 16S rDNA测序

肿瘤微生物组(Tumor Microbiome)是肿瘤微环境中不可或缺的成员,肿瘤内微生物群通过多种机制影响肿瘤发展,在不同类型的肿瘤中,肿瘤内微生物群的组成和丰度具有高度异质性。由于它们的低生物量和其他障碍,全…

Web常见漏洞之po解

暴力破解 概述应用场景实验工具实训准备实训开始四种模式 验证码绕过前端验证码验证码有存活周期 概述 暴力破解是Web漏洞里常见的一种渗透方式,攻击者会试图通过尝试各种可能的用户名和密码组合来猜测密码或密钥,直到猜对为止123。攻击者会经常使用自动…

使用base64通用文件上传

编写一个上传文件的组件 tuku,点击图片上传后使用FileReader异步读取文件的内容&#xff0c;读取完成后获得文件名和base64码&#xff0c;调用后端uploadApi,传入姓名和base64文件信息&#xff0c;后端存入nginx中&#xff0c;用于访问 tuku.ts组件代码&#xff1a; <templa…

win10删除鼠标右键选项

鼠标右键菜单时&#xff0c;发现里面的选项特别多&#xff0c;找一下属性&#xff0c;半天找不到。删除一些不常用的选项&#xff0c;让右键菜单变得干净整洁。 1、按下键盘上的“winR”组合按键&#xff0c;调出“运行”对话框&#xff0c;输入“regedit”命令&#xff0c;点击…