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
The new GridLayout class is extremely useful to see the data. However, we often combine various graphs in order to compare two informations:
a curve vs another curve,
a cloud versus a curve,
two clouds.
There are two different missing features:
When two GridLayout are created, it is not easy to merge them into a single one, because the add feature of Graph is not available: GridLayout.add(GridLayout) does not exist,
When a GridLayout is created, we may want to configure some services, such as the colors, or other features. But GridLayout.setColors(colors) does not exist.
The grid.add(other_grid) method would first check that the number of rows/columns match, otherwise an exception should be generated. Then each graph of other_grid would be added to each graph of grid.
The GridLayout.setColors(colors) would just propagate the effect of setColors to each graph of the grid.
Hence, the "workaround" is to configure or add each graph separately, putting each graph into the grid afterwards.
I write below two different use cases.
The first one creates two GridLayout and tries to merge them.
The second creates two GridLayout using DrawPairs and merges them.
I try to identify other services that would be missing.
Propagating the title would be meaningless if the same title is applied to all graphs in the grid. This is the same for setXTitle and setYTitle.
Methods that could be propagated are: setLegendPosition, setLogScale, setAutomaticBoundingBox, setAxes, setBoundingBox, setDefaultColors, setLegendFontSize.
The new
GridLayout
class is extremely useful to see the data. However, we often combine various graphs in order to compare two informations:There are two different missing features:
GridLayout
are created, it is not easy to merge them into a single one, because theadd
feature ofGraph
is not available:GridLayout.add(GridLayout)
does not exist,GridLayout
is created, we may want to configure some services, such as the colors, or other features. ButGridLayout.setColors(colors)
does not exist.The
grid.add(other_grid)
method would first check that the number of rows/columns match, otherwise an exception should be generated. Then each graph ofother_grid
would be added to each graph ofgrid
.The
GridLayout.setColors(colors)
would just propagate the effect ofsetColors
to each graph of the grid.Hence, the "workaround" is to configure or add each graph separately, putting each graph into the grid afterwards.
I write below two different use cases.
GridLayout
and tries to merge them.GridLayout
usingDrawPairs
and merges them.Figure for case A:
Figure for case B:
I try to identify other services that would be missing.
setXTitle
andsetYTitle
.setLegendPosition
,setLogScale
,setAutomaticBoundingBox
,setAxes
,setBoundingBox
,setDefaultColors
,setLegendFontSize
.The application of these features is for othdrplot, which heavily uses grids of graphs : https://github.com/mbaudin47/othdrplot/blob/master/doc/examples/ProcessHighDensityRegionAlgorithm-3D-example.ipynb
The text was updated successfully, but these errors were encountered: