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

Add :code-caption: option to plot directive#30741

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
duncanmmacleod wants to merge1 commit intomatplotlib:main
base:main
Choose a base branch
Loading
fromduncanmmacleod:plot-directive-code-caption

Conversation

@duncanmmacleod
Copy link
Contributor

PR summary

This PR by adding a:code-caption: option to the.. plot RST directive:

..plot:::include-source::code-caption: Simple line plot    import matplotlib.pyplot as plt    plt.plot([1, 2, 3], [1, 4, 9])    plt.xlabel('X axis')    plt.ylabel('Y axis')    plt.title('Simple Plot')

Closes#30740

PR checklist

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[ENH]: Support caption for code block in sphinx plot directive

1 participant

@duncanmmacleod

[8]ページ先頭

©2009-2025 Movatter.jp