Fix RectangularStrategy() results if get_grid() argument is prime

Open
#50 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
matplotlib, python

Research direction

Start by locating RectangularStrategy and the get_grid() entry point in the repository, then reproduce the layout with a prime N greater than 3. Inspect any existing tests for grid arrangements. Done means prime-sized requests no longer produce an unusable one-row grid for larger primes, with the expected layout covered by a test.

Written by the indexing model from the issue text.

Description

RectangularStrategy, if get_grid takes in prime N, creates a one-row by N cols plots grid. This poses an issue with larger prime numbers (N > 3)

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.