matplotlib / matplotlib/matplotlib

[ENH]: dashed hatching pattern

Open
#27,170 6 comments 0 reactions 0 assignees View on GitHub

@ShivamPathak99 is already working on this.

Since Apr 13, 2024.

  • #28072 by @ShivamPathak99 — open
New feature topic: hatch
Dominant language
Python
Stars
23.2k
Forks
8.5k
Avg merge
1d 6h
Merged PRs (30d)
66

Description

### Problem

I've recently seen a plot with a dashed hatching style and was wondering if there's a case for adding such a style to matplotlib? Especially that we've got dotted hatching already available and this seems to be similar.

![image](https://github.com/matplotlib/matplotlib/assets/8880777/0afd5e9e-a8e1-4b47-8b10-71aa4c5dc5b5)

Source: https://twitter.com/DataVizStefan/status/1714930118781530248/photo/1

### Proposed solution

I don't have the exact solution but matplotlib allows to create all sorts of fancy edge line styles so I'd imagine the technical ability of the library to implement this request is there.

https://matplotlib.org/stable/gallery/lines_bars_and_markers/linestyles.html

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the open pull request #28072 alongside the issue’s dashed-hatching request and the linked Matplotlib linestyles gallery. Use the pull request as the current implementation context, then identify the relevant hatching behavior and any validation it provides; done means the proposed style is implemented and its behavior is covered by the project’s checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.