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

Appearance settings

clearing axes with shared axis with non-linear scales should not warn #9970

Copy link
Copy link
Open
@fredrik-1

Description

@fredrik-1
Issue body actions
import matplotlib.pyplot as plt

fig=plt.figure(1)
ax1=fig.add_subplot(1,2,1)
ax1.loglog(range(10))
ax2=fig.add_subplot(1,2,2, sharex=ax1)
ax2.loglog(range(10))

fig.clf()

Throws a warning:
UserWarning: Attempted to set non-positive xlimits for log-scale axis; invalid limits will be ignored.
'Attempted to set non-positive xlimits for log-scale axis;

ax1.cla() also throws a warning.

Matplotlib version
2.1.0,
python 3.6.3
ipython 6.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty: Mediumhttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issueshttps://matplotlib.org/devdocs/devel/contribute.html#good-first-issuesGood first issueOpen a pull request against these issues if there are no active ones!Open a pull request against these issues if there are no active ones!keepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Action

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.