-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- remove all existing axes/subplot layouts before adding a single new one each per respective grid cell - add tests
- Loading branch information
Showing
8 changed files
with
182 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
tests/Common/FSharpTestBase/TestCharts/FeatureAdditions/Fix_3d_GridPosition.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module Fix_3d_GridPosition | ||
|
||
open Plotly.NET | ||
open Plotly.NET.TraceObjects | ||
open Plotly.NET.LayoutObjects | ||
open DynamicObj | ||
|
||
// https://github.com/plotly/Plotly.NET/issues/413 | ||
|
||
module ``Remove all existing subplots from individual charts on grid creation #413`` = | ||
|
||
let ``2x2 grid with only 3D charts and correct scene positioning`` = | ||
[ | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
] | ||
|> Chart.Grid(2,2, SubPlotTitles = ["1";"2";"3";"4"]) | ||
|
||
let ``2x2 grid chart creation ignores other scenes`` = | ||
[ | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
|> Chart.withScene(Scene.init(), Id = 2) | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
|> Chart.withScene(Scene.init(), Id = 420) | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
|> Chart.withScene(Scene.init(), Id = 69) | ||
Chart.Point3D(xyz = [1,3,2], UseDefaults = false) | ||
|> Chart.withScene(Scene.init(), Id = 1337) | ||
] | ||
|> Chart.Grid(2,2, SubPlotTitles = ["1";"2";"3";"4"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.