-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Date bin shift #1201
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
Date bin shift #1201
Changes from 1 commit
f6b902c
1b9b122
11f6830
8628661
dcd4be1
0050c1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,8 +91,7 @@ describe('Test histogram2d', function() { | |
|
||
// TODO: even though the binning is done on non-uniform bins, | ||
// the display makes them linear (using only y0 and dy) | ||
// when we sort out https://github.com/plotly/plotly.js/issues/1151 | ||
// lets also make it display the bins with nonuniform size | ||
// Can we also make it display the bins with nonuniform size? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removed from the scope of this PR because it turned out to be more of a pain than I thought, and it's a really minor effect visually. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ref #360 |
||
expect(out.y0).toBe('1970-01-01 03:00'); | ||
expect(out.dy).toBe(365.25 * oneDay); | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -156,7 +156,7 @@ describe('Test histogram', function() { | |
nbinsx: 4 | ||
}); | ||
|
||
// Note: this gives half-day gaps between all but the first two | ||
// TODO: this gives half-day gaps between all but the first two | ||
// bars. Now that we have explicit per-bar positioning, perhaps | ||
// we should fill the space, rather than insisting on equal-width | ||
// bars? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This effect is a little more important than getting the exact right bin sizes in the 2D case, because here it leads to visible gaps between many of the bars. Unfortunately it's also quite a bit more effort to solve when you consider stacked or grouped traces. Worth making an issue for it? |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed because I have no idea anymore what this was about. We'll wait for a bug report...