[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defining colors
From: |
Juan Pablo Carbajal |
Subject: |
Re: defining colors |
Date: |
Sat, 12 Nov 2011 20:44:46 +0100 |
On Sat, Nov 12, 2011 at 5:37 PM, Eduardo J. Adam <address@hidden> wrote:
> Dear octave users,
> Is It possible to define different colors to the traditional colors used by
> the command plot, by means of mixing red, blue and green colors and then,
> use this new color for a plot?
> How can I do that?
>
> Eduardo
> --
>
> Dr. Eduardo J. Adam
> Prof. Adjunto Instrumentación y Control de Procesos
> Facultad de Ingeniería Química
> Santiago del Estero 2654, (S3000AOJ), Santa Fe, SF, Argentina
> Tel. +54 (0342) 457-1167 Int. 2742
>
>
>
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
>
>
Sure!
colors are defined with a 3x1 vector each element between 0 and one or
0 and 255 depending on the function. The first element is the amount
of red, second green, and third is blue.
To plot with and arbitrary color just do
plot(rand(10,1),'-o', 'color', [0.8 0.2 0.2])
I hope this helps
--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/
- defining colors, Eduardo J. Adam, 2011/11/12
- Re: defining colors,
Juan Pablo Carbajal <=