driscoll42 / ebayMarketAnalyzer

Scrape all eBay sold listings to determine average/median pricing, plot listings over time with trend lines, and extract to excel
195 stars 26 forks source link

Dashed lines overlapping #31

Closed driscoll42 closed 3 years ago

driscoll42 commented 3 years ago

Describe the bug Think I found the issue. mymodel and x end up with duplicate values -- so the line should be on (X,Y) pairs, but it ends up with one pair per card sold on a given date. Here's debug data for 41 RX 6800 cards sold last week:

(Found by Jarred Walton of Tom's Hardware)

To Reproduce Create any plot with a dashed line

Expected behavior Should have clear dashes

Screenshots Bad: image

Good: image

Desktop (please complete the following information):

Apparent fix is

res = list(set(x))
mymodel = list(map(myfunc, res))

(First basically removes x duplicates)

Maybe also change the linestyle of the plot