-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Ternary phase diagrams #390
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
Changes from 1 commit
811c874
2595731
7e7e217
6b4af04
5cd86fc
aee10b6
330574b
2769e9c
1b9f43e
4595ac6
3ccc3ea
9ec6d8f
abdce19
c2f7f71
f3e3f1e
3f99890
dc5cb63
f43fe64
c79d993
7dbd964
c24e444
381de10
c47d4f9
17df3cd
637a956
0857b44
c75051d
e78818d
07e8502
c9ee322
c88083c
0087ab8
9dd02ee
ee28402
515e121
cdc6195
793afb3
c582d7f
54cbb2f
a0e0cbd
4eb83fb
e08dce9
a5d5969
408e3b0
dae00af
a15e9b6
042cf3a
f7b2447
3974d11
f9bb22e
06565e0
670dc0d
aae3e47
fbd0a0b
8cc59a9
e4e1019
e3c0dd8
324446d
6a00fc2
8338be6
dfcd6c3
b37439e
e0c29f1
ffa9d42
11e533b
f7d9c66
e99a5a6
eae47bb
277c8f8
6e38cca
6cefff0
6465c6c
e033d08
a043655
9d3776e
ab22ef9
c3ab79f
6f8d468
fce4d68
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -116,7 +116,7 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) { | |
|
||
var bgColor = Color.combine(plot_bgcolor, layoutOut.paper_bgcolor); | ||
|
||
xaList.concat(yaList).forEach(function(axName) { | ||
axesList.forEach(function(axName) { | ||
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. @mdtusz also from rangesliders, doesn't show up in this diff but master had 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. Whoops! That was a missed consideration change. I changed it so that it was |
||
var axLetter = axName.charAt(0), | ||
axLayoutIn = layoutIn[axName] || {}, | ||
axLayoutOut = {}, | ||
|
@@ -152,4 +152,12 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) { | |
} | ||
|
||
}); | ||
|
||
// quick second pass for rangeslider defaults | ||
axesList.forEach(function(axName) { | ||
var axLetter = axName.charAt(0), | ||
counterAxes = {x: yaList, y: xaList}[axLetter]; | ||
|
||
RangeSlider.supplyLayoutDefaults(layoutIn, layoutOut, axName, counterAxes); | ||
}); | ||
}; |
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.
@mdtusz this moved over here from
Titles.draw
when I merged master in with rangesliders. I noticed you recalculated the inner plot height, but it's better (and shorter) to usefullLayout._size
which has this cached, AFTER anything that may potentially have increased the margin (like an external colorbar or legend)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.
Could you clarify?
I'll have to look again, but I think I tried to use
fullLayout._size
, but because it's height was being modified by the rangeslider, using it instead of calculating would create an infinite loop (where it would get scaled down infinitely by1 - ax.rangeslider.thickness
) if that's the part you're referring to.