Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[GSoD] refine gallery examples (titles, scope, link)#26456

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
esibinga wants to merge2 commits intomatplotlib:main
base:main
Choose a base branch
Loading
fromesibinga:link-to-user-guide
Open
Show file tree
Hide file tree
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
NextNext commit
small cleanup projects:
- add link to axes intro in user guide- remove text that doesn't belong in gallery example- add descriptive titles to dolphins, donuts, and firefox
  • Loading branch information
@esibinga
esibinga committedAug 4, 2023
commitc21f5a5fe9ab30de3d9ea07d16897310bf4d3abf
27 changes: 1 addition & 26 deletionsgalleries/examples/color/color_demo.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -3,32 +3,7 @@
Color Demo
==========

Matplotlib recognizes the following formats to specify a color:

1) an RGB or RGBA tuple of float values in ``[0, 1]`` (e.g. ``(0.1, 0.2, 0.5)``
or ``(0.1, 0.2, 0.5, 0.3)``). RGBA is short for Red, Green, Blue, Alpha;
2) a hex RGB or RGBA string (e.g., ``'#0F0F0F'`` or ``'#0F0F0F0F'``);
3) a shorthand hex RGB or RGBA string, equivalent to the hex RGB or RGBA
string obtained by duplicating each character, (e.g., ``'#abc'``, equivalent
to ``'#aabbcc'``, or ``'#abcd'``, equivalent to ``'#aabbccdd'``);
4) a string representation of a float value in ``[0, 1]`` inclusive for gray
level (e.g., ``'0.5'``);
5) a single letter string, i.e. one of
``{'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}``, which are short-hand notations
for shades of blue, green, red, cyan, magenta, yellow, black, and white;
6) a X11/CSS4 ("html") color name, e.g. ``"blue"``;
7) a name from the `xkcd color survey <https://xkcd.com/color/rgb/>`__,
prefixed with ``'xkcd:'`` (e.g., ``'xkcd:sky blue'``);
8) a "Cn" color spec, i.e. ``'C'`` followed by a number, which is an index into
the default property cycle (:rc:`axes.prop_cycle`); the indexing is intended
to occur at rendering time, and defaults to black if the cycle does not
include color.
9) one of ``{'tab:blue', 'tab:orange', 'tab:green', 'tab:red', 'tab:purple',
'tab:brown', 'tab:pink', 'tab:gray', 'tab:olive', 'tab:cyan'}`` which are
the Tableau Colors from the 'tab10' categorical palette (which is the
default color cycle);

For more information on colors in matplotlib see
For more in-depth information on colors in matplotlib see

* the :ref:`colors_def` tutorial;
* the `matplotlib.colors` API;
Expand Down
4 changes: 2 additions & 2 deletionsgalleries/examples/shapes_and_collections/dolphin.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
"""
========
Dolphins
Draw and manipulate dolphin shape
========

This example shows how to draw, and manipulate shapes given vertices
This example shows how to draw and manipulate shapes, given vertices
and nodes using the `~.path.Path`, `~.patches.PathPatch` and
`~matplotlib.transforms` classes.
"""
Expand Down
4 changes: 2 additions & 2 deletionsgalleries/examples/shapes_and_collections/donut.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
r"""
=============
Mmh Donuts!!!
Draw Donuts with Path and PathPatch
=============

Draw donuts (miam!) using `~.path.Path`\s and `~.patches.PathPatch`\es.
Mmh... draw donuts (miam!) using `~.path.Path`\s and `~.patches.PathPatch`\es.
This example shows the effect of the path's orientations in a compound path.
"""

Expand Down
2 changes: 2 additions & 0 deletionsgalleries/examples/showcase/anatomy.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,6 +4,8 @@
===================

This figure shows the name of several matplotlib elements composing a figure

To see detailed information, see :ref:`axes_intro`.
Copy link
Member

Choose a reason for hiding this comment

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

From the docs build

/home/circleci/project/doc/gallery/showcase/anatomy.rst:30: WARNING: undefined label: 'axes_intro'

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Toseedetailedinformation,see :ref:`axes_intro`.
Toseedetailedinformation,see :doc:`axes_intro`.

axes_intro doesn't have a label - probably should but that's a separate issue.https://github.com/matplotlib/matplotlib/blob/main/galleries/users_explain/axes/axes_intro.rst?plain=1

"""


Expand Down
2 changes: 1 addition & 1 deletiongalleries/examples/showcase/firefox.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
"""
=======
Firefox
Firefox logo with path and patches
=======

This example shows how to create the Firefox logo with path and patches.
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp