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
Several other implementations of splom allow for a different plot type on the diagonal - which makes sense because the diagonal subplots are always just diagonal lines of points. What we really want is a simple view of the distribution of that one dimension in each diagonal subplot. For my current purposes the best view would be a histogram, and I suspect implementing only that would be a well-received improvement, but eventually box and violin could also be nice additions.
We anticipated this feature with a comment in #2555 and with a comment in the attributes for splom:
That comment I think is right, trace.diagonal.type sets the trace type for all of the diagonal subplots, then we add more attributes into trace.diagonal that mirror the attributes available to histogram (and the other trace types if we add those). For histograms, trace.diagonal.marker.color should be inherited from trace.marker.color (and maybe similar with marker.line.width and marker.line.width?)
In addition, each dimension should be able to override everything about its own diagonal subplot, so trace.dimensions[i].diagonal should accept all the same options as trace.diagonal.
The text was updated successfully, but these errors were encountered:
Is diagonal not already enough of a container? Everything in there, including type, is trace attributes for what you show on the diagonal, with the caveat that the one existing attribute there, visible, also controls whether we even create that subplot, but that seems OK to me.
@alexcjohnson FYI - I did spend some time on this on the way to MTL on splom-diagonal-histogram branch.
But it turned out to be a complex project considering the need to provide various steps e.g. supply-defaults, calc and cross-trace-calc for heatmap to be drawn.
Several other implementations of
splom
allow for a different plot type on the diagonal - which makes sense because the diagonal subplots are always just diagonal lines of points. What we really want is a simple view of the distribution of that one dimension in each diagonal subplot. For my current purposes the best view would be a histogram, and I suspect implementing only that would be a well-received improvement, but eventually box and violin could also be nice additions.We anticipated this feature with a comment in #2555 and with a comment in the attributes for
splom
:plotly.js/src/traces/splom/attributes.js
Lines 143 to 158 in f0fef6f
That comment I think is right,
trace.diagonal.type
sets the trace type for all of the diagonal subplots, then we add more attributes intotrace.diagonal
that mirror the attributes available tohistogram
(and the other trace types if we add those). For histograms,trace.diagonal.marker.color
should be inherited fromtrace.marker.color
(and maybe similar withmarker.line.width
andmarker.line.width
?)In addition, each dimension should be able to override everything about its own diagonal subplot, so
trace.dimensions[i].diagonal
should accept all the same options astrace.diagonal
.The text was updated successfully, but these errors were encountered: