Title output weird fonts for gplt after xlabel with a greek font

View: New views
5 Messages — Rating Filter:   Alert me  

Title output weird fonts for gplt after xlabel with a greek font

by Lingyun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I met a strange problem. The code below runs OK in matlab. But I tried to run it in octave, the title fonts output strange.
xlabel('\lambda(nm)')
ylabel('\epsilon_i')
title('Imaginary part of the permittivity of gold')
Then the title output all in Greek letters instead of normal english letters.
But if xlabel contains normal English letters, then the title output correctly.
How to fix it?

Thanks.

Re: Title output weird fonts for gplt after xlabel with a greek font

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Dec 05, 2008 at 11:16:25PM -0800, Lingyun wrote:

>
> I met a strange problem. The code below runs OK in matlab. But I tried to run
> it in octave, the title fonts output strange.
> xlabel('\lambda(nm)')
> ylabel('\epsilon_i')
> title('Imaginary part of the permittivity of gold')
> Then the title output all in Greek letters instead of normal english
> letters.
> But if xlabel contains normal English letters, then the title output
> correctly.
> How to fix it?

What system are you using? And what Octave version?

        Thomas
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Title output weird fonts for gplt after xlabel with a greek font

by Lingyun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I am using Qtoctave 3.0 running on Ubuntu 8.10 64bit.
Thomas Weber-8 wrote:
On Fri, Dec 05, 2008 at 11:16:25PM -0800, Lingyun wrote:
>
> I met a strange problem. The code below runs OK in matlab. But I tried to run
> it in octave, the title fonts output strange.
> xlabel('\lambda(nm)')
> ylabel('\epsilon_i')
> title('Imaginary part of the permittivity of gold')
> Then the title output all in Greek letters instead of normal english
> letters.
> But if xlabel contains normal English letters, then the title output
> correctly.
> How to fix it?

What system are you using? And what Octave version?

        Thomas
_______________________________________________
Help-octave mailing list
Help-octave@octave.org
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Title output weird fonts for gplt after xlabel with a greek font

by Thomas Weber-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Dec 06, 2008 at 12:56:32PM -0800, Lingyun wrote:
>
> I am using Qtoctave 3.0 running on Ubuntu 8.10 64bit.
See
http://thread.gmane.org/gmane.comp.gnu.octave.bugs/9843
for the problem.

In short, I wanted to avoid one problem with gnuplot and introduced
another. The patch was changed since then, but the current Ubuntu
version still has the old patch.

You are for now best off setting the font explicitely using set().

        Thomas
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave

Re: Title output weird fonts for gplt after xlabel with a greek font

by Ben Abbott :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Dec 7, 2008, at 4:20 AM, Thomas Weber wrote:

> On Sat, Dec 06, 2008 at 12:56:32PM -0800, Lingyun wrote:
>>
>> I am using Qtoctave 3.0 running on Ubuntu 8.10 64bit.
> See
> http://thread.gmane.org/gmane.comp.gnu.octave.bugs/9843
> for the problem.
>
> In short, I wanted to avoid one problem with gnuplot and introduced
> another. The patch was changed since then, but the current Ubuntu
> version still has the old patch.
>
> You are for now best off setting the font explicitely using set().
>
> Thomas

Thomas (others?),

I don't see this problem with 3.03 or with the developer's sources.

Can someone confirm? ... I'm wondering if the absence foe me is due  
running the developer's gnuplot (4.3, and about a week old).

Ben
_______________________________________________
Help-octave mailing list
Help-octave@...
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave