Matplotlib: How to recreate `6 petal` polar diagram

Viewed 62

For an assignment, I have to recreate the following plot (including all labels and ticks):

enter image description here

This is what I have tried so far with my code

import numpy as np
import matplotlib.pyplot as plt

nmax=101 # choose a high number to "smooth out" lines in plots
x = np.linspace(0,20,nmax) # create an array x
y_br = np.sin(3*x) # y for the bottom right subplot

fig = plt.figure()
ax4 = plt.subplot(224, projection = 'polar')
ax4.plot(x, y_br, 'tab:blue')

But if you were to run this yourself, this does not replicate the plot. What function could be used here and how can tick marks be changed in polar plots? Thanks in advance?

0 Answers
Related