Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

2.1 - new problem with log ax.transData #9369

Closed
@2sn

Description

@2sn

Bug report

ax.transData returns np.nan for x value if invalid y value is supplied if log yscale

Code for reproduction

importmatplotlib.pylabaspltf=plt.figure()ax=f.add_subplot(111)ax.set_yscale('log')ax.transData.transform([0,0])

Actual outcome

array([ nan,  nan])

Expected outcome

 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

  • Operating system: Fedora 26, x64
  • Matplotlib version: 2.1.0, with prAllow invalid limits when panning #9363
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.6.3
  • Jupyter version (if applicable):
  • Other libraries: mpl 1.13.3

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp