help-octave
[Top][All Lists]
Advanced

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

Re: Empty plot


From: bpabbott
Subject: Re: Empty plot
Date: Fri, 17 Dec 2010 16:26:18 +0000 (GMT)

On Dec 17, 2010, at 09:24 AM, "John B. Thoo" <address@hidden> wrote:

On Dec 17, 2010, at 5:19 AM, Ben Abbott wrote:

> On Dec 16, 2010, at 10:39 PM, John B. Thoo wrote:
>
>> Hi. I'm sorry if this is a FAQ, but I haven't been able to find an answer.
>>
>> I'm using Octave 3.2.3 on Mac OS X 10.6.4 in X11. When I try to plot, I get an empty plot window and this:
>>
>> octave-3.2.3:1> getenv ("GNUTERM")
>> ans = x11
>> octave-3.2.3:2> x = 0:0.1:pi;
>> octave-3.2.3:3> plot (x, sin(x))
>> octave-3.2.3:4>
>> gnuplot> set palette file "-" binary record=64 using 1:2:3:4;
>> ^
>> line 0: Gray scale not sorted in gradient.
>>
>>
>> octave-3.2.3:4>
>>
>> When I start gnuplot on its own, I see that I have Version 4.2 patchlevel 5.
>>
>> Any help would be appreciated. Thanks.
>>
>> ---John.
>>
>> -----------------------------------------------------------------------
>> "There are no atheists in foxholes."
>> ---Fr. William T. Cummings, M.M. (WWII, Philippines)
>> [_The Grunt Padre_, CMJ Marian Pub., p. 56]
>
> http://atheism.about.com/od/atheismmyths/a/AtheistsFoxhole.htm
>
> John, please tell us where you got your Octave. Was it from MacPorts, Fink, Sourceforge, or somewhere else?
>
> Also it is possible to have more than one version of gnuplot. Please check which one Octave is using by typing ...
>
> __gnuplot_version__
>
> Since you're set up to use X11, please make sure the X11.app is running before you try to plot. I've had some troubles in X11 on MacOS X, and often have to quit X11 and start it again.
>
> Ben

Hello, Ben. Thanks for your reply.

I'm using Thomas Treichi's binary of Octave from sourceforge. The thing is that I could plot in X11 using Thomas's previous version on my former PowerBook 12". It was only after upgrading to Octave 3.2.3 i386 because I had gotten a MacBook Pro that plotting broke.

I had asked about this previously

<http://octave.1599824.n4.nabble.com/set-palette-file-quot-quot-binary-record-64-using-1-2-3-4-td2292036.html>

but didn't get any reply then. Unfortunately, I haven't been able to figure out the problem since, either.

By the way, this is what Octave returns for gnuplot version:

octave-3.2.3:1> __gnuplot_version__
ans = 4.2.5
octave-3.2.3:2>

Thanks again for your reply.

---John.
 
I haven't encountered the specific problem you are seeing. However, since you are using SnowLeopard, you'll want to read the link below, before upgrading to 10.6.5.

http://sourceforge.net/projects/octave/files//Octave%20MacOSX%20Binary/2009-10-03%20binary%20of%20Octave%203.2.3/README_OSX1065.txt/view

If you stick to 10.6.4, you might try installing a newer version of gnuplot. Be sure to place it where the one from Thomas' bundled is ... or use the "gnuplot_binary" function to point to the new one.

Ben


reply via email to

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