![]() ![]() The easiest way is to use a PatchCollection and pass in your "z" (i.e. ![]() I have played around with the code so much and I just can't figure out how to normalize the colorbar correctly. Ticks= for i in range(0, len(bounds), 2)],Īs you can see, the colorbar is not quite right. Norm = (values, cpt.N-1)Ĭax = fig.add_axes()Ĭb = (cax, cmap=cpt, # Add colorbar, make sure to specify tick locations to match desired ticklabelsĬpt = (colorlist) # project strike distribution as histogram barsĬolors.append(cm.jet(r_values, alpha=0.5)) # force square figure and square axes looks better for polar, IMOĪx = fig.add_axes(, polar=True) Here is a part of it: angle = radians(10.)įor i, item in enumerate(some_array_of_azimuth_directions): My code mimics a "rose diagram" projection which is essentially a bar chart on a polar projection. How would one add a colorbar to this plot? In this example the color is correlative to the radius of each bar. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |