Skip to content

Commit

Permalink
Use main overrides for profile and band
Browse files Browse the repository at this point in the history
  • Loading branch information
xxao committed Mar 31, 2022
1 parent 0432f6c commit 5b22c06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pero/glyphs/band.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,14 @@ def _draw_points(self, canvas, source, overrides, x_coords, y1_coords, y2_coords
point_data = data[i] if has_data else None

# get marker
marker = self.get_property('marker', point_data, marker_overrides)
marker = self.get_property('marker', point_data, overrides)
if not marker:
continue

# init glyph
if not isinstance(marker, Marker):
marker = Marker.create(marker)
marker.set_properties_from(self, src_prefix='marker_', overrides=marker_overrides, native=True)
marker.set_properties_from(self, src_prefix='marker_', overrides=overrides, native=True)

# get coords
x = x_coords[i]
Expand Down
4 changes: 2 additions & 2 deletions pero/glyphs/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,14 @@ def _draw_points(self, canvas, source, overrides, x_coords, y_coords):
point_data = data[i] if has_data else None

# get marker
marker = self.get_property('marker', point_data, marker_overrides)
marker = self.get_property('marker', point_data, overrides)
if not marker:
continue

# init glyph
if not isinstance(marker, Marker):
marker = Marker.create(marker)
marker.set_properties_from(self, src_prefix='marker_', overrides=marker_overrides, native=True)
marker.set_properties_from(self, src_prefix='marker_', overrides=overrides, native=True)

# get coords
x = x_coords[i]
Expand Down

0 comments on commit 5b22c06

Please sign in to comment.