Skip to content
Merged
Show file tree
Hide file tree
Changes from 20 commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
4e4e9f6
Enable painting the xz and yz back-walls in 3-D
PaulWessel Aug 17, 2020
9ad4fc9
Merge branch 'master' into wall-paint
PaulWessel Aug 18, 2020
360437f
Allow the 3-D box not to be plotted on top of figure
PaulWessel Aug 18, 2020
b40c95f
Merge branch 'master' into 3d-box-on-top
PaulWessel Aug 19, 2020
a9dd71e
Switch +B to +w instead for "wall"
PaulWessel Aug 19, 2020
7d3122d
Merge branch 'master' into 3d-box-on-top
PaulWessel Aug 20, 2020
0e18409
Merge branch 'master' into wall-paint
PaulWessel Aug 20, 2020
3a08502
Better parsing and checking for +x +y
PaulWessel Aug 20, 2020
6ac0bc2
Add back-wall pen option via +w[pen]
PaulWessel Aug 20, 2020
752fd86
Merge branch 'wall-paint' into 3d-box-on-top
PaulWessel Aug 20, 2020
898a1a9
Add option to paint back walls
PaulWessel Aug 20, 2020
5350aed
Clean up code
PaulWessel Aug 20, 2020
fa7dbdd
Ensure 3-D title on top
PaulWessel Aug 20, 2020
20d57fa
Finalize xz and yz gridlines
PaulWessel Aug 20, 2020
3bbd139
Fix docs
PaulWessel Aug 20, 2020
cbbcf38
typos
PaulWessel Aug 20, 2020
58d8312
Let wall outline cover up any gridlines in the same place
PaulWessel Aug 20, 2020
bace2d9
Implicitly set +w if z-gridlines selected
PaulWessel Aug 20, 2020
7b6b80b
Draw portal, not box for backwall outlines
PaulWessel Aug 20, 2020
28562a5
let +g set all, while adding +x|y|z for individual control
PaulWessel Aug 20, 2020
18d040b
update docs
PaulWessel Aug 20, 2020
2eae994
Ensure +b sets the wall
PaulWessel Aug 21, 2020
3d75efb
Adjust gridline spacing
PaulWessel Aug 21, 2020
33419e0
Revert gridline choice for now
PaulWessel Aug 21, 2020
1a1fb9e
Merge branch 'master' into 3d-box-on-top
PaulWessel Aug 22, 2020
d9fc4c4
Address meaning of +x +y and set above/below annotation for z-axis
PaulWessel Aug 23, 2020
410efae
remove printstatement
PaulWessel Aug 23, 2020
1e7cb1d
Merge branch 'master' into 3d-box-on-top
PaulWessel Aug 23, 2020
3aa852d
Separate 3-D box lines from wall drawing
PaulWessel Aug 23, 2020
44cf850
Update gmtparse_B_arg_inspector for new +i,w,x,y,z modifiers
PaulWessel Aug 23, 2020
8246898
Update module lists
PaulWessel Aug 23, 2020
9fae472
Revert "Update module lists"
seisman Aug 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 11 additions & 7 deletions doc/rst/source/cookbook/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -287,23 +287,27 @@ tick, and gridline intervals, axes labels, and annotation units.

The Frame settings are specified by

- **-B**\ [*axes*][**+b**][**+g**\ *fill*][**+i**\ [*val*]][**+n**][**+o**\ *lon/lat*][**+t**\ *title*]
- **-B**\ [*axes*][**+b**][**+g**\ *fill*][**+i**\ [*val*]][**+n**][**+o**\ *lon/lat*][**+t**\ *title*][**+w**\ [*pen*]][**+x**\ [*fill*]][**+y**\ [*fill*]]

Here, the optional *axes* dictates which of the axes should be drawn
and possibly annotated. By default, all 4 map boundaries (or plot axes)
and possibly annotated. By default, all four map boundaries (or plot axes)
are plotted (denoted **W**, **E**, **S**, **N**). To change this selection,
append the codes for those you want (e.g., **WSn**). In this example,
the lower case **n** denotes to draw the axis and (major and minor) tick
marks on the "northern" (top) edge of the plot. The upper case **WS** will
annotate the "western" and "southern" axes with numerals and plot the
any axis labels in addition to draw axis/tick-marks. For 3-D plots you can
also specify **Z** or **z**. By default a single vertical axes will then be
also specify **Z** or **z**. To *just* draw an axis without annotation and
ticks you can use the **l**\ (eft), **r**\ (ight), **b**\ (ottom), **t**\ (op)
and (for 3-D) **u**\ (p) codes. By default, a single vertical axes will then be
plotted at the most suitable map corner. You can override this by appending
any combination of corner ids **1234**, where **1** represents the lower left
corner and the order goes counter-clockwise. Append **+b** to draw the outline
of the 3-D box defined by **-R**; this modifier is also needed to display
gridlines in the x–z, y–z planes. You may paint the
map canvas by appending the **+g**\ *fill* modifier [Default is no fill].
corner and the order goes counter-clockwise. Use **+w** to draw the outlines of
the x-z and y-z planes [no outlines] and optionally append the *pen* to use
[:term:`MAP_GRID_PEN_PRIMARY`]. Alternatively, append **+b** to also draw the front lines
of the 3-D cube defined by **-R**. By default the back-walls are transparent.
Use **+x** and **+y** to paint them, using the same fill as the x-y plane if no fill
is appended. You may paint the map canvas by appending the **+g**\ *fill* modifier [Default is no fill].
Use **+i** to annotate an internal meridian or parallel when the axis that normally
would be drawn and annotated does not exist (e.g., azimuthal map with 360-degree range
has no latitude axis, and a global Hammer map has no longitude axis);
Expand Down
22 changes: 12 additions & 10 deletions doc/rst/source/explain_-B_full.rst_
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,24 @@
**-B**\ [**p**\|\ **s**]\ *parameters*
Set map Frame and Axes parameters. The Frame parameters are specified by

**-B**\ [*axes*][**+b**][**+g**\ *fill*][**+i**\ [*val*]][**+n**][**+o**\ *lon/lat*][**+t**\ *title*]
**-B**\ [*axes*][**+b**][**+g**\ *fill*][**+i**\ [*val*]][**+n**][**+o**\ *lon/lat*][**+t**\ *title*][**+w**\ [*pen*]][**+x**\ [*fill*]][**+y**\ [*fill*]]

where *axes* selects which axes to plot. By default, all 4 map boundaries
where *axes* selects which axes to plot. By default, all four map boundaries
(or plot axes) are plotted (named **W**, **E**, **S**, **N**). To customize,
append the codes for those you want (e.g., **WSn**). Upper case means plot
and annotate while lower case just plots and ticks the specified axes.
To *just* draw an axis without annotation and ticks you can use the **l**\ (eft),
**r**\ (ight), **b**\ (ottom), **t**\ (opt) and (for 3-D) **u**\ (p) codes. If a 3-D basemap
is selected with **-p** and **-Jz**, append **Z**, **z**, or **u** to control the
appearance of the vertical axis. By default a single vertical axes will be
plotted at the most suitable map corner. Override the default by appending
**r**\ (ight), **b**\ (ottom), **t**\ (op) and (for 3-D) **u**\ (p) codes.
If a 3-D basemap is selected with **-p** and **-Jz**, append **Z**, **z**, or
**u** to control the appearance of the vertical axis. By default a single vertical
axes will be plotted at the most suitable map corner. Override the default by appending
any combination of corner ids **1234**, where **1** represents the lower left
corner and the order goes counter-clockwise. Append **+b** to draw the outline of the 3-D
cube defined by **-R**; this modifier is also needed to display gridlines in
the x-z, y-z planes. Note that for 3-D views the title, if given, will be
suppressed. You can paint the interior of the canvas with **+g**\ *fill*.
corner and the order goes counter-clockwise. Use **+w** to draw the outlines of
the x-z and y-z planes [no outline] and optionally append the *pen* to use
[:term:`MAP_GRID_PEN_PRIMARY`]. Alternatively, append **+b** to also draw the front lines
of the 3-D cube defined by **-R**. By default, the back-walls are transparent.
Use **+x** and **+y** to paint them, using the same fill as the x-y plane if no fill
is appended. You can paint the interior of the canvas with **+g**\ *fill*.
Use **+i** to annotate an internal meridian or parallel when the axis that normally
would be drawn and annotated does not exist (e.g., azimuthal map with 360-degree range
has no latitude axis, and a global Hammer map has no longitude axis); optionally append the parallel or meridian [0].
Expand Down
Loading