NREL / htem-api-examples

Examples of usage of the HTEM DB API
http://htem.nrel.gov
Other
7 stars 5 forks source link

Matplotlib -> Seaborn #14

Closed somerandomsequence closed 6 years ago

meschw04 commented 6 years ago

So I did a little more research on Seaborn. To be honest I haven't used it a ton, but it builds very nicely on top of matplotlib and does simplify some things. I discovered a few things though. First, for basic scatter plotting/plotting capabilities, Seaborn more or less defaults to matplotlib. Seaborn actually augments the average matplotlib figures from the first line "color = sns.color_palette()", which basically tells matplotlib to plot things so they look like Seaborn. So I didn't touch the scatter plots or other plots, but I did alter the heat maps to work through Seaborn instead of matplotlib. I think overall it looks nicer too, but I kept the old code in there for the matplotlib version in case this one is preferred. I also made sure all the heat maps were the same size, and smaller. :)

somerandomsequence commented 6 years ago

The new heatmaps look great. Thanks for looking into this. I'd suggest removing the now-commented-out duplicate matplotlib code and then closing this ticket.

meschw04 commented 6 years ago

Done.