Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use one time vector for results in html reports #12

Open
svenruetz opened this issue Mar 23, 2015 · 2 comments
Open

Use one time vector for results in html reports #12

svenruetz opened this issue Mar 23, 2015 · 2 comments
Assignees

Comments

@svenruetz
Copy link
Collaborator

We have to check if the used jqplot library supports a different way of reading its data sets to be able to set a variable with the time values and use this variable instead of repeating vectors in the report.

Maybe the series to plot could be initialized seperately.

@svenruetz svenruetz self-assigned this Mar 23, 2015
@ghost
Copy link

ghost commented Mar 23, 2015

Another idea is to do some preprocessing in javascript:

function build_data(x, y, res) {
if (x.length != y.lenght) {
// Oh no, something is wrong with the universe!
return;
}
for (var i = 0; i < x.length; i++) {
res.push([x[i],y[i]);
}
}

// For each file:
var base_time = [0, 0.001, 0.002, ..., 0.999, 1];
var result_time = [ .... ];

// For each variable:
var base_trajectory = [12.3, 12.5, 12.9, ..., 23.1, 23.6];
var result_trajectory = [ ... ]

var data = [[],[],[],[]]

build_data(base_time, base_trajectory, data[0]);
build_data(result_time, result_trajectory, data[1]);

Note that if base_time and result_time is the same, then one of them can be skipped. I also noticed that low and high tube have different time-scales than base and result! I guess that they will vary with each trajectory.

@tbeu
Copy link
Contributor

tbeu commented Mar 1, 2016

@svenruetz Any idea when we can expect this enhancement?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants