<!--To help us understand and resolve your issue, please fill out the form to the best of your ability.--> <!--You can feel free to delete the sections that do not apply.--> ### Bug report **ax.transData returns np.nan for x value if invalid y value is supplied if log yscale** <!--A short 1-2 sentences that succinctly describes the bug--> **Code for reproduction** <!--A minimum code snippet required to reproduce the bug, also minimizing the number of dependencies required--> ```python import matplotlib.pylab as plt f = plt.figure() ax = f.add_subplot(111) ax.set_yscale('log') ax.transData.transform([0,0]) ``` **Actual outcome** <!--The output produced by the above code, which may be a screenshot, console output, etc.--> ``` array([ nan, nan]) ``` **Expected outcome** <!--A description of the expected outcome from the code snippet--> <!--If this used to work in an earlier version of Matplotlib, please note the version it used to work on--> ``` array([ 81.5 , nan]) ``` Outcome in mpl 2.0.2 was ``` array([ 8.16000000e+01, -1.02745008e+05]) ``` There is no real reason both values be nan. **Matplotlib version** <!--Please specify your platform and versions of the relevant libraries you are using:--> * Operating system: Fedora 26, x64 * Matplotlib version: 2.1.0, with pr #9363 * Matplotlib backend (`print(matplotlib.get_backend())`): TkAgg * Python version: 3.6.3 * Jupyter version (if applicable): * Other libraries: mpl 1.13.3 <!--Please tell us how you installed matplotlib and python e.g., from source, pip, conda--> <!--If you installed from conda, please specify which channel you used if not the default-->
Bug report
ax.transData returns np.nan for x value if invalid y value is supplied if log yscale
Code for reproduction
Actual outcome
Expected outcome
Outcome in mpl 2.0.2 was
There is no real reason both values be nan.
Matplotlib version
print(matplotlib.get_backend())): TkAgg