Write python code for a ternary plot with color coding for this data with geochemical analysis after the code
 
Weight percent Group : 2020\_12\_18\_noc Sample : 2020\_12\_18\_noc\_0004\_QNT Page 1 
 
 No. Na2O MgO Al2O3 SiO2 CaO TiO2 MnO FeO K2O Total Comment 
1 4.755 9.608 0.323 53.645 15.962 0.115 0.220 14.218 0.018 98.864 SP1\_4\_m3\_p7 
2 4.728 9.835 0.308 53.759 15.794 0.125 0.173 14.148 0.000 98.870 SP1\_4\_m4\_p5 
3 5.271 9.062 0.183 53.556 14.914 0.140 0.161 15.265 0.000 98.552 SP1\_4\_m4\_p6 
4 6.703 7.392 0.357 53.430 12.310 0.153 0.182 17.751 0.000 98.278 SP1\_4\_m5\_p1 
5 4.758 9.749 0.321 53.880 15.904 0.140 0.183 14.285 0.004 99.224 SP1\_4\_m5\_p2 
6 4.557 9.884 0.308 53.566 16.096 0.116 0.199 13.287 0.000 98.013 SP1\_4\_m5A\_p5 
7 5.078 9.425 0.313 53.680 15.376 0.136 0.242 14.429 0.000 98.679 SP1\_4\_m5A\_p6 
8 4.701 9.790 0.310 53.642 16.063 0.133 0.256 13.687 0.004 98.586 SP1\_4\_m6\_p2 
9 5.390 8.886 0.324 53.615 14.488 0.151 0.196 15.553 0.008 98.611 SP1\_4\_m6\_p3 
10 5.227 9.076 0.306 53.295 14.998 0.104 0.162 15.177 0.000 98.345 SP1\_4\_m7\_p9 
11 5.147 9.146 0.292 54.142 14.868 0.128 0.192 15.143 0.002 99.060 SP2\_20\_m1\_p1 
12 4.716 9.656 0.312 53.978 15.855 0.107 0.230 13.842 0.000 98.696 SP2\_20\_m2\_p3 
13 4.828 9.566 0.277 53.967 15.839 0.126 0.188 13.617 0.004 98.412 SP2\_20\_m2A\_p7 
14 4.661 9.756 0.363 53.613 15.783 0.137 0.255 13.796 0.000 98.364 SP2\_20\_m3\_p4 
15 5.197 9.151 0.346 53.747 15.118 0.128 0.216 14.942 0.016 98.861 SP2\_20\_m4\_p4 
16 4.747 9.693 0.253 53.534 16.001 0.071 0.189 13.456 0.010 97.954 SP2\_20\_m5\_p4 
17 4.691 9.772 0.266 53.774 15.940 0.112 0.203 14.082 0.000 98.840 SP2\_20\_m6\_p2 
18 5.143 9.055 0.308 53.663 14.864 0.130 0.180 15.447 0.000 98.790 SP2\_20\_m7\_p6 
19 5.502 8.821 0.321 53.579 14.098 0.118 0.163 15.651 0.005 98.258 SP2\_20\_m7\_p7 
20 5.105 9.552 0.347 53.894 15.250 0.076 0.143 14.552 0.005 98.924 SP2\_20\_m9A\_p4 
21 5.591 8.562 0.292 53.042 13.818 0.121 0.158 15.547 0.000 97.131 SP2\_20\_m9A\_p5 
22 4.919 9.485 0.332 53.710 15.830 0.136 0.240 14.490 0.007 99.149 SP2\_20\_m10\_p6 
23 4.762 9.572 0.311 54.081 15.562 0.096 0.223 14.139 0.000 98.746 SP2\_20\_m11\_p4 
24 4.602 9.702 0.251 53.897 15.732 0.127 0.244 14.131 0.005 98.691 SP2\_20\_m11\_p5 
25 5.443 8.919 0.337 53.876 14.800 0.141 0.216 14.926 0.000 98.658 SP2\_20\_m12\_p3 
 
