oldoc63 / learningDS

Learning DS with Codecademy and Books
0 stars 0 forks source link

Linestyles #477

Open oldoc63 opened 1 year ago

oldoc63 commented 1 year ago

We can specify a different color for a line by using the keyword color with either an HTML color name or a HEX code:

oldoc63 commented 1 year ago

We can also make a line dotted or dashed using the keyword linestyle:

oldoc63 commented 1 year ago

We can also add marker using the keyword marker:

oldoc63 commented 1 year ago

To see all of the possible options, check out the Matplotlib documentation. Here are a couple of those values applied to our plots about lunch spending:

oldoc63 commented 1 year ago
  1. Plot revenue vs time as a purple dashed line.
oldoc63 commented 1 year ago
  1. Plot cost vs. time as a line with the HEX color #82edc9 and square markers.