Skip to content

Commit 83bc2f7

Browse files
committed
fix axes in edmStreamStallGrapher
Removed an extraneous top level set of axis when plotting the streams and the overlay.
1 parent e04f43e commit 83bc2f7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

FWCore/Concurrency/scripts/edmStreamStallGrapher.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -761,15 +761,19 @@ def createPDFImage(pdfFile, shownStacks, showStreams, processingSteps, numStream
761761
streamLowestRow = consolidateContiguousBlocks(numStreams, streamLowestRow)
762762

763763
nr = 1
764+
height_ratios = [1]
764765
if shownStacks and showStreams:
765766
nr += 1
766-
fig, ax = plt.subplots(nrows=nr, squeeze=True)
767+
height_ratios = [0.75, 0.25]
768+
769+
fig, ax = plt.subplots(nrows=nr, squeeze=True, height_ratios=height_ratios)
767770
axStack = None
768771
if shownStacks and showStreams:
769772
[xH,yH] = fig.get_size_inches()
770773
fig.set_size_inches(xH,yH*4/3)
771-
ax = plt.subplot2grid((4,1),(0,0), rowspan=3)
772-
axStack = plt.subplot2grid((4,1),(3,0))
774+
axs = ax
775+
ax = axs[0]
776+
axStack = axs[1]
773777
if shownStacks and not showStreams:
774778
axStack = ax
775779

0 commit comments

Comments
 (0)