Mathc matrices/a129
Apparence
Installer ces fichiers dans votre répertoire de travail.
Ce fichier est spécifique pour ce travail. Il ne doit pas être conservé avec la bibliothèque..'.
d_gtrans.h |
---|
/* ------------------------------------ */
/* Save as : d_gtrans.h */
/* ------------------------------------ */
void G_translateAxes_mR(
W_Ctrl w,
double **A,
double xt,
double yt
)
{
FILE *fp;
int c;
fp = fopen("a_main.plt","w");
fprintf(fp, " reset\n"
" set zeroaxis\n"
" set size ratio -1\n"
" plot[%0.3f:%0.3f] [%0.3f:%0.3f]\\\n"
" \"aa\" with line lw 3,\\\n"
" \"ax\" with line lt 3 lw 3,\\\n"
" \"ay\" with line lt 3 lw 3\n",
w.xmini,w.xmaxi,w.ymini,w.ymaxi);
fclose(fp);
fp = fopen("aa","w");
for(c=C1; c<A[C_SIZE][R_SIZE]; c++)
fprintf(fp," %+.3f %+.3f \n",A[R1][c],A[R2][c]);
fclose(fp);
fp = fopen("ax","w");
fprintf(fp," %+.3f %+.3f \n",w.xmini,yt);
fprintf(fp," %+.3f %+.3f \n",w.xmaxi,yt);
fclose(fp);
fp = fopen("ay","w");
fprintf(fp," %+.3f %+.3f \n",xt,w.ymini);
fprintf(fp," %+.3f %+.3f \n",xt,w.ymaxi);
fclose(fp);
}
/* ------------------------------------ */
/* ------------------------------------ */