Skip to content

Commit

Permalink
Merge pull request #70 from djhoese/bugfix-grid-index-array-nameerror
Browse files Browse the repository at this point in the history
  • Loading branch information
djhoese committed Nov 7, 2022
2 parents 11303e6 + 93e9bbc commit 85efe8b
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 74 deletions.
3 changes: 2 additions & 1 deletion pycoast/cw_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -1650,11 +1650,12 @@ def _draw_major_lines(self, major_lines_lonlats, label_gen_func, label_placement
index_arrays = self._grid_line_index_array_generator(
[lonlats],
)
index_array = None
for index_array in index_arrays:
self._cw._draw_line(self._draw, index_array.flatten().tolist(), **self._kwargs)

# add lon text markings at each end of longitude line
if self._write_text:
if self._write_text and index_array is not None:
txt = label_gen_func(lonlats)
xys = _find_line_intercepts(
index_array,
Expand Down

0 comments on commit 85efe8b

Please sign in to comment.