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: Sat, 28 May 2016 19:27:44 -0700

Awesome!  Is there a site that documents all this and more?  Thanks so much

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




reply via email to

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