Skip to content

Commit

Permalink
[graph-] fix to implement color_graph_refline option
Browse files Browse the repository at this point in the history
  • Loading branch information
midichef authored and anjakefala committed Oct 17, 2024
1 parent ed97bb7 commit 3e10140
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions visidata/deprecated.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,3 +250,5 @@ def memo(vd, name, col, row):
@visidata.TableSheet.api
def keystr(sheet, row):
return sheet.rowname(row)

vd.optalias('color_refline', 'color_graph_refline') # color_refline was used in v3.1 by mistake
2 changes: 1 addition & 1 deletion visidata/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def draw_reflines(self, scr):
for char_x in range(0, self.plotwidth//2):
has_x_line = char_x in self.reflines_char_x.keys()
if has_x_line or has_y_line:
cattr = colors.color_refline
cattr = colors.color_graph_refline
if has_x_line:
ch = self.reflines_char_x[char_x]
# where two lines cross, draw the vertical line, not the horizontal one
Expand Down

0 comments on commit 3e10140

Please sign in to comment.