help-octave
[Top][All Lists]
Advanced

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

Re: confused MacOS octave newbie (graphics)


From: Ben Abbott
Subject: Re: confused MacOS octave newbie (graphics)
Date: Sun, 11 Mar 2012 13:01:50 -0400

On Mar 10, 2012, at 10:08 PM, dstrozzi wrote:

> Hi,
> 
> I'm a bit flummoxed getting setup to use octave on MacOS.  A graphics issue
> is what I'm stuck against, but I thought I'd explain my situation.  Maybe
> there's a better way to go.
> 
> This is motivated by helping a colleague use a bunch of matlab scripts I've
> written, without buying matlab.  I hope this doesn't become a case in point
> for spending more time than buying the commercial product :)
> 
> I've setup octave via fink.  I'm not a huge fink user, but it's on my
> system.  I have octave 3.6.1 installed and happily running this way. 
> Macports is also on my system (not updated for a while).  'port list octave'
> and octave-devel give 3.2.4 and 3.4.3, resp.  Both of which are far behind
> 3.6.1!
> 
> So 3.6.1 from fink runs.  All the math seems to work.  The issue is
> graphics.  My goal is to have plots with nice-sized (meaning bigger than
> default) text for axes labels.  I have a matlab script that sets default
> figure properties and makes me happy.  It seems octave doesn't quite
> cooperate with it.
> 
> I've tried:
> 
> * gnuplot and aquaterm - my script changes the font size, but the text (esp
> y label) overlaps the y tick numbers.  In matlab itself they don't.  I can
> get around this by doing something like 'ylabel({'foo','','',''})' (put in
> blank lines).  But I have a lot of plotting funcs, so I'd probably want to
> modify ylabel itself.  Which is doable.
> 
> * gnuplot and X11 - similar to aquaterm
> 
> * fltk - fink has 1.3, and I can use this with graphics_toolkit('fltk'). 
> But lots of things don't work, like symbols, superscripts, e.g.
> xlabel('\nu^2') gives exactly 'nu^2' not the Greek char. or 2 superscript.
> 
> Any help is appreciated!
> 
> Dave

The problems you've encountered with Gnuplot is one of the reasons the 
developers decided to add support for native OpenGL graphics toolkit. The fltk 
toolkit is the first OpenGL graphics toolkit to be added.

The fltk graphics toolkit does properly position text (and other objects) so 
there are no overlaps. Unfortunately, neither TeX or LaTeX markup is supported 
by the fltk graphics toolkit. It is intended that this be added.

This project is listed on the Octave Wiki under proposed Google Summer of Code 
projects.

        
http://octave.org/wiki/index.php?title=GSoC_Project_Ideas#TeX.2FLaTeX_markup

Unfortunately, I'm not able to offer you a solution. Adding extra lines to the 
xlabel is a nice trick I hadn't considered. Thanks for that.

I apologize for hijacking your question. Perhaps this will help inspire a 
volunteer to tackle this project.

Ben




reply via email to

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