-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Trace type <-> trace module 1-to-1 correspondance #124
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1e923c9
break up heatmap index:
etpinard 6b8885a
split parts of the scatter index:
etpinard c0f85e6
split up bars index
etpinard 503fd93
mv traceColorbar from colorbar/ to heatmap/
etpinard 7f1801e
split up contour index
etpinard 2ba8f80
split up histogram index
etpinard 27b0910
mv histogram calc2d to histogram2d/
etpinard 50f290c
register histogram module, require parts for Bars in it.
etpinard ab7ff1d
register histogram2d module, require parts of heatmap in it.
etpinard 1a90968
register histogram2dcontour, require pars of contour in it.
etpinard 2f3bd84
require histogram2d/calc in heatmap/calc,
etpinard bb542ab
require histogram/defaults in heatmap/defaults
etpinard 0d6fecc
require xy defaults + errorbar defaults in scattergl defaults
etpinard 67ae5aa
adapt jasmine tests
etpinard 1d18222
require in new trace modules,
etpinard c42a6d1
rm trailing lines
etpinard 1f0b92d
rename bars / Bars --> bar / Bar consistently with trace type
etpinard db469d8
rename boxes / Boxes --> box / Box consistently with trace type
etpinard b043ec3
update layout module definition with Bar and Box
etpinard de92572
make bar and histogram have distinct attribute object,
etpinard 9c90e0a
make contour and heatmap have distinct attribute objects
etpinard f4f1a93
make histogram2d and histogram2dcontour have distinct attribute objs
etpinard 7bc3e75
make bar and histogram have distinct defaults step:
etpinard 03b1557
make contour and heatmap have distinct defaults step:
etpinard eb327f0
make histogram2d and histogram2dcontour have distinct defaults step:
etpinard dccf3ed
update histogram* index files,
etpinard c1055b6
lint (name module.exports functions to help out during debugging)
etpinard 2247b7c
remove warnings on PlotSchema.get() :
etpinard File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
require histogram2d/calc in heatmap/calc,
- histogram2d and heatmap share the same calc function for now
- Loading branch information
commit 2f3bd84d9152c74fc8bc3a79bc8495ef4a6a17a9
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ var isNumeric = require('fast-isnumeric'); | |
var Plotly = require('../../plotly'); | ||
var Lib = require('../../lib'); | ||
|
||
var histogram2dCalc = require('../histogram2d/calc'); | ||
var hasColumns = require('./has_columns'); | ||
var convertColumnXYZ = require('./convert_column_xyz'); | ||
var maxRowLength = require('./max_row_length'); | ||
|
@@ -45,7 +46,7 @@ module.exports = function calc(gd, trace) { | |
Lib.markTime('done convert x&y'); | ||
|
||
if(isHist) { | ||
var binned = Plotly.Histogram.calc2d(gd, trace); | ||
var binned = histogram2dCalc(gd, trace); | ||
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. To keep this PR readable, histogram2d and heatmap still share the same calc step. |
||
x = binned.x; | ||
x0 = binned.x0; | ||
dx = binned.dx; | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Lib
is free of circular imports. 🎉 So, let's try import it directly from now on.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.
💯