Skip to content

Commit

Permalink
iss #381 added example to docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
BiancaMorandi committed May 16, 2023
1 parent 207fcce commit f170e91
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions brightwind/analyse/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,14 @@ def __init__(self):
::
import brightwind as bw
# The color palette used by brightwind library by default based on main colors can be visualised using
# code below.
import matplotlib.pyplot as plt
fig, axes = plt.subplots()
for i,c in enumerate(bw.analyse.plot.COLOR_PALETTE.color_list):
axes.bar([i],1,color=c)
# Main colors can be reset by using the code below for each color of the defined color palette. When doing
# this the linked color_list, color_map, color_map_cyclical and adjusted lightness color variables are
# automatically updated as a consequence.
Expand Down

0 comments on commit f170e91

Please sign in to comment.