Skip to content

Commit

Permalink
Merge pull request #374 from jnsebgosselin/add_missing_data_to_legend…
Browse files Browse the repository at this point in the history
…_if_true

PR: don't add missing meteo data marker to legend if no missing data
  • Loading branch information
jnsebgosselin committed Mar 31, 2021
2 parents bef08c7 + e2f6d0e commit 707bf79
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gwhat/hydrograph4.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,9 @@ def setup_legend(self):
lg_labels.append(labelDB[2])

# Missing Data Markers
lg_handles.append(self.lmiss_ax4)
lg_labels.append(labelDB[3])
if len(self.lmiss_ax4.get_xdata()):
lg_handles.append(self.lmiss_ax4)
lg_labels.append(labelDB[3])

# Continuous Line Datalogger
lg_handles.append(self.l1_ax2)
Expand Down

0 comments on commit 707bf79

Please sign in to comment.