Bug #643

psxy -SBb with dates

Added by Christian over 2 years ago. Updated over 2 years ago.

Status:ClosedStart date:2014-11-13
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next bugfix release
Affected version:5.x-svn Platform:

Description

Hi GMTeam

when using psxy's horizontal bar symbol I cannot set the base to a certain date when using time as one axis (x). Example below

Cheers,
Christian

gmt psxy -R2014-01-01T/2014-12-31T/0/20 -JX15/-10 -Bpxf7dd -Ba1 -BWeSN -Bsxa1Og1o+l"2014" -V -SB0.5b <<END > test.ps 
> -G125
2014-10-30 1 2014-03-15
END
open test.ps

Associated revisions

Revision 13692
Added by Paul over 2 years ago

Fix issue #643

Revision 13693
Added by Paul over 2 years ago

Fix other issues where the base or size for symbols need need to be read vai GMT_scanf. i.e. issue #643

History

#1 Updated by Paul over 2 years ago

  • Status changed from New to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next bugfix release
  • % Done changed from 0 to 100

Yes, the i/o machinery was not told that the extra column would be of the same kind as the x-coordinates (i.e., abs time). Fixed in both psxy and psxyz in r13692. Let me know that it works for you. Note your -Ba1 option is causing trouble, use -Bya1.

#2 Updated by Christian over 2 years ago

Hi Paul,

works as expected, thanks for the quick fix.

One related question though: Putting the symbol information into the input data like in the example below doesn't seem to work as the base is again not set.

gmt psxy -R2014-01-01T/2014-12-31T/0/20 -JX15/-10 -Bpxf7dd -Bya1 -BWeSN -Bsxa1Og1o+l"2014" -V  -S <<END > test.ps 
> -G125
2014-10-30 1 0.5 Bb2014-03-15
END

Thanks,
Christian

#3 Updated by Paul over 2 years ago

OK, will have a look. Probably same issue but different context.

#4 Updated by Paul over 2 years ago

Thanks, I changed several instances related to bars, columns, and more where we have to be more careful converting the given text to a value since those values may be time or latitude or whatever. In r13693, your example works for me.

#5 Updated by Paul over 2 years ago

  • Status changed from Resolved to Closed

Closing this issue.

Also available in: Atom PDF