<p dir="auto">I am trying to create a polar plot with a log scale on the radial axis but I keep getting an error or I get a missed up plot.<br>
This is the code that I use:</p>
<p dir="auto">import pandas as pd<br>
import numpy as np<br>
import matplotlib.pyplot as plt</p>
<p dir="auto">metabolites = data[["metabolite"]]<br>
intercepts = data[["intercept"]]<br>
amplitudes= data[["amplitude"]]<br>
acrophases = data[["acrophase"]]<br>
ind = data[["Unnamed: 0"]]</p>
<p dir="auto">N = metabolites.count()<br>
N = N.values<br>
N = N[0]</p>
<p dir="auto">metabolites = metabolites.values<br>
acrophases = acrophases.values<br>
amplitudes = amplitudes.values<br>
ind = ind.values<br>
colors = plt.cm.gist_rainbow(ind[:,0]/len(acrophases))<br>
width =  np.zeros((N,1)) + 0.3</p>
<p dir="auto">for i in range(len(acrophases)):<br>
if acrophases[i] &lt;0:<br>
acrophases[i] = acrophases[i]+ np.pi</p>
<p dir="auto">acrophases = acrophases[:,0]<br>
amplitudes = amplitudes[:,0]<br>
width1 = width[:,0]<br>
metabolites = metabolites[:,0]<br>
fig = plt.figure()<br>
ax = plt.subplot(111, projection='polar')</p>
<p dir="auto">for j in range(len(acrophases)):<br>
ax.bar(acrophases[j], amplitudes[j], width=0.3, bottom=0.0, align='center', color=colors[j], label=metabolites[j])<br>
handles, labels = ax.get_legend_handles_labels()<br>
ax.set_xticklabels(['0', '3', '6', '9', '12', '15', '18', '21'])</p>
<p dir="auto">ax.set_rlim((1.0, 10000.0))<br>
ax.set_rscale('log')<br>
fig.savefig('plot.tiff', dpi=600)<br>
plt.show()</p>
<p dir="auto">I have been using the API example for creating radar charts: <a href="http://matplotlib.org/examples/api/radar_chart.html" rel="nofollow">http://matplotlib.org/examples/api/radar_chart.html</a></p>
<p dir="auto">In the previous version you could make the radial grid logarithmic simply by adding <code class="notranslate">ax.set_yscale('log')</code> here:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        ax = fig.add_subplot(2, 2, n + 1, projection='radar')
        ax.set_yscale('log')
        plt.rgrids([0.1, 0.2, 0.4, 0.6, 0.8])
        ax.set_title(title, weight='bold', size='medium', position=(0.5, 1.1),
                     horizontalalignment='center', verticalalignment='center')
        for d, color in zip(case_data, colors):
            ax.plot(theta, d, color=color)
            ax.fill(theta, d, facecolor=color, alpha=0.25)
        ax.set_varlabels(spoke_labels)"><pre lang="for" class="notranslate"><code class="notranslate">        ax = fig.add_subplot(2, 2, n + 1, projection='radar')
        ax.set_yscale('log')
        plt.rgrids([0.1, 0.2, 0.4, 0.6, 0.8])
        ax.set_title(title, weight='bold', size='medium', position=(0.5, 1.1),
                     horizontalalignment='center', verticalalignment='center')
        for d, color in zip(case_data, colors):
            ax.plot(theta, d, color=color)
            ax.fill(theta, d, facecolor=color, alpha=0.25)
        ax.set_varlabels(spoke_labels)
</code></pre></div>
<p dir="auto">This seems to be broken in rc2, with no data being plotted.</p>