<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>

<p dir="auto">Code that used to work flawlessly for replacing tick locations and labels on a log axis now seems to merely add to the default labels, so both now appear in the plot.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>

<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
from matplotlib import pyplot as plt

# set the axis limits
xmin = -100   # min temperature to plot
xmax = 40    # max temperature
ymin = 100   # min pressure
ymax = 1000  # max pressure
plt.axis([xmin, xmax, ymax, ymin])

plt.semilogy()

# make lists of tick values and tick labels
plist = range(ymin,ymax,100)
plabels = []
for p in plist:
    plabels.append(str(p))

plt.yticks(plist,plabels)

x = [xmin, xmax]
y = [ymin, ymax]
plt.plot(x, y)
plt.show()
"><pre class="notranslate"><code class="notranslate">
from matplotlib import pyplot as plt

# set the axis limits
xmin = -100   # min temperature to plot
xmax = 40    # max temperature
ymin = 100   # min pressure
ymax = 1000  # max pressure
plt.axis([xmin, xmax, ymax, ymin])

plt.semilogy()

# make lists of tick values and tick labels
plist = range(ymin,ymax,100)
plabels = []
for p in plist:
    plabels.append(str(p))

plt.yticks(plist,plabels)

x = [xmin, xmax]
y = [ymin, ymax]
plt.plot(x, y)
plt.show()

</code></pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>

<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2342020/31042868-4b415baa-a566-11e7-8811-72dbd12a5d37.png"><img width="401" alt="untitled 2" src="https://user-images.githubusercontent.com/2342020/31042868-4b415baa-a566-11e7-8811-72dbd12a5d37.png" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here
#
#"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here
#
#
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>


<p dir="auto">There should be no overwriting of custom labels with the default scientific notation labels.  It did work correctly about a year ago, but I cannot say what version of Matplotlib was being used at that time.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>

<ul dir="auto">
<li>Operating System:  Mac osx-64</li>
<li>Matplotlib Version:  2.0.2</li>
<li>Python Version: 2.7.12</li>
<li>Jupyter Version (if applicable): 4.3.0</li>
<li>Other Libraries:</li>
</ul>


<p dir="auto">conda install matplotlib</p>
<h3 dir="auto">Bug report</h3>
<p dir="auto">When setting a scatter plot's y axis to log-scale in matplotlib 2.0.0, it is <em>data dependent</em> as to whether y tick labels can be removed or not.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np

# create fake data
MIN, MAX = 13, 100
y = np.linspace(MIN, MAX, num=50)
x = np.arange(len(y))

# plot it
fig = plt.figure()
fig.suptitle('matplotlib %s  (range %d - %d)' % (mpl.__version__, MIN, MAX))
plot = fig.add_subplot(111)
plot.scatter(x, y)
plot.set_yscale('log')  # set log-scale y axis
plot.set_yticks([])     # disable y ticklabels (FIXME: silent failure on mpl 2.0.0)
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">as</span> <span class="pl-s1">mpl</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>

<span class="pl-c"># create fake data</span>
<span class="pl-v">MIN</span>, <span class="pl-v">MAX</span> <span class="pl-c1">=</span> <span class="pl-c1">13</span>, <span class="pl-c1">100</span>
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">linspace</span>(<span class="pl-v">MIN</span>, <span class="pl-v">MAX</span>, <span class="pl-s1">num</span><span class="pl-c1">=</span><span class="pl-c1">50</span>)
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-en">len</span>(<span class="pl-s1">y</span>))

<span class="pl-c"># plot it</span>
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">fig</span>.<span class="pl-en">suptitle</span>(<span class="pl-s">'matplotlib %s  (range %d - %d)'</span> <span class="pl-c1">%</span> (<span class="pl-s1">mpl</span>.<span class="pl-s1">__version__</span>, <span class="pl-v">MIN</span>, <span class="pl-v">MAX</span>))
<span class="pl-s1">plot</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">add_subplot</span>(<span class="pl-c1">111</span>)
<span class="pl-s1">plot</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">plot</span>.<span class="pl-en">set_yscale</span>(<span class="pl-s">'log'</span>)  <span class="pl-c"># set log-scale y axis</span>
<span class="pl-s1">plot</span>.<span class="pl-en">set_yticks</span>([])     <span class="pl-c"># disable y ticklabels (FIXME: silent failure on mpl 2.0.0)</span>
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">This animation illustrates driving the above code, starting with values 1-100, up to values 20-100. Note that y ticklabels are successfully removed for lower values, then the ticklabels appear for minimum y values of 13 and above.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/647785/22634480/10b1aa08-ebdf-11e6-8d9c-116bafa86ef2.gif"><img src="https://cloud.githubusercontent.com/assets/647785/22634480/10b1aa08-ebdf-11e6-8d9c-116bafa86ef2.gif" alt="mpl_log_test_2 0 0_anim" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Note that I've tried several different approaches to remove the y ticklabels, but the labels always reappear given certain input data. Even when I set my own <code class="notranslate">ScalarFormatter()</code> for custom labeling (which is my real goal), the default scientific notation labels are still rendered "on top of" my own labels.</p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">Expected outcome is that y ticklabels would never appear, regardless of the values being plotted.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>matplotlib 2.0.0 (bug is <em>not</em> present in 1.5.3)</li>
<li>Mac OS X 10.9.5</li>
<li>python.org Python 2.7.13</li>
<li>all dependencies installed using <code class="notranslate">pip</code></li>
</ul>