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
8617ee754d
commit
74368277b9
|
|
@ -62,15 +62,19 @@ com_linearize(wordlist *wl)
|
|||
plot_setcur(new->pl_typename);
|
||||
plot_list = new;
|
||||
len = (int)((tstop - tstart) / tstep + 1.5);
|
||||
|
||||
newtime = dvec_alloc(copy(oldtime->v_name),
|
||||
oldtime->v_type,
|
||||
oldtime->v_flags | VF_PERMANENT,
|
||||
len, NULL);
|
||||
|
||||
newtime->v_plot = new;
|
||||
for (i = 0, d = tstart; i < len; i++, d += tstep)
|
||||
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) {
|
||||
while (wl) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue