<p dir="auto">example: <a href="https://www.wakari.io/sharing/bundle/adamgreenhall/test-scatter" rel="nofollow">https://www.wakari.io/sharing/bundle/adamgreenhall/test-scatter</a></p>
<p dir="auto">I think this happens specifically for pandas scatter plots with colorbars in ipython. The xticks are still working for:</p>
<ul dir="auto">
<li>non-colorbar pandas scatter plots</li>
<li>the same scatter plot using matplotlib</li>
<li>standard python scripts using <code class="notranslate">plt.savefig</code></li>
</ul>
<p dir="auto">related problem with <code class="notranslate">%matplotlib inline</code>?: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="3419960" data-permission-text="Title is private" data-url="https://github.com/ipython/ipython/issues/1443" data-hovercard-type="issue" data-hovercard-url="/ipython/ipython/issues/1443/hovercard" href="https://github.com/ipython/ipython/issues/1443">ipython/ipython#1443</a></p>
<p dir="auto">The exception handling code in _get_concatenated_data() relies on the exception not being generated in self._prepare_blocks() and can generate an exception with this non-informative error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
  File &quot;&lt;pyshell#5&gt;&quot;, line 12, in &lt;module&gt;
    df = pd.concat([activedf,closeddf])
  File &quot;C:\Python27\lib\site-packages\pandas\tools\merge.py&quot;, line 873, in concat
    return op.get_result()
  File &quot;C:\Python27\lib\site-packages\pandas\tools\merge.py&quot;, line 957, in get_result
    new_data = self._get_concatenated_data()
  File &quot;C:\Python27\lib\site-packages\pandas\tools\merge.py&quot;, line 1001, in _get_concatenated_data
    new_data[item] = self._concat_single_item(rdata, item)
UnboundLocalError: local variable 'rdata' referenced before assignment"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
  File "&lt;pyshell#5&gt;", line 12, in &lt;module&gt;
    df = pd.concat([activedf,closeddf])
  File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 873, in concat
    return op.get_result()
  File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 957, in get_result
    new_data = self._get_concatenated_data()
  File "C:\Python27\lib\site-packages\pandas\tools\merge.py", line 1001, in _get_concatenated_data
    new_data[item] = self._concat_single_item(rdata, item)
UnboundLocalError: local variable 'rdata' referenced before assignment
</code></pre></div>