Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Doc: clarify default parameters in scatter docs #12353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

ImportanceOfBeingErnest
Copy link
Member

PR Summary

The default color of the markers in the scatterplot docstring was said to be "b". That's wrong and led to some confusion.
This PR explains the default more in detail, and also documents the default for marker correctly.

(I couldn't test this locally, due to #12352, hence tests may fail.)

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@@ -4040,10 +4040,18 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
matching will have precedence in case of a size matching with *x*
and *y*.

marker : `~matplotlib.markers.MarkerStyle`, optional, default: 'o'
Defaults to ``None``. In that case the marker color is determined
by the value of ``color``, ``facecolor`` or ``facecolors``. In case
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a remark to the future: We use *color* instead of ``color`` for markup of arguments in the docs: https://matplotlib.org/devel/documenting_mpl.html#id4

dstansby added a commit that referenced this pull request Oct 3, 2018
…353-on-v3.0.x

Backport PR #12353 on branch v3.0.x (Doc: clarify default parameters in scatter docs)
jklymak added a commit that referenced this pull request Oct 3, 2018
…353-on-v3.0.0-doc

Backport PR #12353 on branch v3.0.0-doc (Doc: clarify default parameters in scatter docs)
@ImportanceOfBeingErnest ImportanceOfBeingErnest deleted the doc-scatterdefaults branch February 17, 2019 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants