Let map roses have a default size of 10% of map width#6212
Let map roses have a default size of 10% of map width#6212PaulWessel merged 4 commits intorose-adjustmentfrom
Conversation
This PR makes +wwidth optional for magnetic and directional roses. if not given we default to 10% of the map width. Alternatively, give +w with % as unit to change this value. Closes #6211
|
Note this bug/feature which is separate from this PR:
We do not adjust the offset when the N label is requested. I will fix this in another PR I think. |
|
Same/worse if I add +f for fancy. |
Esteban82
left a comment
There was a problem hiding this comment.
It works. We should define the default values.
|
OK, done. I hope you based your suggestion on the symbols and not the text since another PR will fix the too-large font sizes. |
|
I do it based on the spacing of the tickmarks. BTW what do you think in similar feature for the scale bar ? I.e to have a default length (and unit). |
|
I think we will wait merging this branch until the auto-font size/offset is done. Then we can revisit those percentages. Sure, you can open a feature request for that. |
|
Sorry, could you share your script above so I can use it to test font sizes etc? |
|
|
FYI @Esteban82 I decided to merge this branch into the one doing the justification since I kind of want to see how both work together. |
* Correct rose position for label size Also, for modern mode reset the text font and offset based on symbol size. * Do alignment in PSL Also add test script dir_roses.sh * more documentation * Update gmt_plot.c * Update gmt_plot.c * Update gmt_plot.c * Let map roses have a default size of 10% of map width (#6212) * Let map roses have a default size of 10% of map width This PR makes +wwidth optional for magnetic and directional roses. if not given we default to 10% of the map width. Alternatively, give +w with % as unit to change this value. Closes #6211 * Set 15 and 8 % as default sizes * Select 20% and 40% for size/offset * Set adjusting for mag compass * Update gmt_plot.c * Add MAP_EMBELLISHMENT_MODE * Add position adjustment for mag rose too * Update gmt_plot.c * Use manual mode for old scripts * Auto offset if not set * Name changes * Exact justification and margins for -Td plain * Minor script updates * comments and larger symbol * Update gmt_plot.c * Name another constant * Restore size of rose * Update GMT_obl_nz.sh * Clean up script * Update gmt_plot.c Comment out a debug section * Update gmt_plot.c * Update explain_-T_rose.rst_

This PR makes +wwidth optional for magnetic and directional roses. if not given we default to 10% of the map width. Alternatively, give +w with % as unit to change this value. Closes #6211.
@Esteban82, please test this a bit, also for magnetic rose (see GMT_App_K_3.sh or GMT_mag_rose.sh for examples). if you think 10% is too small for the magnetic rose let me know - we can always have a different default there.