Skip to content

Commit

Permalink
Get rid of a warning from mathplolib regarding color
Browse files Browse the repository at this point in the history
Main.py:422: UserWarning: color is redundantly defined by the 'color' keyword argument and the fmt string "--bo" (-> color='b'). The keyword argument will take precedence.
  self.plotData, = self.subplot.plot([], [], '--bo', color='#1772AE', label='Data')  # blue

Main.py:424: UserWarning: color is redundantly defined by the 'color' keyword argument and the fmt string "-.bo" (-> color='b'). The keyword argument will take precedence.
  self.plotCorrectedSignal, = self.subplot.plot([], [], '-.bo', color='#13A075', label='Corrected Data')  # green
  • Loading branch information
k1moradi authored Dec 6, 2021
1 parent a68e627 commit 8529277
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,9 +419,9 @@ def __init__(self, parent, file_name):
self.subplot = self.fig.add_subplot(111) # n_rows, n_cols, index
self.canvas = FigureCanvasTkAgg(self.fig, master=self.experimentFrame)
self.canvas.get_tk_widget().grid(row=0, column=0, rowspan=len(self.KEYS), sticky='NEWS')
self.plotData, = self.subplot.plot([], [], '--bo', color='#1772AE', label='Data') # blue
self.plotData, = self.subplot.plot([], [], '--o', color='#1772AE', label='Data') # blue
self.plotModel, = self.subplot.plot([], [], ':X', color='#D05F2C', label='Model') # red
self.plotCorrectedSignal, = self.subplot.plot([], [], '-.bo', color='#13A075', label='Corrected Data') # green
self.plotCorrectedSignal, = self.subplot.plot([], [], '-.o', color='#13A075', label='Corrected Data') # green
self.plotInitTimes, = self.subplot.plot([], [], 'P', color='#CB78A6', label='Init') # magenta
self.fig.patch.set_facecolor('#F0F0F0') # light grey
self.subplot.set_facecolor('#F0F0F0')
Expand Down

0 comments on commit 8529277

Please sign in to comment.