Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Themes for default settings #2290

Closed
PaulWessel opened this issue Dec 16, 2019 · 3 comments
Closed

Themes for default settings #2290

PaulWessel opened this issue Dec 16, 2019 · 3 comments
Labels
feature request Request a new feature

Comments

@PaulWessel
Copy link
Member

Description of the desired feature

We discussed this in the past but took no actions. I think lumping a group of GMT defaults together and give them a name (a theme) can be helpful to users. For instance, the current defaults would be called "classic" while we could add a set of new ones with other names. For instance, our map frame defaults is due for an upgrade, such as adding "auto" to the MAP_FRAME_WIDTH settings so that it scales with the map size (when users plot a 5x5 cn figure for Nature it looks bad for GMT that the frame is still 5p regardless of the small map. Other things may be to have a them for inside ticks and annotations, maybe change up some annotation fonts, and maybe have a theme suitable for white on black for presentations.

Implementation would simply be via a new parameter called GMT_THEME and when that setting is given via gmt set we (a) reset to system defaults and (b) apply the collection of settings grouped under that theme.

It is unfortunate that we did not create the "modern" theme but I still think we should and make it default in modern mode.

@seisman
Copy link
Member

seisman commented Dec 17, 2019

Good idea. GMT should provide some built-in themes and also allow users define their own themes.

@seisman seisman added the feature request Request a new feature label Dec 18, 2019
@PaulWessel
Copy link
Member Author

Realizing that a movie theme would be good since some defaults are not very good for movies. For instance, see #3341, and I find the defaults for -X -Y usually need to be overridden and COLOR_HSV_MIN_V I usually need to set to 0. So these themes would be good:

  1. classic: What we default to now, basically.
  2. modern: Revamp some settings as discussed above
  3. movie: Pick suitable defaults for a (relatively) low-resolution raster (most of our defaults work well for PS and PDF).
  4. darkmode: Why not: white (or bright) text colors and lines, dark/black paper, etc.

Since a theme is basically a list of gmt.conf settings it should be easy to implement. We provide a few themes and users can add their own in ~/.gmt. I will work on this as I think introducing the modern theme is overdue.

@maxrjones
Copy link
Member

Implemented by #3344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Request a new feature
Projects
None yet
Development

No branches or pull requests

3 participants