\documentclass[border=0.5cm,10pt,convert={ghostscript,outext=.png,density=800x800}]{standalone}%conversion en png avec ghostscript (adapter selon l'installation)
% conversion en png : ouvrir un terminal dans le dossier de ce fichier.
% exécuter la commande xelatex -shell-escape <nom du fichier>

%COMPILé AVEC XeLaTeX

\usepackage[T1]{fontenc}
\usepackage[dvipsnames,svgnames]{xcolor}
\colorlet{c_alpha}{LimeGreen}
\colorlet{c_beta_p}{magenta}
\colorlet{c_beta_m}{CornflowerBlue}
\colorlet{c_beta_p}{Magenta}
\colorlet{c_capt_e}{yellow!50!red}
\colorlet{c_em_proton}{violet}
\colorlet{c_em_neutron}{brown}
\colorlet{c_fission}{red}
\usepackage{lmodern}
\mathcode`\.="013B%virgule décimale en mode math
\usepackage{pgfplots}\pgfplotsset{compat=newest}

\begin{document}

\newlength{\taillept}
\setlength{\taillept}{0.8pt}
	\begin{tikzpicture}
		\begin{axis}
		[xlabel=numéro atomique Z,
		ylabel=nombre de neutrons N,
		title=Diagramme N -- Z (de \textsc{Segrè}) des nucléides,
		width=11cm,height=15cm,
		xmin=0,ymin=0,xmax=120,
		ymax=180,
		legend pos=south east,
		legend image post style={scale=2},
		legend style={
			/tikz/nodes={anchor=west},
			font=\footnotesize,
 },
minor x tick num=1,minor y tick num=1,
grid = both,
		]
		\addplot [only marks, mark size=\taillept] table [col sep=semicolon,x=Z, y=N] {noyaux_stables.csv};
		\addlegendentry{stables}
		
		\addplot [only marks, mark size=\taillept, c_alpha] table [col sep=semicolon,x=Z, y=N] {noyaux_alpha.csv};
		\addlegendentry{$ \alpha $}
		
		\addplot [only marks, mark size=\taillept, c_beta_p] table [col sep=semicolon,x=Z, y=N] {noyaux_beta_p.csv};
		\addlegendentry{$ \beta^+ $}
		
		\addplot [only marks, mark size=\taillept, c_beta_m] table [col sep=semicolon,x=Z, y=N] {noyaux_beta_m.csv};
		\addlegendentry{$ \beta^- $}
		
		\addplot [only marks, mark size=\taillept, c_capt_e] table [col sep=semicolon,x=Z, y=N] {noyaux_capt_e.csv};
		\addlegendentry{capture é.}
		
		\addplot [only marks, mark size=\taillept, c_em_proton] table [col sep=semicolon,x=Z, y=N] {noyaux_em_proton.csv};
		\addlegendentry{ém. proton}
		
		\addplot [only marks, mark size=\taillept, c_em_neutron] table [col sep=semicolon,x=Z, y=N] {noyaux_em_neutron.csv};
		\addlegendentry{ém. neutron}
		
		\addplot [only marks, mark size=\taillept, c_fission] table [col sep=semicolon,x=Z, y=N] {noyaux_fission.csv};
		\addlegendentry{fission sp.}
		
		\addplot [gray, dashed, domain=0:100]{x};
		\end{axis}
		\draw (9.5,0.0)node[rotate=90, font=\tiny\sffamily, anchor=north west, align = left]{
			D. \textsc{Alberto} (www.astrolabe-science.fr)~
			Données : Atomic Mass Evaluation 2016 Chinese Physics C 41, 030002 (2016),\\ NuBase 2016 Chinese Physics C 41, 030001 (2016)
		};
	\end{tikzpicture}
\end{document}
