* src/frontend/agraf.c src/frontend/agraf.h
src/frontend/grid.c src/frontend/grid.h src/frontend/clip.c src/frontend/clip.h: Moved these files... * src/frontend/plotting/agraf.c src/frontend/plotting/agraf.h src/frontend/plotting/clip.c src/frontend/plotting/clip.h src/frontend/plotting/grid.c src/frontend/plotting/grid.h: ... here * src/frontend/Makefile.am src/frontend/plotting/Makefile.am: Updates for new locations.
This commit is contained in:
parent
ceef3b5e8a
commit
4d26c7626b
|
|
@ -15,9 +15,8 @@ libfte_a_SOURCES = \
|
||||||
com_let.h \
|
com_let.h \
|
||||||
com_setscale.c \
|
com_setscale.c \
|
||||||
com_setscale.h \
|
com_setscale.h \
|
||||||
|
completion.h \
|
||||||
\
|
\
|
||||||
agraf.c \
|
|
||||||
agraf.h \
|
|
||||||
arg.c \
|
arg.c \
|
||||||
arg.h \
|
arg.h \
|
||||||
aspice.c \
|
aspice.c \
|
||||||
|
|
@ -28,8 +27,6 @@ libfte_a_SOURCES = \
|
||||||
breakp2.h \
|
breakp2.h \
|
||||||
circuits.c \
|
circuits.c \
|
||||||
circuits.h \
|
circuits.h \
|
||||||
clip.c \
|
|
||||||
clip.h \
|
|
||||||
cpitf.c \
|
cpitf.c \
|
||||||
cpitf.h \
|
cpitf.h \
|
||||||
debugcom.c \
|
debugcom.c \
|
||||||
|
|
@ -56,12 +53,8 @@ libfte_a_SOURCES = \
|
||||||
fourier.h \
|
fourier.h \
|
||||||
gens.c \
|
gens.c \
|
||||||
gens.h \
|
gens.h \
|
||||||
graf.c \
|
|
||||||
graf.h \
|
|
||||||
graphdb.c \
|
graphdb.c \
|
||||||
graphdb.h \
|
graphdb.h \
|
||||||
grid.c \
|
|
||||||
grid.h \
|
|
||||||
inp.c \
|
inp.c \
|
||||||
inp.h \
|
inp.h \
|
||||||
inpcom.c \
|
inpcom.c \
|
||||||
|
|
|
||||||
|
|
@ -1,13 +0,0 @@
|
||||||
/*************
|
|
||||||
* Header file for agraf.c
|
|
||||||
* 1999 E. Rouat
|
|
||||||
************/
|
|
||||||
|
|
||||||
#ifndef AGRAF_H_INCLUDED
|
|
||||||
#define AGRAF_H_INCLUDED
|
|
||||||
|
|
||||||
void ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot,
|
|
||||||
struct dvec *vecs, double xdel, double ydel, bool xlog, bool ylog,
|
|
||||||
bool nointerp);
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -3,6 +3,14 @@ noinst_LIBRARIES = libplotting.a
|
||||||
libplotting_a_SOURCES = \
|
libplotting_a_SOURCES = \
|
||||||
plotting.c \
|
plotting.c \
|
||||||
plotting.h \
|
plotting.h \
|
||||||
|
agraf.c \
|
||||||
|
agraf.h \
|
||||||
|
clip.c \
|
||||||
|
clip.h \
|
||||||
|
graf.c \
|
||||||
|
graf.h \
|
||||||
|
grid.c \
|
||||||
|
grid.h \
|
||||||
pvec.c \
|
pvec.c \
|
||||||
pvec.h \
|
pvec.h \
|
||||||
plot5.c \
|
plot5.c \
|
||||||
|
|
|
||||||
|
|
@ -36,18 +36,19 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s
|
||||||
char *line1, *line2, c, cb;
|
char *line1, *line2, c, cb;
|
||||||
double xrange[2], yrange[2], x1, x2, yy1, y2, x, y;
|
double xrange[2], yrange[2], x1, x2, yy1, y2, x, y;
|
||||||
int mag, hmt, lmt, dst, spacing, nsp, ypt, upper, lower, curline;
|
int mag, hmt, lmt, dst, spacing, nsp, ypt, upper, lower, curline;
|
||||||
double tenpowmag, diff, *values;
|
double tenpowmag, diff;
|
||||||
|
double *values = NULL;
|
||||||
struct dvec *v;
|
struct dvec *v;
|
||||||
int margin = MARGIN_BASE;
|
int margin = MARGIN_BASE;
|
||||||
int omargin;
|
int omargin;
|
||||||
register int i, j, k;
|
int i, j, k;
|
||||||
int shift;
|
int shift;
|
||||||
|
|
||||||
|
|
||||||
/* ANSI C does not specify how many digits are in an exponent for %c
|
/* ANSI C does not specify how many digits are in an exponent for %c
|
||||||
* We assumed it was 2. If it's more, shift starting position over.
|
* We assumed it was 2. If it's more, shift starting position over.
|
||||||
*/
|
*/
|
||||||
(void) sprintf(buf, "%1.1e", 0.0); /* expect 0.0e+00 */
|
sprintf(buf, "%1.1e", 0.0); /* expect 0.0e+00 */
|
||||||
shift = strlen(buf) - 7;
|
shift = strlen(buf) - 7;
|
||||||
margin += shift;
|
margin += shift;
|
||||||
|
|
||||||
|
|
@ -331,4 +332,3 @@ ft_agraf(double *xlims, double *ylims, struct dvec *xscale, struct plot *plot, s
|
||||||
tfree(values);
|
tfree(values);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -0,0 +1,18 @@
|
||||||
|
/*************
|
||||||
|
* Header file for agraf.c
|
||||||
|
* 1999 E. Rouat
|
||||||
|
************/
|
||||||
|
|
||||||
|
#ifndef _AGRAF_H
|
||||||
|
#define _AGRAF_H
|
||||||
|
|
||||||
|
#include <dvec.h>
|
||||||
|
#include <bool.h>
|
||||||
|
#include <plot.h>
|
||||||
|
|
||||||
|
void ft_agraf(double *xlims, double *ylims, struct dvec *xscale,
|
||||||
|
struct plot *plot, struct dvec *vecs,
|
||||||
|
double xdel, double ydel, bool xlog, bool ylog,
|
||||||
|
bool nointerp);
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -10,6 +10,4 @@
|
||||||
bool clip_line(int *pX1, int *pY1, int *pX2, int *pY2, int l, int b, int r, int t);
|
bool clip_line(int *pX1, int *pY1, int *pX2, int *pY2, int l, int b, int r, int t);
|
||||||
bool clip_to_circle(int *x1, int *y1, int *x2, int *y2, int cx, int cy, int rad);
|
bool clip_to_circle(int *x1, int *y1, int *x2, int *y2, int cx, int cy, int rad);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Loading…
Reference in New Issue