How to control figure aspect ratio in Jupyter Lab?

71 Views Asked by At
par(mfrow=c(1,3))

plot(t, loc.t)  # the x and y are random values. 
plot(t, scale.t)
plot(t, shape.t)

enter image description here

I work in a Jupyter Lab and have run the code above. However, I'm facing an issue where the figures are appearing too elongated in a row, rather than in a column.

I've attempted to control the figure ratios for rows and columns, but it seems that comments are not working as expected in my Jupyter Lab environment. I suspect that this issue may be related to the Jupyter Lab environment itself.

My goal is to display the figures (without saving them) within Jupyter Lab.

Example of my goal:

The figure I want can be drawn using par(mfrow=c(3,3)), but there are many gaps as below. enter image description here

===============================================

Controlling the asp=100 option changes the y-axis range of the figure, but the resulting aspect ratio of the figure is constant. enter image description here

0

There are 0 best solutions below