Minimum 4.557 7.392 0.183 53.042 12.310 0.071 0.143 13.287 0.000 97.131 
Maximum 6.703 9.884 0.363 54.142 16.096 0.153 0.256 17.751 0.018 99.224 
Average 5.049 9.325 0.306 53.703 15.251 0.123 0.201 14.622 0.004 98.582 
Sigma 0.461 0.549 0.039 0.243 0.881 0.020 0.032 0.959 0.005 0.440 
No. of data 25
코드 뒤에 지구 화학적 분석을 사용하여 이 데이터에 대한 색상 코딩이 있는 삼항식 플롯에 대한 Python 코드를 작성합니다. 중량 퍼센트 그룹 : 2020\_12\_18\_noc 샘플 : 2020\_12\_18\_noc\_0004\_QNT 페이지 1   No. Na2O MgO Al2O3 SiO2 CaO TiO2 MnO FeO K2O 합계 설명 1 4.755 9.608 0.323 53.645 15.962 0.115 0.220 14.218 0.018 98.864 SP1_4_m3_p7 2 4,728 9,835 0.308 53,759 15,794 0.125 0.173 14,148 0.000 98,870 SP1_4_m4_p5 3 5,271 9,062 0,183 53,556 14,914 0,140 0,161 15,265 0.000 98,552 SP1_4_m4_p6 4 6,703 7,392 0,357 53,430 12,310 0,153 0,182 17,751 0,000 98,278 SP1_4_m5_p1 5 4,758 9,749 0.321 53,880 15,904 0.140 0.183 14,285 0.004 99,224 SP1_4_m5_p2 6 4,557 9,884 0.308 53,566 16,096 0.116 0.199 13,287 0.000 98,013 SP1_4_m5A_p5 7 5,078 9,425 0.313 53,680 15,376 0.136 0.242 14,429 0.000 98,679 SP1_4_m5A_p6 8 4,701 9,790 0.310 53,642 16,063 0.133 0.256 13,687 0.004 98,586 SP1_4_m6_p2 9 5,390 8,886 0.324 53,615 14,488 0.151 0.196 15,553 0.008 98,611 SP1_4_m6_p3 10 5,227 9,076 0,306 53,295 14,998 0,104 0,162 15,177 0.000 98,345 SP1_4_m7_p9 11 5,147 9,146 0,292 54,142 14,868 0,128 0,192 15,143 0,002 99,060 SP220m1p1 12 4,716 9,656 0.312 53,978 15,855 0.107 0.230 13,842 0.000 98,696 SP2_20_m2_p3 13 4,828 9,566 0.277 53,967 15,839 0.126 0.188 13,617 0.004 98,412 SP2_20m2A_p7 14 4,661 9,756 0,363 53,613 15,783 0,137 0,255 13,796 0.000 98,364 SP2_20_m3_p4 15 5,197 9,151 0.346 53,747 15,118 0.128 0.216 14,942 0.016 98,861 SP2_20_m4_p4 16 4,747 9,693 0.253 53,534 16,001 0.071 0.189 13,456 0.010 97,954 SP2_20_m5_p4 17 4,691 9,772 0.266 53,774 15,940 0.112 0.203 14,082 0.000 98,840 SP2_20_m6_p2 18 5,143 9,055 0,308 53,663 14,864 0,130 0,180 15,447 0.000 98,790 SP2_20_m7_p6 19 5,502 8,821 0.321 53,579 14,098 0.118 0.163 15,651 0.005 98,258 SP2_20_m7_p7 20 5.105 9.552 0.347 53.894 15.250 0.076 0.143 14.552 0.005 98.924 SP2_20_m9A_p4 21 5,591 8,562 0,292 53,042 13,818 0,121 0,158 15,547 0,000 97,131 SP2_20_m9A_p5 22 4,919 9,485 0,332 53,710 15,830 0,136 0,240 14,490 0,007 99,149 P22010p6 23 4,762 9,572 0.311 54,081 15,562 0.096 0.223 14,139 0.000 98,746 SP2_20_m11_p4 24 4,602 9,702 0,251 53,897 15,732 0,127 0,244 14,131 0,005 98,691 SP2_20_m11_p5 25 5,443 8,919 0.337 53,876 14,800 0.141 0.216 14,926 0.000 98,658 SP2_20_m12_p3  최소 4.557 7.392 0.183 53.042 12.310 0.071 0.143 13.287 0.000 97.131 최대 6.703 9.884 0.363 54.142 16.096 0.153 0.256 17.751 0.018 99.224 평균 5.049 9.325 0.306 53.703 15.251 0.123 0.201 14.622 0.004 98.582 시그마 0.461 0.549 0.039 0.243 0.881 0.020 0.032 0.959 0.005 0.440 데이터 수 25