How to keep heading and rotated figure on the same page

== Thermodynamic properties of chemicals
#align(center, rotate(
  -90deg,
  reflow: true,

  [#figure(
    image("image.png", width: 80%),
    caption: "asdf"
) <fig_chems_Gf>],
)
)

I need to paste a rotated image directly below a heading, but the image keeps pagebreaking. How to ensure the image stays on the same page? There’s enough space. Thank you!

Could you provide more information?
Do you really want to rotate the image’s caption? Apart from the heading, image and caption, is there any other content on this page?

(A screenshot like this would be helpful)

Try reducing the width a little, it should stay on the page. Probably has to do with margins? This example should fit on a page:

== Thermodynamic properties of chemicals
#align(center, 
  rotate(-90deg, reflow: true,
    [#figure(
      rect(width: 24.1cm),
      caption: "asdf"
    ) <fig_chems_Gf>],
  )
)

With a width of 24.2cm it does not. But it does if you reduce the page margin.