help-octave
[Top][All Lists]
Advanced

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

Re: graphical output in Octave


From: Ronald Crummett
Subject: Re: graphical output in Octave
Date: Tue, 27 Feb 2007 05:54:50 -0800

Thomas-

What version of Octave are you using?  Right now there is an effort
underway to overhaul Octave plotting capabilities so that they are more
MATLAB-compatible, but in the meantime some of the plotting commands are
a bit of a mess in the later versions.  

-Ron

----- Original Message -----
From: Thomas Schmelzer <address@hidden>
Date: Tuesday, February 27, 2007 1:39 am
Subject: graphical output in Octave
To: address@hidden

> Dear Experts,
> 
> I am a pro bono teaching assistant at the AIMS, an ambitious 
> project to teach 
> the best students from all over Africa.
> People here use Python and Octave. I am very familiar with MATLAB 
> and have 
> some difficulties to adapt some
> MATLAB code to Octave. Here is a tiny fragment that does not work 
> in Octave. 
> Your help is very appreciated.
> 
> Best,
> Thomas
> 
> I am plotting two columns of the matrix X, all columns represent a 
> function 
> sampled at t
> 
> 
> % I don't know how to make lines more thick?
> plot(t, X(S1,1:end), t, X(S2,1:end), '--', 'LineWidth',3 );
> 
> % It works without the FontSize command.
> 
> xlabel('Time', 'FontSize', 18)
> 
> ylabel('Number', 'FontSize', 18)
> 
> % I couldn't get legend to work at all
> 
> legend('Susceptible','Infected')
> 
> % Title with multiple lines and other kinky stuff
> 
> title({['SIR model, L.J.S. Allen, p.286'];['\beta=', num2str
> (beta), '; ', '\gamma=', num2str(gamma), '; ', 'R_0=', num2str
> (R0), '; ', 'N=', num2str(N_total)]},'FontSize', 18);
> 
> 
> -- 
> Thomas Schmelzer
> Balliol College, Oxford University Computing Laboratory
> Office: 0044 1865 283575, Mobile: 0044 7789 778187
> http://web.comlab.ox.ac.uk/thomas.schmelzer/
> 
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
> 


reply via email to

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