Feature #421

Placement of text with pstext -M

Added by Kristof about 4 years ago. Updated about 3 years ago.

Status:ClosedStart date:2013-10-28
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next minor release
Platform:Linux

Description

There seems to be no way to align the resulting box of pstext -M other than centered on the given coordinate. Sure, I can shift the box using -D[j|J], but there is no "real" aligning like LB (for *L*eft *B*ottom) or CT which I'm trying to achieve. The only thing I get can be seen in the attached screenshot or the sample script.

In the current result, the box is centered on 130/30, but I want alignment of the box as explained in man pstext > textfiles Quote: "The alignment refers to the part of the text string that will be mapped onto the (x,y) point. Choose a 2 character combination of L, C, R (for left, center, or right) and T, M, B for top, middle, or bottom. e.g., BL for lower left."

Is there a way to achieve this? I'm using GMT Version 5.0.1b_r12393 on Ubuntu 12.10 (GNU/Linux 3.5.0-34-generic i686)

All the best,
Kristof

comboxtest.sh Magnifier - Basic script (495 Bytes) Kristof, 2013-10-28 11:16

comboxtest.png - Screenshot of comboxtest.sh output (54.2 KB) Kristof, 2013-10-28 11:16

Associated revisions

Revision 13599
Added by Paul about 3 years ago

Add comments as per issue #421

History

#1 Updated by Florian about 4 years ago

  • Target version changed from 5.1.0 to Candidate for next minor release

#2 Updated by Paul almost 4 years ago

  • Status changed from New to In Progress

Sorry it took this long to have a look at this. I am confused. When I add +jCT to the -F option it aligns as requested. I see your script did not do this though. Let me now if +j<just> works for you too.

#3 Updated by Kristof almost 4 years ago

Hi Paul,

thank you for looking into this. As already written on issue #416, I'm currently on a field trip in New Zealand until mid March and have only spotty to none connectivity. I'll examine it further when back home.

All the best,
Kristof

#4 Updated by Kristof over 3 years ago

Hi Paul,

I had a moment enroute home to look into it. I have to admit that it is a case of PEBCAK. Shame on me. +jCT works as described by you. It seems I was confused with the aligning possibilities in the -F and -M options.

One minor thing I noticed is that it did not take into account the clearance to the surrounding box but aligned it at the text. I countered that with a little -D adjustment.

Thank you for your help and patience.

All the best,
Kristof

#5 Updated by Kristof over 3 years ago

Please close this issue as the program works as desired als long as the human tells it the right things.

May I suggest a little clarification in the man-page for pstext -M that the -F option works on the box and the options in the text-file work on the text in the paragraph itself?

- Kristof

#6 Updated by Paul about 3 years ago

  • Status changed from In Progress to Closed
  • Assignee set to Paul
  • % Done changed from 0 to 100

I added clarification to the pstext man page (r13599) and closed this issue.

Also available in: Atom PDF