-
-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
Good evening
thank you very much for sharing your great work!,
it's very useful to be able to have the flexibility of patchworklib.
Unfortunately, I have not found any example which uses patchworklib and displays the result on the screen (without saving it as an image on the disk and displaying this image) and I was not able to get it running 😞:
import matplotlib.pyplot as plt
import patchworklib as pw
# Create the Brick-Objects
brick1 = pw.Brick("11", figsize=(3,3))
brick2 = pw.Brick("12", figsize=(3,3))
brick3 = pw.Brick("21", figsize=(3,3))
# Draw to plots
brick1.plot(data=[1, 2, 3, 4], label="Brick 1")
brick2.plot(data=[5, 6, 7, 8], label="Brick 2")
brick3.plot(data=[9, 10, 11, 12], label="Brick 3")
# Create the design
line1 = pw.hstack(brick1, brick2)
diagramm = pw.vstack(line1, brick3)
# Plot the diagram in the Screen
plt.show()
Does anyone has an idea what's wrong in my code?
Thanks a lot for any help in advance,
kind regards, Thomas
Metadata
Metadata
Assignees
Labels
No labels