DotPlot with Gradient Background in Python?
<p>I wanted to ask help in order to make a <strong>dotplot</strong> in <strong>python</strong> with a <strong>gradient palette AS BACKGROUND</strong>. I managed to do this plot in R (which I have some expertise), but for learning purposes <strong>I want to make it in Python</strong>.</p>

<p>This is the plot made by me in R, which I want to reproduce in Python:</p>

<p><em><a href="http://imgur.com/wUblcsc" rel="nofollow">http://imgur.com/wUblcsc</a></em></p>

<p>This is the table used to generate the plot in R</p>

<pre><code>Player,Rank
Messi,3
Neymar,3
Ronaldo,2
Iniesta,2
Rooney,2
Pogba,2
Dybala,1
Bale,0
</code></pre>

<p>And this is my attemp in Python using Matplotlib, seaborn and pandas:</p>

<pre class="lang-py prettyprint-override"><code>import seaborn as sns
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
import sys  
reload(sys)  
sys.setdefaultencoding('utf8')

fit = pd.read_csv('test.txt', sep=',')

sns.set(
        font_scale=1.6, 
        context="paper", 
        rc={'grid.color':'black', 'axes.edgecolor':'black'})

g = sns.PairGrid(fit,
                 y_vars=["Player"], x_vars=["Rank"],
                 size=3, aspect=0.9, 
                 palette=dict(Reactividad="black"))

# Draw a dot plot using the stripplot function
g.map(sns.stripplot, size=12, orient="h",
  edgecolor="black")

g.set(xlim = (-0.3,3.3), xticks=[0,1,2,3])
</code></pre>

<p>This block code gave me as a result the following plot:</p>

<p><em><a href="http://imgur.com/EYNCCjw" rel="nofollow">http://imgur.com/EYNCCjw</a></em></p>

<p>The question here is:</p>

<p><strong>How to do to plot a gradient like "RdYlGn_r" palette into the plot?</strong></p>