frontend/linear.c, cleanup `com_linearize()'
invoke vec_new() for the scale vector too, attempting to unify dvec and vec usage patterns
This commit is contained in:
parent
143a2a1c6c
commit
b00825d204
|
|
@ -62,15 +62,19 @@ com_linearize(wordlist *wl)
|
||||||
plot_setcur(new->pl_typename);
|
plot_setcur(new->pl_typename);
|
||||||
plot_list = new;
|
plot_list = new;
|
||||||
len = (int)((tstop - tstart) / tstep + 1.5);
|
len = (int)((tstop - tstart) / tstep + 1.5);
|
||||||
|
|
||||||
newtime = dvec_alloc(copy(oldtime->v_name),
|
newtime = dvec_alloc(copy(oldtime->v_name),
|
||||||
oldtime->v_type,
|
oldtime->v_type,
|
||||||
oldtime->v_flags | VF_PERMANENT,
|
oldtime->v_flags | VF_PERMANENT,
|
||||||
len, NULL);
|
len, NULL);
|
||||||
|
|
||||||
newtime->v_plot = new;
|
|
||||||
for (i = 0, d = tstart; i < len; i++, d += tstep)
|
for (i = 0, d = tstart; i < len; i++, d += tstep)
|
||||||
newtime->v_realdata[i] = d;
|
newtime->v_realdata[i] = d;
|
||||||
new->pl_scale = new->pl_dvecs = newtime;
|
|
||||||
|
newtime->v_plot = new;
|
||||||
|
vec_new(newtime);
|
||||||
|
|
||||||
|
new->pl_scale = newtime;
|
||||||
|
|
||||||
if (wl) {
|
if (wl) {
|
||||||
while (wl) {
|
while (wl) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue