From 3edfef26f2c543a89d457348ca59056fffdeacaa Mon Sep 17 00:00:00 2001 From: Jeff Moe Date: Sun, 29 Jan 2023 16:52:46 -0700 Subject: [PATCH] Title, colors --- polar-plot | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/polar-plot b/polar-plot index 03a911d..387e6ee 100755 --- a/polar-plot +++ b/polar-plot @@ -37,7 +37,7 @@ import seaborn as sns import sys locale.setlocale(locale.LC_ALL, "en_US.utf8") -plt.rcParams['axes.formatter.use_locale'] = True +plt.rcParams["axes.formatter.use_locale"] = True if __name__ == "__main__": # Determine what type of file to load to dataframe @@ -65,8 +65,17 @@ if __name__ == "__main__": print(df) # (Empty) Plot here - fig = plt.figure(figsize=(8, 8)) + sns.set_theme() + fig = plt.figure(figsize=(8, 8), facecolor="xkcd:off white") ax = fig.add_subplot(111, projection="polar") + ax.set_facecolor('xkcd:powder blue') + + ax.set_title( + "Radio Interference Polar Plot".format("seaborn"), + color="xkcd:cornflower blue", + fontsize="large", + fontweight="bold", + ) ax.set_theta_offset(np.pi / 2.0) ax.set_rticks([90, 60, 30, 0]) @@ -75,5 +84,5 @@ if __name__ == "__main__": ax.bar(0, 90).remove() ax.set_rmax(90.0) ax.set_ylim(0.0, 90.0) - + plt.tight_layout() plt.show()