[Scilab-users] Stacked 2D plot in 3D
Jean-Philippe Grivet
jean-philippe.grivet at wanadoo.fr
Wed Jan 31 12:07:50 CET 2018
Hi Claus, Rafeal and Samuel,
Here is another method for stacked plots, which was suggested to me
years ago by Serge Steer.
I used it succssfully for about 12 individual curves.
Cheers,
JP Grivet
Le 28/01/2018 20:19, Claus Futtrup a écrit :
> Hi Rafael and Samuel
>
> Thank you both for great suggestions - and as I thought - I was on the
> wrong path. Indeed I looked at plot3d3 and didn't catch that this one
> is suitable for what I wish to do. I see clearly with the example by
> Samuel that it is quite a smart way. I initially made the mistake to
> feed vectors (frequencies + angles), and it complained (and it
> revealed, it seems, that plot3d3 is based on param3d1). I see it needs
> matrices. The example by Rafael made that clear to me. Thanks Rafael
> for a very good example to work with.
>
> Best regards,
> Claus
>
> On Sun, Jan 28, 2018 at 5:24 PM, Rafael Guerra
> <jrafaelbguerra at hotmail.com <mailto:jrafaelbguerra at hotmail.com>> wrote:
>
> Hi Samuel,
>
> Absolutely, the two param3d functions should be merged.
>
> The vectorised assignment example should also be included in the
> helpfile.
>
> Regards,
> Rafael
>
> -----Original Message-----
> From: users [mailto:users-bounces at lists.scilab.org
> <mailto:users-bounces at lists.scilab.org>] On Behalf Of Samuel Gougeon
> Sent: Sunday, January 28, 2018 5:17 PM
> To: Users mailing list for Scilab <users at lists.scilab.org
> <mailto:users at lists.scilab.org>>
> Subject: Re: [Scilab-users] Stacked 2D plot in 3D
>
> Hello Rafael,
>
> About param3d() and param3d1():
> In 3 days, it will be the 10th birthday of this report:
> http://bugzilla.scilab.org/6155 <http://bugzilla.scilab.org/6155>
> Shall we make a present to other users? :) By the way, beyond
> their pages, don't you think the functions themselves should be
> merged?
>
> Le 28/01/2018 à 16:39, Rafael Guerra a écrit :
> > .../...
> > for i=1:nf;
> > e.children(i).foreground = color('dark blue');
> > e.children(i).thickness = 2;
> > end
>
> Or more simply:
>
> e.children.foreground = color('dark blue'); e.children.thickness = 2;
>
> This kind of vectorized assignment (almost always) works.
>
> Cheers
> Samuel
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org <mailto:users at lists.scilab.org>
> http://lists.scilab.org/mailman/listinfo/users
> <http://lists.scilab.org/mailman/listinfo/users>
> _______________________________________________
> users mailing list
> users at lists.scilab.org <mailto:users at lists.scilab.org>
> http://lists.scilab.org/mailman/listinfo/users
> <http://lists.scilab.org/mailman/listinfo/users>
>
>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20180131/60e91468/attachment.htm>
-------------- next part --------------
x=linspace(-10,10,500);
clf;ax=gca();
ax.axes_visible='on';
xmin=-10;
xmax=+10;
ymin=-1;
ymax=2
ax.data_bounds=[xmin,ymin;xmax ymax];
yshift=0.2;
drawlater
for xshift=5:-0.4:-5
xfpoly([xmin x xmax],[ymin yshift+sinc(x+xshift) ymin],1)
e=gce();e.background=-2;
yshift=yshift-0.02;
end
drawnow()
More information about the users
mailing list