help-octave
[Top][All Lists]
Advanced

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

Re: question about xlabel/ylabel position in octave with AquaTerm


From: Ben Abbott
Subject: Re: question about xlabel/ylabel position in octave with AquaTerm
Date: Wed, 26 Feb 2014 10:07:29 -0500

On Feb 26, 2014, at 5:08 AM, Philippe Piot <address@hidden> wrote:

> Dear All,
>  I am using octave 3.6.4 on OS 10.8 with AquaTerm. In some of my plot
> invoking xlabel (or ylabel), the text from xlabel/ylabel overlaps with
> the axis (numerical) labels. I therefore tried to, e.g., shift the
> xlabel lower so it does not overlap. I try relocating the xlabel and
> ylabel positions as follows:
> 
> plot (x,y);
> set (gca,'fontsize',14)
> hx=xlabel ('MyXaxis (units)','fontsize',14)
> hy=ylabel ('MyYaxis (units)','fontsize',14)
> set (hx,'position',[30 280 0]);
> set (hy,'position',[-10 300 0]);
> 
> The two lines have unfortunately no effects: the x- and y-label stays
> at the same locations. I hope somebody could let me know what I am
> doing wrong. I however noticed that if I do a
> get (hx)
> Ithe position is now set the value given in my set command ([30 280 0]]...
> 
> Thank you for your help,
> 
>                 -- Philippe.

Using gnuplot for the graphics means that we can't control the positioning of 
the ticklabels and axes labels.  If you use the FLTK graphics toolkit, then 
you'll be able to make adjustments to the axes labels.

Try ...

        close all
        graphics_toolkit fltk
        plot (x,y);
        set (gca,'fontsize',14)
        hx=xlabel ('MyXaxis (units)','fontsize',14)
        hy=ylabel ('MyYaxis (units)','fontsize',14)
        set (hx,'position',[30 280 0]);
        set (hy,'position',[-10 300 0]);

Ben



reply via email to

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