-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #453 from plotly/fix-grid
Improve chart grids
- Loading branch information
Showing
16 changed files
with
936 additions
and
61 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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"]) |
Oops, something went wrong.