help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multi-line xticklabel


From: Brett Green
Subject: Re: Multi-line xticklabel
Date: Tue, 28 Jul 2020 15:09:43 -0400


On Tue, Jul 28, 2020 at 2:58 PM nrjank <jankowskin@asme.org> wrote:
I have moved your message to the Octave-help list.


Laura wrote
> Hello,
>
> I am trying to split my axis label in two, but it is not working...
>
> How can I do that ? Here is what I have tried.

>
> I am trying to slit these two setence :
> - Epaisseur du tricot
> - Accroche du tricot"
>
> Thanks for your help
<https://octave.1599824.n4.nabble.com/file/n4697918/Capture.png>

--
Sent from: https://octave.1599824.n4.nabble.com/Octave-General-f1599825.html

Axis label or xticklabel? The subject line and body text are asking different questions.

You should be able to do this with a newline character, \n
Try the following examples.

Axis label:

xlabel("Hi\nthere")

xticklabel:

xtl = get(gca,"xticklabel");
xtl(1,1) = "Hi\nthere";
set(gca,"xticklabel",xtl);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]