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
Hey @nbevans i am afraid that there is no way to do this out of the box with the grid system of plotly.js that is used by Chart.Grid. However, there is always the possibility of trading the comfort of a high level abstraction such as Chart.Grid for full control using advanced (and less safe) APIs. In this case, you could go for setting the domains of your subplots as fractions of the whole layout instead of using the grid system.
In the case of 2D cartesian traces, that means:
create a custom axis system, where the axis domain is set as fraction of the available layout space
anchor each axis to its partner
anchor each plot to it's respective axis system (Chart.withAxisAnchor)
set the axis on the chart's layout with their respective ids
here is a small example with 3 charts that already takes a lot of code, but gets the job done. You have full control here, but leave the comfort of a high level abstraction:
Activity
kMutagene commentedon Jun 25, 2024
Hey @nbevans i am afraid that there is no way to do this out of the box with the grid system of plotly.js that is used by
Chart.Grid. However, there is always the possibility of trading the comfort of a high level abstraction such asChart.Gridfor full control using advanced (and less safe) APIs. In this case, you could go for setting the domains of your subplots as fractions of the whole layout instead of using the grid system.In the case of 2D cartesian traces, that means:
Chart.withAxisAnchor)here is a small example with 3 charts that already takes a lot of code, but gets the job done. You have full control here, but leave the comfort of a high level abstraction: