Skip to content

Y-axis value of a seaborn heatmap is reversed when home icon or H button is pushed #9863

@cxrxixs

Description

@cxrxixs

Bug report

Bug summary
The value of Y-axis in a seaborn heatmap is reversed when home icon or H button is pushed.

Code for reproduction

import matplotlib.pyplot as plt
import numpy as np
import seaborn as sns

data = np.random.rand(10, 10)
sns.heatmap(data)
plt.show()

Actual outcome

Initial result on the Y-axis is from 9 to 0
After Home/H is pushed it will reverse the order from 0 to 9

Expected outcome

It should not reverse the order of Y-axis value
as tested on matplotlib 2.0.2

Matplotlib version

  • Operating system: Ubuntu 17.04
  • Matplotlib version: 2.1.0
  • Matplotlib backend (print(matplotlib.get_backend())): TkAgg
  • Python version: 3.6.1
  • Jupyter version (if applicable): N/A
  • Other libraries: Seaborn 0.8.1

Python3.6 is installed using APT, while matplotlib is installed via pip

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions