octave-maintainers
[Top][All Lists]
Advanced

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

Re: improved surface: __go_draw_axes__


From: John W. Eaton
Subject: Re: improved surface: __go_draw_axes__
Date: Wed, 07 Nov 2007 16:41:20 -0500

On  7-Nov-2007, David Bateman wrote:

| John W. Eaton wrote:
| > On  7-Nov-2007, David Bateman wrote:
| > 
| > | Please use the attached version of the patch as hidden3d should be set
| > | by lines so as to avoid issues with the surfc function..
| > 
| > I applied this patch.
| > 
| > BTW, when I try something like
| > 
| >   pie (rand (3, 1))
| > 
| > with the current sources I'm seeing a plot with percentages but no pie
| > chart.  I haven't investigated yet, but that seems strange.  Can
| > anyone confirm, or is it just me?  I'm using gnuplot 4.2.
| > 
| > Thanks,
| > 
| > jwe
| > 
| 
| Set a colormap like
| 
| colormap jet
| 
| and see what happens..

Unfortuantely, there is no change (and since jet is the default
colormap, I wouldn't expect a change).

| Note I tested with gnuplot 4.0 and the last
| version of pie.m I sent had the test code
| 
| %!demo
| %! pie ([3, 2, 1], [0, 0, 1]);
| %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);
| 
| %!demo
| %! pie ([3, 2, 1], [0, 0, 1], {"Cheddar", "Swiss", "Camembert"});
| %! colormap([1,0,0;0,1,0;0,0,1;1,1,0;1,0,1;0,1,1]);
| %! axis ([-2,2,-2,2]);
| 
| That works fine for me with gnuplot 4.0

OK.  These demos don't seem to work for me.  The labels are present
but there is no pie.

Will you try the following and send the resulting debug.gp file to me?

  pie (rand (3, 1))
  drawnow ("x11", "/dev/null", "debug.gp")

I'm attaching the one generated on my system with the current
sources.  If you load this file in gnuplot on your system, does it
properly display a pie chart?

Thanks,

jwe


set terminal x11;
set output "/dev/null";

reset;
set origin 0, 0;
set size 1, 1;
set size ratio -1;
unset label;
unset title;
unset xlabel;
unset ylabel;
unset zlabel;
set grid noxtics;
set grid noytics;
set grid noztics;
set grid nomxtics;
set grid nomytics;
set grid nomztics;
set format x "%g";
set xtics;
unset x2tics;
set format y "%g";
set ytics;
unset y2tics;
set format z "%g";
set ztics;
unset logscale x;
unset logscale y;
unset logscale z;
set label "31%" at  -0.990110206893553,0.677998361506285 right rotate by 
0.000000 textcolor rgb "#000000";
set label "37%" at  -0.0339501030863104,-1.19951964990175 right rotate by 
0.000000 textcolor rgb "#000000";
set label "32%" at  1.0088956358355,0.649715011364281 left rotate by 0.000000 
textcolor rgb "#000000";
set xrange [-1.500000000000000e+00:1.500000000000000e+00] noreverse;
set yrange [-1.500000000000000e+00:1.500000000000000e+00] noreverse;
set border 431;
unset key;
set style data lines;
plot "-";
Inf Inf
e

reply via email to

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