[Scilab-users] Lack of Scatter type plots in scilab
Tim Wescott
tim at wescottdesign.com
Tue Nov 15 19:24:12 CET 2016
If you just want to do an ordinary scatter plot, set the line style to a
negative number in your plot2d call:
-->x = (-5:5)' + rand(11, 1, "n");
-->y = m * x + x_0 + rand(11, 1, "n");
-->b = [ones(x) x] \ y;
-->clf; plot2d(x, y, style = -2); plot2d([-5; 5], [1 -5; 1 5] * b)
As with continuous lines you can set different styles, but instead of
getting different colored lines you'll get different shapes (squares,
circles, pluses, etc.)
Did this help?
On Mon, 2016-11-14 at 14:37 -0600, n.gulunay wrote:
> Nobody responded to this message. May be I addressed it wrongly.
> Is there a seperate email address such requests should be sent to?
>
>
>
>
>
>
> -------- Original message --------
> From: "n.gulunay" <n.gulunay at gmail.com>
> Date: 11/12/16 8:14 AM (GMT-06:00)
> To: Users mailing list for Scilab <users at lists.scilab.org>
> Subject: Re: [Scilab-users] Facet color in Vers. 5.5.2
>
> Hi Rafael,
> Jens's question reminds me the grayplot problem that you helped me
> with.
> If you recall I went though all that gymnastics to create a proper
> set of Inputs like you are describing here. Why doesnt scilab have
> option of coding scatter type input ( that is x,y and z all are
> vectors of the same size ) for all these plotting utilities? That will
> be a good service to the user community.
>
>
>
>
>
>
> Sent via the Samsung GALAXY S® 5, an AT&T 4G LTE smartphone
>
>
> -------- Original message --------
> From: Rafael Guerra <jrafaelbguerra at hotmail.com>
> Date: 11/12/16 6:49 AM (GMT-06:00)
> To: Users mailing list for Scilab <users at lists.scilab.org>
> Subject: Re: [Scilab-users] Facet color in Vers. 5.5.2
>
> Hi Jens,
>
>
>
> You need a proper input to plot3d (x and y monotonous with length n1
> and n2, and z with size n1 x n2):
>
>
>
> clear;clf();
>
> plot3d([01],[01],[00;00])
>
> ce=gce();
>
> ce.color_flag=0;
>
> ce.color_mode=5; // 5 = red; 1 = black
>
>
>
> Regards,
>
> Rafael
>
>
>
> From: users [mailto:users-bounces at lists.scilab.org] On Behalf OfJens
> Simon Strom
> Sent: Saturday, November 12, 2016 12:00 PM
> To: Users mailing list for Scilab <users at lists.scilab.org>
> Subject: [Scilab-users] Facet color in Vers. 5.5.2
>
>
>
>
> Hi Scilab experts,
> please help me to get the facet black, not cyan.
>
> plot3d([0 1 1 0]',[0 0 1 1 ]',[0 0 0 0]')
> ce=gce();
> ce.color_flag=0;// Help page says: "All facets are painted using the
> color index and method defined by color_mode"
> ce.color_mode=1//Help page says: "The color of the facet when
> color_flag value is 0" Index 1 should produce Black, but CYAN is
> delivered.
> //getcolor
>
> Regards
> Jens
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
--
Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.
Phone: 503.631.7815
Cell: 503.349.8432
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scatter.png
Type: image/png
Size: 4947 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20161115/97553a3a/attachment.png>
More information about the users
mailing list