Skip to content

fix: mplhep LHCb2 style conflicts with subplots_adjust(hspace=0) #401

@CrfzdPQM6

Description

@CrfzdPQM6

I want two arrange two axes with no space between, like the last figure here. I have this:

import mplhep
import matplotlib.pyplot as plt
#mplhep.style.use("LHCb2")

fig,axs = plt.subplots(2,2)
plt.subplots_adjust(hspace=0)
plt.show()

where you see I get what I want (vertically) unless I uncomment the mplhep.style... line, which seems to block the behaviour I want. Does anyone know how I can use the LHCb style and achieve this axis-compression?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions