matrix_grains[matrix_grains==angle]=(index)# matrix with id for each grain add 1 to perfome the elementwise multiplication to get the index of phase grains
matrix_grains[matrix_grains==angle]=(index)# matrix with id for each grain add 1 to perfome the elementwise multiplication to get the index of phase grains
matrix_grains[matrix_grains==angle]=(index+len(index_ferrit_angles)+100)# matrix with id for each grain add 1 to perfome the elementwise multiplication to get the index of phase grains
matrix_grains[matrix_grains==angle]=(index+len(index_ferrit_angles)+100)# matrix with id for each grain add 1 to perfome the elementwise multiplication to get the index of phase grains
C:\Users\CHRIST~1\AppData\Local\Temp/ipykernel_16636/1273089677.py:30: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "transparent_background" which is no longer supported as of 3.3 and will become an error in 3.6
C:\Users\CHRIST~1\AppData\Local\Temp/ipykernel_16636/1273089677.py:30: MatplotlibDeprecationWarning: savefig() got unexpected keyword argument "transparent_background" which is no longer supported as of 3.3 and will become an error in 3.6