bug in plot3d2?

classic Classic list List threaded Threaded
2 messages Options
Gianluca Antonelli-2 Gianluca Antonelli-2
Reply | Threaded
Open this post in threaded view
|

bug in plot3d2?

Hi,

there is a strange behavior of the color feature using plot3d2.

When I use the following code:

h=gca();
h.axes_reverse(3)="on";

within an existing graphic made with plot3d2 the former color settings
are lost.

To reproduce it just add those two lines to the code of the help:

// code from help plo3d2
u = linspace(-%pi/2,%pi/2,40);
v = linspace(0,2*%pi,20);
X = cos(u)'*cos(v);
Y = cos(u)'*sin(v);
Z = sin(u)'*ones(v);
plot3d2(X,Y,Z);
e=gce();
e.color_mode=5; // change color
//end code from help plot3d2
h=gca();
h.axes_reverse(3)="on";


Best,
Gianluca

Pierre LANDO Pierre LANDO
Reply | Threaded
Open this post in threaded view
|

Re: bug in plot3d2?

Gianluca Antonelli a écrit :
> Hi,
>
> there is a strange behavior of the color feature using plot3d2.
>
> When I use the following code:
>
> h=gca();
> h.axes_reverse(3)="on";

Hi,

Indeed, it's a bug.
The back_color is used instead of the front color.

I open it :
http://bugzilla.scilab.org/show_bug.cgi?id=4773

--
-------------------------
Pierre LANDO
Software Development Engineer
-------------------------
Consortium Scilab
Digiteo
Domaine de Voluceau
Rocquencourt - B.P. 105
78153 Le Chesnay Cedex France
Tél. : +33.1.39.63.58.21