![]() I thought that Octave would just know how to create a plotting window, or at least know how to call gnuplot since it was bundled with it in the DMG as an extra. No clue what the flags mean, but they are :ĬFLAGS="-m32 $/lib"įinally, I've used vim to edit my (previously non-existent) ~/.bash_profile to readĮxport GNUPLOT=X11 export PATH=/Applications/Octave.app/Contents/Resources/bin:/Applications/Gnuplot.app/Contents/Resources/bin/:$PATH I've edited the /Applications/ML-class/Octave.app/Resources/Contents/bin/mkoctave-3.4.0 (symlinked from mkoctave) for Octave to contain the extra flags just after the block comment at the top. I don't know gnuplot commands though, and presumably I don't have to for ML. When it loads, gnuplot says it has its' "terminal type set to 'aqua'" - which is presumably good. When I load gnuplot at a terminal, it loads ok. so when I type octave at a terminal, it doesn't load. I use Inkscape so I already have X11, I'm pretty sure. Seeing a window to draw in would be progress at this point :( I'm not quite sure what to expect to see, but I'm pretty sure a window should be opening with something in it. The help link there is from 2007, so I'm wondering if it doesn't apply if you've just downloaded Octave, and then discovered that you also need to download and install something called Aquaterm, although plot(x,y) in Octave still returns instantly and no new windows pop up from Octave or GnuPlot or AquaTerm. With this, you can also compare the different rendering apps and discover which one you like more.Well, I didn't really see myself using vi on Halloween this year, but here we go. If you are running Octave and wish to change the GNUTERM there, you can do so with the setenv function, like so. You can read more about setting environment variables on StackOverflow. Set GNUTERM to x11 when you want to do your graphing in X11 and set GNUTERM to aqua when you want to do your graphing in AquaTerm. The way you control this is through the environment variable, GNUTERM. If you have installed the X11 variant, you can also choose to do the rendering from within X11. I like AquaTerm because the graphs look really smooth and nice, like you would expect on a Mac :) AquaTerm is basically a vector renderer which Octave can use to plot its graphs. When you install Octave via MacPorts, AquaTerm also gets installed. To get a full list, run: port variants octave-devel This ensures that both of those are in sync.įeel free to add other variants if you like, like X11 support or offline documentation. I added the gcc45 variant because one of the dependencies, atlas, needs gcc45 to compile. To install Octave, run the following from the terminal: sudo port install octave-devel +gcc45Īnd then wait.as there are a lot of things that need being compiled. ![]() With octave, I found the scaling of elements on the graph to be different sizes and that bugged me. In my brief testing with the two, the biggest difference for me was that the graphs plotted in octave-devel looked more like their OS counterparts. ![]() That being said, it's still pretty easy to get Octave up and running in both Snow Leopard and Lion.Īt the time of this post, here's two version of Octave to choose from: octave (version 3.2.4) and octave-devel (version 3.4.3). Most of the time, installing things with MacPorts is pretty easy however, I have found that GNU Octave can be a little tricky. Installing Octave on OSX with MacPorts Sunday, November 6, 2011
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |