Re: mesh plot does not display title
Ben Abbott <bpabbott <at> mac.com>
2009-04-03 00:54:15 GMT
On Apr 2, 2009, at 4:52 AM, Ben Abbott wrote:
>
> On Apr 2, 2009, at 1:11 AM, Michael D. Godfrey wrote:
>
>> The attached script demonstrates a problem with
>> mesh(x,y,z):
>>
>> The plot title is not displayed in the gnuplot window.
>> The .eps output from print() shows the title text.
>> The gnuplot is 4.2. patch level 3. Octave is at
>> the current development level
>>
>> n=100;
>> base=0.2;
>> x = y = linspace (-base, base, n)';
>> [xx, yy] = meshgrid (x, y);
>> r = sqrt (xx .^ 2 + yy .^ 2);
>> z = -1./r;
>> axis([-base, base, -base, base, 0, -80])
>> mesh (x, y, z);
>> xlabel("x");
>> ylabel("y");
>> zlabel("z");
>> title("Conic Figure: z = -1/sqrt(x^2 + y^2)");
>
> opps ... try this one instead. The last attachment has an extra
> space appended to the file name.
>
(Continue reading)