0

I'm plotting horizontal lines using the following

K = 85
space = K
plt.hlines(y=np.arange(0,K*space,space), xmin=0, xmax=torch.randn(K))

It gives the plot

enter image description here

While; the argument space location the y-axis; but each line is so close with its neighbor and its very hard to put y-axis labels for each of the horizontal line

I'm more interested in increase the space (distance) between each line so that y-axis labels can be better visualized. Any help ? Thanks

ElleryL
  • 507
  • 7
  • 16

1 Answers1

0

Use the figsize argument.

K = 85
space = K
plt.figure(figsize=(10,20))
plt.hlines(y=np.arange(0,K*space,space), xmin=0, xmax=torch.randn(K))
emilaz
  • 1,722
  • 1
  • 15
  • 31