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
/// Creates a subplot grid with the given dimensions (nRows x nCols) for the input charts.
3081
+
/// Creates a subplot grid with the given dimensions (nRows x nCols) for the input charts. The default row order is from top to bottom.
3082
+
///
3083
+
/// For each input chart, a corresponding subplot cell is created in the grid. The following limitations apply to the individual grid cells:
3084
+
///
3085
+
/// - only one pair of 2D cartesian axes is allowed per cell. If there are multiple x or y axes on an input chart, the first one is used, and the rest is discarded (meaning, it is removed from the combined layout).
3086
+
/// if you need multiple axes per grid cell, create a custom grid by manually creating axes with custom domains instead.
3087
+
/// The new id of the axes corresponds to the number of the grid cell, e.g. the third grid cell will contain xaxis3 and yaxis3
3088
+
///
3089
+
/// - For other subplot layouts (Cartesian3D, Polar, Ternary, Geo, Mapbox, Smith), the same rule applies: only one subplot per grid cell, the first one is used, the rest is discarded.
3090
+
/// The new id of the subplot layout corresponds to the number of the grid cell, e.g. the third grid cell will contain scene3 etc.
3091
+
///
3092
+
/// - The Domain of traces that calculate their position by domain only (e.g. Pie traces) are replaced by a domain pointing to the new grid position.
3093
+
///
3094
+
/// - If SubPlotTitles are provided, they are used as the titles of the individual cells in ascending order. If the number of titles is less than the number of subplots, the remaining subplots are left without a title.
3084
3095
/// </summary>
3085
3096
/// <param name ="nRows">The number of rows in the grid. If you provide a 2D `subplots` array or a `yaxes` array, its length is used as the default. But it's also possible to have a different length, if you want to leave a row at the end for non-cartesian subplots.</param>
3086
3097
/// <param name ="nCols">The number of columns in the grid. If you provide a 2D `subplots` array, the length of its longest row is used as the default. If you give an `xaxes` array, its length is used as the default. But it's also possible to have a different length, if you want to leave a row at the end for non-cartesian subplots.</param>
// remove all axes from layout. Only cartesian axis in each dimension is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine.
colIndex, rowIndex //set axis anchors according to grid coordinates
@@ -3223,20 +3241,19 @@ type Chart =
3223
3241
|> Chart.withAxisAnchor (xAnchor, yAnchor)// set adapted axis anchors
3224
3242
|> Chart.withXAxis (xAxis,(StyleParam.SubPlotId.XAxis(i +1)))// set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later)
3225
3243
|> Chart.withYAxis (yAxis,(StyleParam.SubPlotId.YAxis(i +1)))// set previous axis with adapted id (one individual axis for each subplot, whether or not they will be used later)
3226
-
|> GenericChart.mapLayout (fun l ->
3227
-
if i >0then
3228
-
// remove default axes from consecutive charts, otherwise they will override the first one
// remove all scenes from layout. Only one scene is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine.
// remove all polar subplots from layout. Only one polar subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine.
// remove all smith subplots from layout. Only one smith subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine.
// remove all geo subplots from layout. Only one geo subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine.
// remove all mapbox subplots from layout. Only one mapbox subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine.
// remove all ternary subplots from layout. Only one ternary subplot is supported per grid cell, and leaving anything else on this layout may lead to property name clashes on combine.
/// ATTENTION: when the individual rows do not have the same amount of charts, they will be filled with dummy charts TO THE RIGHT.
3350
3400
///
3351
3401
/// prevent this behaviour by using Chart.Invisible at the cells that should be empty.
3402
+
///
3403
+
/// For each input chart, a corresponding subplot cell is created in the grid. The following limitations apply to the individual grid cells:
3404
+
///
3405
+
/// - only one pair of 2D cartesian axes is allowed per cell. If there are multiple x or y axes on an input chart, the first one is used, and the rest is discarded (meaning, it is removed from the combined layout).
3406
+
/// if you need multiple axes per grid cell, create a custom grid by manually creating axes with custom domains instead.
3407
+
/// The new id of the axes corresponds to the number of the grid cell, e.g. the third grid cell will contain xaxis3 and yaxis3
3408
+
///
3409
+
/// - For other subplot layouts (Cartesian3D, Polar, Ternary, Geo, Mapbox, Smith), the same rule applies: only one subplot per grid cell, the first one is used, the rest is discarded.
3410
+
/// The new id of the subplot layout corresponds to the number of the grid cell, e.g. the third grid cell will contain scene3 etc.
3411
+
///
3412
+
/// - The Domain of traces that calculate their position by domain only (e.g. Pie traces) are replaced by a domain pointing to the new grid position.
3413
+
///
3414
+
/// - If SubPlotTitles are provided, they are used as the titles of the individual cells in ascending order. If the number of titles is less than the number of subplots, the remaining subplots are left without a title.
3352
3415
/// </summary>
3353
3416
/// <param name ="SubPlotTitles">A collection of titles for the individual subplots.</param>
3354
3417
/// <param name ="SubPlotTitleFont">The font of the subplot titles</param>
@@ -3453,6 +3516,19 @@ type Chart =
3453
3516
)
3454
3517
3455
3518
/// Creates a chart stack (a subplot grid with one column) from the input charts.
3519
+
///
3520
+
/// For each input chart, a corresponding subplot cell is created in the column. The following limitations apply to the individual grid cells:
3521
+
///
3522
+
/// - only one pair of 2D cartesian axes is allowed per cell. If there are multiple x or y axes on an input chart, the first one is used, and the rest is discarded (meaning, it is removed from the combined layout).
3523
+
/// if you need multiple axes per grid cell, create a custom grid by manually creating axes with custom domains instead.
3524
+
/// The new id of the axes corresponds to the number of the grid cell, e.g. the third grid cell will contain xaxis3 and yaxis3
3525
+
///
3526
+
/// - For other subplot layouts (Cartesian3D, Polar, Ternary, Geo, Mapbox, Smith), the same rule applies: only one subplot per grid cell, the first one is used, the rest is discarded.
3527
+
/// The new id of the subplot layout corresponds to the number of the grid cell, e.g. the third grid cell will contain scene3 etc.
3528
+
///
3529
+
/// - The Domain of traces that calculate their position by domain only (e.g. Pie traces) are replaced by a domain pointing to the new grid position.
3530
+
///
3531
+
/// - If SubPlotTitles are provided, they are used as the titles of the individual cells in ascending order. If the number of titles is less than the number of subplots, the remaining subplots are left without a title.
3456
3532
/// </summary>
3457
3533
/// <param name ="SubPlotTitles">A collection of titles for the individual subplots.</param>
3458
3534
/// <param name ="SubPlotTitleFont">The font of the subplot titles</param>
0 commit comments