Historique des modifications [retour]
cliquez ici pour masquer/afficher la révision 8

25 Oct '17, 17:50

Aur%C3%A9lienCocq's gravatar image

AurélienCocq
1.2k125668

Couleur de courbes

J'ai utilisé cet exemple pour réaliser ma courbe, sauf qu'en définissant une couleur pour la troisième , je m’aperçois que les points sont bicolores. Comment faire pour n'avoir qu'une seule couleur comme de base dans une courbe avec Latex ? Latex? \documentclass[secnumdepth=subsubsection,12pt,space=onehalf,fncychap=Bjornstrup]{yathesis} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{kpfonts} \usepackage{booktabs} \usepackage{pdfpages} \usepackage{siunitx} \usepackage{pgfplots} \usepackage{floatrow} \usepackage{caption} \usepackage{graphicx} \usepackage{listings} \usepackage{microtype} \usepackage{subfig} \usepackage{varioref} \usepackage{array} \usepackage{xcolor} \usepackage[xindy,quiet]{imakeidx} \usepackage[autostyle]{csquotes} \begin{filecontents}{cat1-1.txt} {0,100} {0.5,90.30331943} {1,85.39682391} {1.5,80} {2,75.2685093} {2.5,69.58571169} \end{filecontents} \begin{filecontents}{cat1-2.txt} {0,0} {.5,3.981361393} {1,9.045463379} {1.5,12.94618297} {2,18} {2.5,23} \end{filecontents} \begin{filecontents}{cat1-3.txt} {0,0} {.5,0.005255145} {1,0} {1.5,0.47423214} {2,0.897460432} {2.5,6.55}\end{filecontents} \begin{document} \begin{figure}[ht] \centering \pgfplotsset{% every axis legend/.append style = { at = {(0.5,1.03)}, anchor = south }} { \begin{tikzpicture} \begin{axis}[ xlabel=Temps (h), ylabel=Pourcentage molaire (\%), grid=major,width=12cm, height=7cm] \addplot+[smooth] table {tableaux/cat4-1.txt}; {cat4-1.txt}; \addplot+[smooth] table {tableaux/cat4-2.txt}; {cat4-2.txt}; \addplot+[smooth, color=green] table {tableaux/cat4-3.txt}; {cat4-3.txt}; \end{axis} \end{tikzpicture}} \end{figure} \end{document} <p><img alt="alt text" src="http://texnique.fr:80/osqa/upfiles/pb.png" width="100%" /></p>
cliquez ici pour masquer/afficher la révision 7
mineure

25 Oct '17, 17:42

denis's gravatar image

denis
7.4k2510

Couleur de courbes

J'ai utilisé cet exemple pour réaliser ma courbe, sauf qu'en définissant une couleur pour la troisième , je m’aperçois que les points sont bicolores. Comment faire pour n'avoir qu'une seule couleur comme de base dans une courbe avec Latex ? \documentclass[secnumdepth=subsubsection,12pt,space=onehalf,fncychap=Bjornstrup]{yathesis} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{kpfonts} \usepackage{booktabs} \usepackage{pdfpages} \usepackage{siunitx} \usepackage{pgfplots} \usepackage{floatrow} \usepackage{caption} \usepackage{graphicx} \usepackage{listings} \usepackage{microtype} \usepackage{subfig} \usepackage{varioref} \usepackage{array} \usepackage{xcolor} \usepackage[xindy,quiet]{imakeidx} \usepackage[autostyle]{csquotes} \begin{filecontents}{cat1-1.txt} 0 100 0.5 90.30331943 1 85.39682391 1.5 80 2 75.2685093 2.5 69.58571169 3 63 4 53 4.5 49 5 43 \end{filecontents} \begin{filecontents}{cat1-2.txt} 0 0 .5 3.981361393 1 9.045463379 1.5 12.94618297 2 18 2.5 23 3 29.23018403 4 37.40629492 4.5 43.79425417 5 49.68912893 \end{filecontents} \begin{filecontents}{cat1-3.txt} 0 0 .5 0.005255145 1 0 1.5 0.47423214 2 0.897460432 2.5 0.855140355 3 1.289031393 4 1.489924515 4.5 2.060736745 5 2.534899348 \end{filecontents} \begin{document} \begin{figure}[ht] \centering \pgfplotsset{% every axis legend/.append style = { at = {(0.5,1.03)}, anchor = south }} { \begin{tikzpicture} \begin{axis}[ xlabel=Temps (h), ylabel=Pourcentage molaire (\%), grid=major,width=12cm, height=7cm] \addplot+[smooth] table {cat4-1.txt}; {tableaux/cat4-1.txt}; \addplot+[smooth] table {cat4-2.txt}; {tableaux/cat4-2.txt}; \addplot+[smooth, color=green] table {cat4-3.txt}; {tableaux/cat4-3.txt}; \end{axis} \end{tikzpicture}} \end{figure} \end{document} ![alt text][1] [1]: http://texnique.fr:80/osqa/upfiles/pb.png =250x<p><img alt="alt text" src="http://texnique.fr:80/osqa/upfiles/pb.png" width="100%" /></p>
cliquez ici pour masquer/afficher la révision 6

25 Oct '17, 17:41

Aur%C3%A9lienCocq's gravatar image

AurélienCocq
1.2k125668

cliquez ici pour masquer/afficher la révision 5
mineure

25 Oct '17, 17:35

denis's gravatar image

denis
7.4k2510

cliquez ici pour masquer/afficher la révision 4
mineure

25 Oct '17, 17:34

denis's gravatar image

denis
7.4k2510

cliquez ici pour masquer/afficher la révision 3

25 Oct '17, 17:21

Aur%C3%A9lienCocq's gravatar image

AurélienCocq
1.2k125668

cliquez ici pour masquer/afficher la révision 2

25 Oct '17, 17:04

Aur%C3%A9lienCocq's gravatar image

AurélienCocq
1.2k125668

cliquez ici pour masquer/afficher la révision 1

25 Oct '17, 17:03

Aur%C3%A9lienCocq's gravatar image

AurélienCocq
1.2k125668

C'est votre première visite ici ? Consultez la FAQ !

×