Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Allow users to specify an aspect ratio for SquareStrategy

Open
#51 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

Start by reading the existing SquareStrategy implementation and the discussion in issue #50. Define how a target aspect ratio should be specified, then determine whether RectangleStrategy should become the general implementation while SquareStrategy remains a compatible subclass; the naming and scope need resolution before implementation.

Written by the indexing model from the issue text.

Description

Per my comments in #50, I think we should probably create a version of SquareStrategy that allows you to specify a target aspect ratio other than 1:1.

The nomenclature is all messed up and I'm wondering if we should rename this project and a bunch of the classes in it before too many people start using it, but for now we can just call it RectangleStrategy, and make SquareStrategy a subclass of it.

Dominant language
Python
Stars
44
Forks
16
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from matplotlib/grid-strategy

All issues in matplotlib/grid-strategy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.