-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
[Doc]: Improve examples in documentation #22266
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
Comments
Thanks for the feedback. First, Second, what is your familiarity with Matplotlib? Have you read our Basic Usage tutorial so you know some of the basic concepts? https://matplotlib.org/stable/tutorials/introductory/usage.html We can't go into gory detail in every docstring... Third, if you have specific suggestions about what could be improved in the Finally the linked example is showing one esoteric use of |
Thanks for clearing that @jklymak . I am a beginner and clearly I need more experience with matplotlib. I Hope to make contributions to matplotlib in the near future. Thank you. |
Also closes matplotlib#22266 by using *sizes* instead of *s* and spelling out the color to make their meaning clearer.
Also closes matplotlib#22266 by using *sizes* instead of *s* and spelling out the color to make their meaning clearer.
Also closes matplotlib#22266 by using *sizes* instead of *s* and spelling out the color to make their meaning clearer.
Remove "Scatter plot with pie chart markers". This is only a variant of path-as-custom-symbol, which is already covered here. Also, all pie markers in the scatter plot have the same data distribution, so the pie is more a style thing and cannot convey additional datapoint-specific information. Also closes matplotlib#22266 by using *sizes* instead of *s* and spelling out the color to make their meaning clearer.
Documentation Link
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.scatter.html
Problem
housing.plot(kind="scatter", x="longitude", y="latitude", alpha=0.4, s=housing["population"]/100, label="population", figsize=(10,7), c="median_house_value", cmap=plt.get_cmap("jet"), colorbar=True, )
I recently found the above code on Jupyter notebook and I referred matplotlib documentation in order to understand about the parameter s, c and alpha. But, I found it difficult to understand about these parameters, and found it unclear due to lack of explanation in the examples provided. The examples provided just has code and no explanation of the parameters.
Suggested improvement
For Example: in this https://matplotlib.org/stable/gallery/lines_bars_and_markers/scatter_symbol.html#sphx-glr-gallery-lines-bars-and-markers-scatter-symbol-py page, you can provide different values of alpha like (0.5,0.2,08) in order to show how the output differs.
Matplotlib Version
3.5.0
The text was updated successfully, but these errors were encountered: