Skip to content

Commit f3f6950

Browse files
authored
Fix the -M -E combination in pscoast to NOT have -R (#1891)
1 parent dcf8c72 commit f3f6950

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/fourcolors.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Apply graph coloring to assign colors to polygons such that no two adjacent poly
1212
Default: "CODE"
1313
- `ncolors`: Number of colors to use. Default: 4 (four color theorem). Use more for fewer regions
1414
(e.g., 7 for continents) to get distinct colors for each.
15-
- `colors`: Vector of color names or RGB tuples. Default: [:tomato, :skyblue, :lightgreen, :gold]
15+
- `colors`: Vector of color names or R/G/B strings. Default: [:tomato, :skyblue, :lightgreen, :gold]
1616
If `ncolors` > length(colors), colors will cycle.
1717
- `index`: If true, return only the color indices without plotting. Default: false
1818
- `kw...`: Additional keyword arguments passed to `plot` for visualization.

src/pscoast.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ function coast_parser(first::Bool, clip::String; kwargs...)
138138
toTrack == "" && (POSTMAN[]["plusZzero"] = "y")# If toTrack the extra column is added by the grdtrack call below
139139
end
140140
end
141-
142-
if (!occursin("-E+l", cmd) && !occursin("-E+L", cmd)) # I.e., no listings only
141+
142+
if (!(occursin("-E", cmd) && have_opt_M)) # I.e., no DCW parse -R
143143
cmd, = parse_R(d, cmd, O=O, del=true, RIr=false, noGlobalR=have_opt_M) # If have_opt_M we don't set the -R limits in globals
144144
if (!have_opt_M) # If Dump no -R & -B
145145
cmd = parse_J(d, cmd, default="guess", map=true, O=O)[1]

0 commit comments

Comments
 (0)