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

imshow with log/symlog scales fails to produce figures without raising an Exception #3931

Copy link
Copy link
Closed
@eyurtsev

Description

@eyurtsev
Issue body actions

I don't know if it makes sense to use imshow with non-linear scales. However, it would be nice if imshow at least raised an Exception in the cases where it's supposed to fail.

matplotlib v 1.4.2

%pylab inline

Z = randn(10000).reshape(100, -1)

# Works
figure()
imshow(Z)

# Produces no figure if x/y limits are not specified
# Does NOT raise an exception!
figure()
imshow(Z)
xscale('log')
yscale('log')

# Works
figure()
imshow(Z)
xscale('log')
yscale('log')
xlim(1, 20)
ylim(1, 20)

# Produces no figure in symlog scale
# Does NOT raise an exception!
figure()
imshow(Z)
xscale('symlog')
yscale('symlog')

# Produces no figure in symlog scale
# Does NOT raise an exception!
figure()
imshow(Z)
xscale('symlog', linthreshx=10**-3)
yscale('symlog', linthreshy=10**-3)
xlim(0, 20)
ylim(0, 20)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    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.