#!/usr/bin/python3

print('*** Zgled polar density plot - 28.09.2020 ***')
#https://stackoverflow.com/questions/31051882/matplotlib-density-plot-in-polar-coordinates

import numpy as np
import matplotlib.pyplot as plt

#fake data:
a=np.linspace(0,2*np.pi,50)
b=np.linspace(0,1,50)
A,B=np.meshgrid(a, b)
c=np.random.random(A.shape)

#actual plotting
import matplotlib.cm as cm
ax=plt.subplot(111,polar=True)
ax.set_yticklabels([])
ctf=ax.contourf(a,b,c,cmap=cm.gist_ncar)    #https://matplotlib.org/3.1.0/tutorials/colors/colormaps.html#colorcet
plt.colorbar(ctf)

plt.show()
print('*** Konec ***')
