pshistogram - annotations plotted beneath bar
|Target version:||Candidate for next bugfix release|
When plotting histograms with pshistogram and annotating each bar with the count it represents (-D), parts of the annotation (if wide enough) may plot beneath neighbouring bars. You can increase the bin width (-W) to make the bars wide enough for the annotation to fit, but this is not always desirable.
pshistogram -W2 -D -JX15c data.txt -L1 -Bafg/afg -R0/100/0/60 -F -Gred > histogram.ps
generates histogram.ps using data.txt.
Using GMT 5.2.1 (r15220).
- Status changed from New to Feedback
- Assignee set to Paul
You can rotate the annotations with -D+r and then, depending on font size and bar width, they are not covered up. However, there is obviously some limitation here depending on desired font, magnitude of the counts, and the physical width of a bar in your projection. I can delay the plotting of the labels until all the bars are plotted [right now each label is plotted after each bar, leading to the masking]. That would eliminate the masking out of the strings but of course they would still overlap onto neighboring bars. Is this an OK solution? Did you have any particular suggestion on how to make this better?