Discussion about axes defaults

Open
#667 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
julia

Research direction

Start with the basemap entry point and reproduce the two frame examples from this issue, comparing the generated psbasemap commands. Read the discussion in #665 and the aliases introduced in #666 before deciding the intended default. Done means the frame keyword behavior is agreed and consistently reflected in the generated axes options.

Written by the indexing model from the issue text.

Description

Follow up from #665 , hopefully this can be a bit more organised :)

First: thanks for this package! I'm moving as much of my data processing to Julia as possible, and it's so convenient to make nice maps from the Julia shell.


The default behaviour of axes seems to depend on the frame option. Example:

julia> basemap(region = (-90, -70, 0, 20), Vd = 2)
	psbasemap  -R-90/-70/0/20 -JX14c/0 -Baf -BWSen -P -K > /tmp/GMTjl_tmp.ps

julia> basemap(region = (-90, -70, 0, 20), frame = (annot = :auto, ticks = :auto), Vd = 2)
	psbasemap  -R-90/-70/0/20 -JX14c/0 -Bpaf -P -K > /tmp/GMTjl_tmp.ps

In the second case, there is no -BWSen so now all axes are annotated. With the introduction of #666 and similar aliases, we would already have e.g. frame = :full for doing that. So maybe frame = (kwargs...) where kwargs does not contain axes should also produce the -BWSen behaviour?

Dominant language
Julia
Stars
222
Forks
35
Avg merge
8h 1m
Merged PRs (30d)
9

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 GenericMappingTools/GMT.jl

All issues in GenericMappingTools/GMT.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.