Skip to content

Refactor Grid system#3497

Merged
swharden merged 8 commits intomainfrom
20240317-grid
Mar 17, 2024
Merged

Refactor Grid system#3497
swharden merged 8 commits intomainfrom
20240317-grid

Conversation

@swharden
Copy link
Member

@swharden swharden commented Mar 17, 2024

This PR deeply refactors the grid system to simplify how users interact with and customize the grid, as well as improving support for axis-specific grid customization and addition of custom grid systems. Many styling strategies are being simplified along the way.

myPlot.Add.Signal(Generate.Sin(51));
myPlot.Add.Signal(Generate.Cos(51));

myPlot.Grid.XAxisStyle.MajorLineStyle.Color = Colors.Magenta.WithAlpha(.1);
myPlot.Grid.XAxisStyle.MajorLineStyle.Width = 5;

myPlot.Grid.YAxisStyle.MajorLineStyle.Color = Colors.Green.WithAlpha(.3);
myPlot.Grid.YAxisStyle.MajorLineStyle.Width = 2;

image

@swharden swharden marked this pull request as ready for review March 17, 2024 17:14
@swharden swharden merged commit ec04749 into main Mar 17, 2024
@swharden swharden deleted the 20240317-grid branch March 17, 2024 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SP5: Grid needs axis-specific customization of styling SP5 Grid: needs refactoring

1 participant