8000 AxesGrid ticks missing on x-axis · Issue #11025 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

S 8000 kip to content
AxesGrid ticks missing on x-axis #11025
Closed
@egpbos

Description

@egpbos

Bug report

Bug summary

There seem to be missing ticks on the x-axis for AxesGrids. Looking at the examples in the documentation, this bug seems to have been introduced since version 2.0.0. Compare v2.0.0 to v1.5.1 for instance.

Code for reproduction

The first example in the docs that shows this problem is:

import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np

im = np.arange(100)
im.shape = 10, 10

fig = plt.figure(1, (4., 4.))
grid = ImageGrid(fig, 111,  # similar to subplot(111)
                 nrows_ncols=(2, 2),  # creates 2x2 grid of axes
                 axes_pad=0.1,  # pad between axes in inch.
                 )

for i in range(4):
    grid[i].imshow(im)  # The AxesGrid object work as a list of axes.

plt.show()

Actual outcome

Outcome for v2.0.0 and higher: https://matplotlib.org/2.0.0/_images/simple_axesgrid1.png

Expected outcome

Outcome for v1.5.1 and before: https://matplotlib.org/1.5.1/_images/simple_axesgrid1.png

Matplotlib version

Seeing as this happens on the matplotlib doc pages themselves, I think we can be pretty sure it's platform / build-system / version (except v1 vs v2) independent.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0