help-octave
[Top][All Lists]
Advanced

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

Re: printing greek characters


From: Clinton Winant
Subject: Re: printing greek characters
Date: Sun, 29 May 2016 13:15:27 -0700

Dmitri:  I tried a simple version of what you sent:

>> graphics_toolkit("gnuplot")
>> close all
>> setenv("GNUTERM", "qt")
>> set(0, 'DefaultAxesFontname', 'Times New Roman')
>> set(0, 'DefaultTextFontname', 'Times New Roman')
>> t=linspace(0,0.99,100);
>>  l = 500 ./ sqrt(1-t.^4);
>>  plot(t,l)
Unknown or ambiguous terminal name 'qt'
>>  axis([0,1,200,2400]); ylabel('λ (Å)');

The output from print -deps plotgreek.eps is attached.  Can you suggest how I might work around?
Ubuntu 16.04   fresh install of octave 4.0.0

On Sat, May 28, 2016 at 7:09 PM, Dmitri A. Sergatskov <address@hidden> wrote:


On Sat, May 28, 2016 at 6:45 PM, Clinton Winant <address@hidden> wrote:
Octave 4.0,0
graphics_tolkit qt or fltk

plot([ 0 1],[0 1],'k');
text(0.5,0.5,'\lambda^2')

produces a lovely greek character in the middle of the display, but

print -deps greektest.eps

produces an eps file w/o the greek character.

This is more in the way of a query to add the capability than anything else.  Sometimes greek characters are a must.


​If you can use gnuplot backend you can do e.g. things like:

​octave:1> graphics_toolkit("gnuplot")
octave:2> setenv("GNUTERM", "qt")
octave:3> set(0, 'DefaultAxesFontname', 'Times New Roman')
octave:4> set(0, 'DefaultTextFontname', 'Times New Roman')
octave:5> t=linspace(0,0.99,100);
octave:6> l = 500 ./ sqrt(1-t.^4);
octave:7> plot(t,l)
octave:8> axis([0,1,200,2400]);
octave:9> title ('倫敦穿透深度')
octave:10> ylabel('λ (Å)')
octave:11> xlabel('温度 (T/T_c)')
octave:12> print("l_vs_t.pdf", "-dpdfcairo", "-FTimes New Roman:18")

(and get the attached result)

 

Clinton Winant

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



Attachment: plotgreek.eps
Description: PostScript document


reply via email to

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