Coder Social home page Coder Social logo

Comments (3)

PaulWessel avatar PaulWessel commented on June 19, 2024

Good question. Looking at the code we determine the size of the legend box in two different ways:

  1. Via -D+wwidth[/height] which specifically determines the dimensions. Here, height is set to width if not given (square legend box).
  2. With no explicit dimensions given then we determine the required dimensions using PostScript operators based on the contents of the label and create the PostScript parameters PSL_legend_label_width and PSL_legend_box_height. These are then used internally to draw the box.

Now, the -Cdx[/dy] option can be used to extend the box in two ways. I will update the doc syntax to show that dx is optional and set to dx if not given, like in most places in GMT.

Then we have the -F+cclearance modifier which seems to overlap with -C here. Certainly, makes little sense to me to allow both at the same time. I think the intent for +c was to allow more flexibility in even adding specific clearance that differ on all four sides. Perhaps adding space where a color bar might fit.

I will test the behaviour of not allowing both -C and -F+c in the same command. I think that is the only sensible solution since -C cannot fully replicate +c's flexibility anyway.

from gmt.

Esteban82 avatar Esteban82 commented on June 19, 2024

This was fixed by #8305, right?

from gmt.

PaulWessel avatar PaulWessel commented on June 19, 2024

Yes

from gmt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.