Skip to content

Hacktoberfest: Contribute a color style or palette #1315

@swharden

Description

@swharden

This issue describes how to submit a Style or Palette to ScottPlot and indicates expectations for pull request.

See the Hacktoberfest 2021 issue (#1274) for additional project ideas for new contributors.

colorset2

Rules for Submitting Pull Requests (PRs)

  • ⚠️ Include a screenshot of the demo application displaying the style or palette you are contributing
  • ⚠️ Run autoformat.bat to auto-format your code before submitting it
  • ⚠️ If colors were sourced from somewhere else, indicate the original source as a code comment

How to Contribute a Palette

A Palette is a set of default colors that gets applied to data as it is added to the plot.

  • Add a palette by creating a class in src/ScottPlot/Palettes/
  • Mimic the namespace and class structure of existing palettes like Aurora.cs
  • View your palette using the ScottPlot demo application and include a screenshot with your pull request

Palettes can be sourced from other similar libraries (but indicate source as a code comment):

How to Contribute a Style

A Style is a set of colors that control the way the plot looks (background color, tick label colors, grid line colors, etc.)

How to Run the Demo Application

  • Install Visual Studio (free)
  • Open src/ScottPlot.sln
  • In the Solution Explorer, right-click the WinForms Demo application and select Set as Startup Project
  • Press F5 to compile and launch the demo application
  • The style browser can be launched using the button at the bottom of the list
Solution Explorer Demo Application Style Browser
image image colorset2

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueThis issue has limited complexity and may be a good start for new contributors

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions