How do I add category names to my seaborn boxplot when my data is from a python dictionary?
<p>I have some data that is sitting in a python dictionary of lists.</p>

<p>How can I use the keys from the dictionary as category labels for this boxplot?
Here is a sample of the dictionary, plot_data:</p>

<pre><code>plot_data {
    'Group1': [0.02339976, 0.03235323, 0.12835462, 0.10238375, 0.04223188],
    'Group2': [0.02339976, 0.03235323, 0.12835462, 0.10238375, 0.04223188]
}
</code></pre>

<p>This code is probably a mess, but here it is:</p>

<pre><code>data = plot_data.values()

#Get data in proper format
fixed_data = list(sorted(data))


#Set up the graph parameters
sns.set(context='notebook', style='whitegrid')
sns.axlabel(xlabel="Groups", ylabel="Y-Axis", fontsize=16)


#Plot the graph
sns.boxplot(data=fixed_data, whis=np.inf, width=.18)
sns.swarmplot(data=fixed_data, size=6, edgecolor="black", linewidth=.9)
</code></pre>

<p><a href="https://i.stack.imgur.com/RzLiE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RzLiE.png" alt="Boxplot with no category labels"></a></p>