OxyPlot is driven by the community and contributors like you. We are excited that you're interested to help us move forward and improve OxyPlot.
The flow when contributing to OxyPlot is as follows:
- Add issue (bug or new feature)
- If the issue needs to be clarified, wait for some feedback
- Commit your changes
- Update the change log and contributors files
- Create a pull request
Note that your contributions must be your own work and licensed under the same terms as OxyPlot.
First, search the issue tracker to see if the bug is already there.
It is very helpful to get the generated code (use CTRL+ALT+C
in the plot control) and report (CTRL+ALT+R
) of the bug plot. You can also take a screen shot and paste it into the description.
Please use markdown to format your code blocks with syntax highlighting to make it easier for everyone to read.
You could also use services like https://snipt.org or https://gist.github.com to share code snippets.
A bug report should include:
- the platform you are building for (Windows Forms, WPF, Xamarin Forms etc.)
- the framework version (netcore3, net47 etc.)
- the version of OxyPlot you are using
- description of the issue
- sample code to reproduce the issue
- what you expect and what is the actual behaviour
First, search the issue tracker to see if the feature is already there.
A feature request should include:
- description of the feature
- a drawing/image, if possible
It could be a good idea to wait for some feedback before starting to work on a new feature. Not all features are general enough to fit into this library. We don't want you to waste time on something that might not be merged in the end.
- Log in to GitHub and open the oxyplot origin repository. Click the "Fork" button to create your own fork of the repository.
- Create a clone on your local system:
git clone https://github.com/yourusername/oxyplot.git
The repository contains two branches:
master
- the release branch (stable channel)develop
- the main branch with the latest development changes (pre-release channel)
You should base your work on the develop
branch.
See A successful git branching model for more information about the branching model in use.
Create a branch for the bugfix/feature you want to work on: git branch bugfix-some-error
Checkout the branch: git checkout bugfix-some-error
Before you start committing, please define your full name and e-mail address in git.
Please follow the style of the other messages in the commit history. Explain the intentions for the change and include the issue number. Include the issue number in the commit message, e.g. "#9945".
Please follow the coding-style:
- write StyleCop compliant code
- include XML comments for all methods, properties and fields
- do not use #regions
- use linq method syntax (not query syntax)
- keep it simple
To commit your changes, use the git command: git commit -m <msg>
When you are ready to make a pull request, please
More info about rebasing
- https://git-scm.com/book/en/v2/Git-Branching-Rebasing
- https://blog.sourcetreeapp.com/2012/08/21/merge-or-rebase/
- https://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
- https://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one/
- https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
- https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase-i
Finally, push your commits: git push
- Include the issue number
- Include examples or unit tests for the change / new feature
- Update the CHANGELOG.md file
- Update the CONTRIBUTORS and AUTHORS files if you are not already listed there
- Open the GitHub page for your fork and create a "Pull Request" (PR)
When the PR is submitted, a build will automatically be trigged. A team member will then review the PR, and merge the branch if everything looks OK.
If there are some issues with the PR, you should
- update your code and commit changes
- clean up the git history with rebase or squash
- force push:
git push -f
The PR will be updated automatically when you push your changes.
The documentation is located in the docs repository. See the README.md file for information about how to build the documentation. Please contribute by creating pull requests!
The source of the oxyplot.github.io web site can be found in the oxyplot.github.io repository. Please contribute by creating pull requests!
The web-site is built by GitHub with Jekyll.
To prevent the issue (backlog) list to grow indefinitely, an issue will be closed when you are not responding to requests by a project developer. We need your help, so we will not close an issue by desire. But when you are not answering to a request by for a month we will close the issue. If this happens in accident, feel free to re-open the issue...
The issue reporter can close the issue because:
- he/she verified the fix/change
- found out that it is not an OxyPlot issue but some problem in his/her code
In case the reporter does not respond to a request:
- a project developer is allowed to close the issue (after one month)
Someone can take over the issue from the reporter, when:
- he/she can reproduce the issue
- has some sample code
- has more time/information to assist in the resolution
- responds to requests by a project developer