-
Notifications
You must be signed in to change notification settings - Fork 958
Description
ScottPlot is participating in Hacktoberfest 2022! 🚀
Our community is friendly to new developers and first-time contributors!
If you have questions about contributing, feel free to ask here the ScottPlot Discord at https://scottplot.net/discord
To get started visit: https://hacktoberfest.com/participation
Contribution Ideas
Contribute a New Color Palette
Color palettes are a collection of several colors. ScottPlot can be configured to use a custom palette to color new items as they are added to the plot. See Cookbook: how to use a custom palette and the full list of color palettes for more information.
To create a new color palette:
- Create a new file in
src/ScottPlot4/ScottPlot/Palettes/
- Mimic code from the Dark palette in ScottPlot/Palettes/Dark.cs
- A code comment at the top can indicate the contributor and/or the source of the palette
- See your palette in action by running the demo application
Ideas for new color palettes may be sourced from:
- https://color.adobe.com/explore
- http://tsitsul.in/blog/coloropt/ (adding
xgfs_tarnish6
would be great)
Contribute a New Style
Styles are like themes that describe colors of the plot background, grid lines, labels, etc. A light theme is the default, but users can customize themes.
- Create a new file in
src/ScottPlot4/ScottPlot/Styles/
- Mimic code from Blue1.cs
- See your palette in action by running the demo application
Add a Cookbook Recipe
The ScottPlot Cookbook (https://scottplot.net/cookbook/4.1/) is generated from code examples in src/ScottPlot4/ScottPlot.Cookbook/Recipes
. To add a new cookbook recipe, edit one of the files and add a class.
Example cookbook recipe: Scatter Plot Quickstart
Example code for that recipe: Scatter.cs#L8-L29
Improve Cookbook Recipe Documentation
Cookbook descriptions and code comments may contain typos or confusing language. Contributions improving the clarity of existing cookbook recipes are welcome! Code is in src/ScottPlot4/ScottPlot.Cookbook/Recipes
Improve XML Docs
Many functions have poorly written XML docs or lack XML docs completely. Users interested in improving code documentation are welcome to add XML docs to any function or property! Summary-only XML docs for functions are often acceptable.
Improve the Website
- The website repo: https://github.com/ScottPlot/ScottPlot.NET
- UI/UX designers: We could used improved looking download buttons for the demo page
Advanced Ideas
- Labels for each point in ScatterPlot #2141
- FunctionPlot: Optional X Limits #2156
- Add syntax highlighting to ScottPlot4's demo application
- Add methods to generate test data for 2D arrays in ScottPlot4's DataGen.cs
- Extend ScottPlot5's Heatmap
- Extend ScottPlot5's Colormap
- Add functions to ScottPlot5's Generate.cs
- Signal: add "smooth" option for low density mode #2137
- Add a FAQ page to the website documenting how to create a custom plottable (implementing
IPlottable
) and inject it into a plot usingAdd()
(#10)