help-octave
[Top][All Lists]

## Re: subplot titles and labels overlap

 From: indium Subject: Re: subplot titles and labels overlap Date: Thu, 22 Sep 2011 15:26:34 +0200 User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Sep 22, 2011 at 03:00:45PM +0900, Tatsuro MATSUOKA wrote:

Hi,

I get greek letters and sub- and superscript in gnuplot without
problems. When running gnuplot directly (called by you, not via octave)
you have to tell gnuplot to process \tau to a greek tau letter: set term
x11 enhanced.

I suppose octave does this when one of its commands contains a property
interpreter = 'tex'.

Maybe the fact that you don't see the greek letter is related to the
fact that octave did not tell gnuplot to switch on 'tex' interpretation
when it first opened a graphics window.

You could try to set "set term x11 enhanced" in your ~/.gnuplot file,
which is read by default. This reading is done also when gnuplot is
called by octave: i have my gnuplot macros available in octave as well.

indium

> Hello
>
> As far as I know, greek letter like \tau can only be available in TeX mode.
> See
> http://www.gnu.org/software/octave/doc/interpreter/Multiple-Plot-Windows.html#Multiple-Plot-Windows
>
> Table 15.1: Available special characters in TeX mode
>
> The gnuplot does not have feature to represent TeX letter in the interactive
> terminal
> (X11, aqua, windows, wxt and etcs.).  You may only see it in printed files.
>
> Regards
>
> Tatsuro
>
> --- On Thu, 2011/9/22, Philip Hahn wrote:
>
> >
> >
> >
> > On Wed, Sep 21, 2011 at 7:44 PM, Philip Hahn <address@hidden> wrote:
> >
> >
> >
> >
> >
> >
> > On Wed, Sep 21, 2011 at 7:38 PM, Ben Abbott <address@hidden> wrote:
> >
> > On Sep 21, 2011, at 8:33 PM, Philip Hahn wrote:
> >
> > > On Wed, Sep 21, 2011 at 7:30 PM, Ben Abbott <address@hidden> wrote:
> > >
> >
> > >> Have you tried using 3.4.2 with the gnuplot backend?
> > >
> > > I tried; it gave me the same error message dealing with \tau.
> > >
> > > octave:1> graphics_toolkit gnuplot
> > > octave:2> close all
> > > octave:3> plot(1)
> > > octave:4> title("\tau");
> > > warning: ft_render: skipping missing glyph for character     '
> > > warning: ft_render: skipping missing glyph for character     '
> > > octave:5>
> > >
> > > unless I am invoking it incorrectly.
> > >
> > > thanks for your help,
> > >
> > > philip
> > >
> > > Ben
> >
> > I'm not sure why you are getting the warning.  I don't see that.
> >
> > However, the title command is being interpreted as "<tab>au"
> >
> > To get \tau, you'll need to either ...
> >
> >         title ('\tau')
> >
> > ... or ...
> >
> >         title ("\\tau")
> >
> >
> > OK, the error message only occurs for the title command above, so it must
> > be an error relating to the <tab> interpretation.
> >
> > title("\\Tau") returns \Tau
> > title('\tau') returns "t"
> > title('\gamma') returns "g"
> >
> > Not greek symbols but the traditional letters. A font issue maybe?
> >
> >
> > OK, Ben, this is odd.
> > From the same instance of Octave I re-ran my script with \tau in it, and it
> > worked.
> > For some reason when I do it from the command line, however, it always
> > works like above (including in a few instance).
> >
> > However, with the gnuplot it does overlap axis labels with adjacent panes
> > at a font size greater than 12 (specifically 14 and 16). is there a simple
> > way to pad it?
> >
> > thanks,
> >
> > philip
> >
> >
> >
> > philip
> >
> >
> > Ben
> >
> >
> >
> >
> _______________________________________________
> Help-octave mailing list