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

Plot 2d-image like data as heatmap #52

Merged
merged 5 commits into from
Apr 13, 2016
Merged

Plot 2d-image like data as heatmap #52

merged 5 commits into from
Apr 13, 2016

Conversation

gicmo
Copy link
Collaborator

@gicmo gicmo commented Apr 13, 2016

Issue #51

const int size = info.ticks.size();
for (int i = 0; i < size; i++) {
info.ticks[i] = offset + i * si;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you could have asked

info.ticks = QVector<double>::fromStrdVector(dim.axis(shape[dim-1]))

should have given the same result

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boah, I didn't know about SampledDimension.axis(). Cool, I will change that.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saves you the offset issues

Simplifies the code by use NIX-provided function.
@jgrewe jgrewe merged commit ea37d5b into bendalab:master Apr 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants