#### 8.3.6 axeY

• axeY(<[origin, posOrigin, extent]>, <Ystep> [, Subdiv, labelPos , num, ""text"", den,firstnum] ).
• Description: draw and graduate an ordinate axis passing through the <origin> with the step <Ystep>. The parameter <extent> sets the ordinate interval using a complex number: ymin+i*ymax. If it is omitted, then the drawing uses the whole window. Note: giving a value to the <extent> only (no value for <posOrigin>) is done by giving the jump value to <posOrigin> (and not Nil!).
• <Subdiv> is the subdivisions number per unit , each ordinate is multiplied by the fraction <num/den> (1 by default), added to <firstnum/den> (the default origin) with the <"text"> at numerator. That macro calls the macro GradDroite, is using the variables: usecomma (0/1: so that the decimal separator is a comma or a point), dollar (0/1: adds (or not) $’s around the graduation labels), numericFormat (0/1/2: managing the numeric format: decimal(0), scientific(1), or ingineer(2)), and nbdeci (for the decimal places number displayed). • The optional parameters <posOrigin> and <labelpos> are used for label positioning: • <posOrigine>=0: no label at the origin, • <posOrigine>=1: normal label at the origin, • <posOrigine>=2: label shifted upwards at the origin (default value), • <posOrigine>=-2 label shifted downwards at the origin, • <labelPos>=0 : no label at all, • <Re(labelpos)>=left: labels on the left of the axis (default axis), • Re(<labelPos>=right : labels on the right of the axis, • Im(<labelPos>)=1: labels orthogonal to the axis.  \begin{texgraph}[name=axeXY,export=pgf] view(-5,5,-5,5),size(7.5), LabelSize:=footnotesize, //top graphic SaveWin(), view(-5,5,0.25,5),Width:=6, Arrows:=1, SetMatrix([2.5*i,2/pi,2*i]), axeX(0,pi/2,Nil,Nil,1,"\pi",2), axeY(0,1), Arrows:=0, Color:=red, Width:=8, tMin:=-2*pi, tMax:=2*pi, Cartesienne(sin(x)), Label(pi*1.65+i,"$f(x)=\sin(x)$"),RestoreWin(), //bottom graphic SaveWin(), Color:=black, view(-5,5,-5,-0.25), SetMatrix([-5.5*i,2,i]), Width:=6, Arrows:=1, usecomma:=1, axeX([i,0],0.5), axeY([i,0],1,Nil,Nil,1,"a"), Arrows:=0, Color:=blue, Width:=8, Cartesienne(x^2+1), Label(1+4.75*i,"$g(x)=x^2+a\$"),   RestoreWin()   \end{texgraph}

axeX, axeY usage