Repository navigation
Conversation
Combine the four separate figures in the "Change line attributes" section into a single figure showing the pen width, color and style, annotated with the corresponding pen arguments, to avoid repetition with the "Line styles" gallery example. Extend the "Connect points in different ways" section to use more data points and to show the +s modifier of the pen parameter (Bezier cubic spline) next to the linear spline and the stair-like connections created via the straight_line parameter. Fixes GenericMappingTools#3747.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of proposed changes
This PR improves the basic tutorial "Plotting lines" (
examples/tutorials/basics/lines.py) following the suggestions in #3747, while keeping the scope suitable for a basic tutorial (as noted in the issue discussion):pen, and the text explains the order of the width, color, style attributes and their defaults. The link to the "Line styles" gallery example is kept.pen(Bezier cubic spline) next to the default linear spline and the twostraight_lineoptions ("x"and"y").sphinx_gallery_thumbnail_numberis updated since the tutorial now has fewer figures.More advanced content (e.g. sine/cosine curves) is left out to keep this a basic tutorial.
Fixes #3747
Preview:
Testing
Ran
pytestin a clean Linux container: it did not pass (details on request).Guidelines
Slash Commands
You can write slash commands (
/command) in the first line of a comment to performspecific operations. Supported slash command is:
/format: automatically format and lint the codeThis PR was prepared with AI assistance (Claude) and reviewed by me before submitting.