Missing graticules when scales are missing

Open
#538 1 comment 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 6 days

@teunbrand is already working on this.

Since Sep 9, 2026.

Assessment

This issue has not been assessed yet.

Description

The work in #492 has a regression when only a geometry layer is present and positional scales have not been explicitly provided:

let lon_breaks = match scales.iter_mut().find(|s| s.aesthetic == "pos1") {
    Some(s) => { resolve_map_scale(s, geo_bbox.xrange()); s.numeric_breaks() }
    None => Vec::new(),
};

fails to find the non-existing pos1 scale that hasn't been created because only geometry has been mapped. We need to create default positional scales when they are missing from the mapping so that they can provide default breaks etc

Dominant language
Rust
Stars
575
Forks
33
Avg merge
7d 18h
Merged PRs (30d)
11

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 posit-dev/ggsql

All issues in posit-dev/ggsql

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.