Skip to content

Figures not correctly displaying grid lines for minor ticks #16339

@paulangton

Description

@paulangton

Bug report

Bug summary

Figures not correctly showing grid for minor ticks on one axis.
Code for reproduction

x = np.arange(0,100,.5)
y = 2*x**3

plt.loglog(x,y)
plt.minorticks_on()
plt.grid(True,which="both", axis="both",ls="-")
plt.show()

Actual outcome

mpl_grid_bug

Expected outcome
The Y axis should have minor ticks and their corresponding grid lines.

Matplotlib version

  • Operating system: ArchLinux (5.4.6-arch3-1)
  • Matplotlib version: 3.1.2
  • Matplotlib backend (print(matplotlib.get_backend())): agg
  • Python version: 3.8.1
  • Jupyter version (if applicable):
  • Other libraries:

Installed via pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions