\begin{texgraph}[name=signeC, preload="variations.mod"]
dimTab(5,6),
defLargeCol(1,3),
Cadre(1,1,5,6), traitV(1),
for k from 1 to 4 do traitH(k) od,
InitLig1("x","0","4,5","10"),
InitCol1("2x-9","x^2+2x+9","x^2","C(x)"),
valeursLig(2,+1,"-","0","+"),
valeursLig(3,+1,"+",+1,"+"),
valeursLig(4,"0","+",+1,"+"),
valeursLig(5,+1,"-","0","+"),
doubleB(2,5,5)
\end{texgraph}
\begin{texgraph}[name=test, preload="grid.mod",export=pgf]
Fenetre(0+50000*i,0-1000*i,0.4+0.0002*i),
Marges(0.5,0.5,0.5,0.5),
draw("grid",[0,0],[unit:=[5,5000],gridcolor:=gray, gridstyle:=userdash, gridwidth:=2]),
draw("axeX",[0,5],[limits:=0+50*i, Arrows:=1]),
draw("axeY",[0,5000],[limits:=0+50000*i, Arrows:=1]),
NewMac("f","100+%1^4*exp(-0.1*%1)"),
draw("cartesian",f(x),[x:=[0,50], Color:=navy, Width:=8]),
draw("label","$\mathcal{C}_f$",[anchor:=45+f(45)*i, labeldir:=North, Color:=navy, showdot:=0]),
\end{texgraph}
Reading /usr/local/share/TeXgraph/macros/color.mac...
/usr/local/share/TeXgraph/macros/color.mac end of reading
Reading /usr/local/share/TeXgraph/macros/TeXgraph.mac...
Reading /usr/local/share/TeXgraph/macros/errors.mac...
/usr/local/share/TeXgraph/macros/errors.mac end of reading
Reading /usr/local/share/TeXgraph/macros/draw2d.mac...
Reading /usr/local/share/TeXgraph/macros/markers.mac...
/usr/local/share/TeXgraph/macros/markers.mac end of reading
Reading /usr/local/share/TeXgraph/macros/gradients.mac...
/usr/local/share/TeXgraph/macros/gradients.mac end of reading
/usr/local/share/TeXgraph/macros/draw2d.mac end of reading
Reading /usr/local/share/TeXgraph/macros/draw3d.mac...
/usr/local/share/TeXgraph/macros/draw3d.mac end of reading
Reading /usr/local/share/TeXgraph/macros/axes.mac...
/usr/local/share/TeXgraph/macros/axes.mac end of reading
/usr/local/share/TeXgraph/macros/TeXgraph.mac end of reading
Remove test.pgf
Reading test.teg...
Reading /home/jcottin/.TeXgraph/TeXgraphMac/grid/grid.mod...
Reading /usr/local/share/TeXgraph/macros/draw2d.mod...
Reading /usr/local/share/TeXgraph/macros/markers.mac...
/usr/local/share/TeXgraph/macros/markers.mac end of reading
Reading /usr/local/share/TeXgraph/macros/gradients.mac...
/usr/local/share/TeXgraph/macros/gradients.mac end of reading
Reading /usr/local/share/TeXgraph/macros/draw2d.mac...
/usr/local/share/TeXgraph/macros/draw2d.mac end of reading
/usr/local/share/TeXgraph/macros/draw2d.mod end of reading
Reading /home/jcottin/.TeXgraph/TeXgraphMac/grid/grid.mac...
/home/jcottin/.TeXgraph/TeXgraphMac/grid/grid.mac end of reading
/home/jcottin/.TeXgraph/TeXgraphMac/grid/grid.mod end of reading
test.teg end of reading
Export to test.pgf
End of export
Fenetre(0+50000*i,50-1000*i,0.4+0.0002*i),
Marges(1.5,0.5,0.5,0.5),
draw("axes", [0,5+5000*i], [limits:=[50*i,50000*i], grid:=1,Arrows:=1,gridstyle:=userdash]),
NewMac("f","100+%1^4*exp(-0.1*%1)"),
draw("cartesian",f(x),[x:=[0,50], Color:=navy, Width:=8, legend:="$\mathcal{C}_f$",anchor:=45+f(45)*i, labeldir:=North]),
Fenetre(-1+2*i,10-2*i,1+i),
Marges(0.5,0.5,0.5,0),
draw("axes", [0,1+i], [limits:=[-1+10*i,-2+2*i], grid:=1,Arrows:=1,
gridstyle:=userdash,
legendpos:=[1,1], legend :=["$x$", "$y$"],
originpos:=[left,jump], labelpos:=[bottom,left] ]),
NewMac("f","(2*ln(%1)+1)/%1"),
draw("cartesian",f(x),[x:=[0,10], Color:=navy, Width:=8, legend:="$\mathcal{C}_f$",anchor:=9+f(9)*i, labeldir:=North]),
a:=exp(1),
A:=a+f(a)*i,
Diff(df,f(x),x,x),
draw("seg",[A-3*(1+df(a)*i),A+4*(1+df(a)*i)],[Arrows:=2, Width:=8, Color:=red]),
draw("seg",[A,Re(A)],[LineStyle:=userdash]),
draw("label","$A$",[anchor:=A, labeldir:=North,showdot:=1,DotStyle:=dotcircle],
"$a$",[anchor:=Re(A), labeldir:=South, DotStyle:=plus, DotScale:=2]),
Fenetre(-1+2*i,10-2*i,1+i),
Marges(0.5,0.5,0.5,0),
draw("grid",0,[gridstyle:=userdash, gridwidth:=4]),
draw("axes", [0,1+i], [limits:=[-1+10*i,-2+2*i], Arrows:=1,
legendpos:=[1,1], legend :=["$x$", "$y$"],
originpos:=[left,jump], labelpos:=[bottom,left] ]),
NewMac("f","(2*ln(%1)+1)/%1"),
draw("cartesian",f(x),[x:=[0,10], Color:=navy, Width:=8, legend:="$\mathcal{C}_f$",anchor:=9+f(9)*i, labeldir:=North]),
a:=exp(1),
A:=a+f(a)*i,
Diff(df,f(x),x,x),
draw("seg",[A-3*(1+df(a)*i),A+4*(1+df(a)*i)],[Arrows:=2, Width:=8, Color:=red]),
draw("seg",[A,Re(A)],[LineStyle:=userdash]),
draw("label","$A$",[anchor:=A, labeldir:=North,showdot:=1,DotStyle:=dotcircle],
"$a$",[anchor:=Re(A), labeldir:=South, DotStyle:=plus, DotScale:=2]),
Pour l'instant je n'ai pas mis d'option pour désactiver ce décalage, il faut donc dessiner la grille indépendemment pour faire ce que tu veux :
Revenir vers Version intermédiaire
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 2 invités