1

Below is a screenshot, in which I create two figures containing 4 plots, with near-identical code. Notably, plots both are the same size, and they are generated by the same line of code:

fig, axes = plt.subplots(2, 2,figsize=(12, 10))

The first is displayed with no sliders, the second is displayed in a frame with sliders.

Why is that?

enter image description here

blackraven
  • 5,284
  • 7
  • 19
  • 45
Abijah
  • 512
  • 4
  • 17
  • Does this answer your question? [How to avoid output into scrollable frames in jupyter notebook?](https://stackoverflow.com/questions/41641205/how-to-avoid-output-into-scrollable-frames-in-jupyter-notebook) – kHarshit Sep 28 '21 at 06:43
  • Thanks - that goes some way to answer the secondary question, but not the primary one (why does this happen?). – Abijah Sep 28 '21 at 08:48
  • The reason it's so is because jupyter by default limits its output, e.g. consider a scenario, where the error message is too long. This is more of a feature. – kHarshit Sep 28 '21 at 12:28
  • But i am creating two figures the same size, why is it doing it for one and not the other? – Abijah Sep 28 '21 at 15:08

1 Answers1

2

But i am creating two figures the same size, why is it doing it for one and not the other?

It must be because you have clicked the rectangle box on the left of the output enter image description here

blackraven
  • 5,284
  • 7
  • 19
  • 45