help-octave
[Top][All Lists]
Advanced

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

Re: octave plotting vs. gnuplot plotting


From: Ben Abbott
Subject: Re: octave plotting vs. gnuplot plotting
Date: Tue, 26 Jul 2011 20:18:07 -0400

On Jul 26, 2011, at 7:24 PM, Ben Abbott wrote:

> On Jul 26, 2011, at 6:50 PM, Muhali <address@hidden> wrote:
> 
>> I don't seem to be able to get nice octave plots with the gnuplot backend. If
>> you compare this figure from gnuplot
>> 
>> http://octave.1599824.n4.nabble.com/file/n3697226/gnuplot.png 
>> 
>> with this one from octave
>> 
>> http://octave.1599824.n4.nabble.com/file/n3697226/octave.png 
>> 
>> the difference is pretty obvious. What am I doing wrong?
>> 
>> M.
>> 
>> 
>> --
>> View this message in context: 
>> http://octave.1599824.n4.nabble.com/octave-plotting-vs-gnuplot-plotting-tp3697226p3697226.html
> 
> The gnuplot version is using the wxt terminal, and includes a line object. 
> You can get the same result in Octave by ...
> 
> setenv ("GNUTERM", "wxt");
> x = (-10):0.01:10;
> plot (x, sin(x), "r")
> title ("What?")
> legend ("sin(x)")
> 
> Ben

To get the font you want for all text ...

setenv ("GNUTERM", "wxt");
set (0, "defaulttextfontname", "Linux Biolinum")
set (0, "defaultaxesfontname", "Linux Biolinum")
x = (-10):0.01:10;
plot (x, sin(x), "r")
title ("What?")
legend ("sin(x)")

Ben




reply via email to

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