[bug #55204] Axes title and xlabel overlap when "xaxislocation" is "top"

"Dmitri A. Sergatskov" <[email protected]> Wed, 22 Apr 2026 21:55:59 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

Follow-up Comment #3, bug #55204 (group octave):

Attached CSET (file bug55204_topxlabel_20260422_100.cset).
Fixes that for me:

octave:1> plot (1:3)
octave:2> set (gca, "xaxislocation", "top")
octave:3> xlabel XLABEL
octave:4> title TITLE

see (file xlabel_on_top.png).

The diff is for dev, but I assume could/should apply to stable as well.

Dmitri.
-- 


(file #58497, file #58498)

    _______________________________________________________

Additional Item Attachment:

Name: bug55204_topxlabel_20260422_100.cset Size: 2.2KiB

<https://file.savannah.gnu.org/file/bug55204_topxlabel_20260422_100.cset?file_id=58497>

Name: xlabel_on_top.png              Size: 39KiB
    <https://file.savannah.gnu.org/file/xlabel_on_top.png?file_id=58498>


    AGPL NOTICE

These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-f290f6b25beb8cb99bbe243a6cd2c5fef79ffcde.tar.gz


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55204>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCael8LwAKCRCqLAuaBUf3
TmXzAP9CGiFs6qQRIS6S7zRWgp9TXA6CqAUD0QLm6CW1Hk2/qwD/WOqSC4W9vbVa
BmGiUXTaaEQ7uS6BqCXEBvZBmZr9sAU=
=eGdH
-----END PGP SIGNATURE-----