You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to add spaces between bricks in my plotly heatmap to make it look like the above image. The closest workaround I've found to solving this is to implement something like http://codepen.io/etpinard/pen/dMQrKN. Would it be possible to add a padding field to the heatmap api that will specify padding for bottom, left, top and right of each heatmap brick?
@CalvinFernandez great initiative. We've been wanting to add this feature for a while now. 🍻 to that!
There a few things we should clear up before making your PR though.
Is padding, with l, t, r and b items really necessary? I'm thinking that two attributes: one controlling horizontal padding and another for vertical padding should be enough. Unless you can convince me otherwise.
a few other minor points that I'll make on your a508d28 commit
@CalvinFernandez Great. In this case, I would prefer a flat attribute set instead of padding container.
plotly.js has alrady a few gap attributes like bargap and boxgap So, I'd vote for hgap and vgap. But, that might not be verbose enough. @cldougl what do you think?
One thing though, when you'll make your PR, the image tests fail on CI because your newly added heatmap_brick_padding.json mock has no corresponding baseline image. If you're feeling adventurous, you can try generate that baseline image locally using our image-test docker container. See docs here. If you find that too much of a pain, I'll upload the CI artefact to the PR thread.
Activity
closes plotly#858
closes plotly#858
CalvinFernandez commentedon Aug 17, 2016
( @etpinard / not sure who to ping ) would someone mind taking a look here
master...CalvinFernandez:heatmap-padding
etpinard commentedon Aug 17, 2016
@CalvinFernandez great initiative. We've been wanting to add this feature for a while now. 🍻 to that!
There a few things we should clear up before making your PR though.
padding, withl,t,randbitems really necessary? I'm thinking that two attributes: one controlling horizontal padding and another for vertical padding should be enough. Unless you can convince me otherwise.CalvinFernandez commentedon Aug 17, 2016
@etpinard 👍 to horizontal and vertical.
etpinard commentedon Aug 17, 2016
@CalvinFernandez Great. In this case, I would prefer a flat attribute set instead of
paddingcontainer.plotly.js has alrady a few
gapattributes likebargapandboxgapSo, I'd vote forhgapandvgap. But, that might not be verbose enough. @cldougl what do you think?CalvinFernandez commentedon Aug 17, 2016
alternatively
xgapygapis terse and clear?etpinard commentedon Aug 17, 2016
+1
CalvinFernandez commentedon Aug 18, 2016
hey, @etpinard I addressed the comments; mind taking another look?
etpinard commentedon Aug 19, 2016
@CalvinFernandez looks great! PR away 🚀
One thing though, when you'll make your PR, the image tests fail on CI because your newly added
heatmap_brick_padding.jsonmock has no corresponding baseline image. If you're feeling adventurous, you can try generate that baseline image locally using our image-test docker container. See docs here. If you find that too much of a pain, I'll upload the CI artefact to the PR thread.closes plotly#858
closes plotly#858