[gradsusr] scatter plot: how to change markers and colors?

Henrique Barbosa hmjbarbosa at gmail.com
Wed Mar 24 18:51:56 EDT 2010


Jeffrey,

Unfortunately "set line" and "set cmark" only work if you are drawing
a marker with "draw mark". They don't work if you are doing a scatter plot.
Here's the important part of my script:

'set gxout scatter'
* data from file 1
'set line 1'
'set cmark 2'
'd varA.1;varB.1
* data from file 2
'set line 1'
'set cmark 3'
'd varA.2;varB.2

Grads completely ignores 'set line' and 'set cmark'!
Any other ideas?

Henrique


On Wed, Mar 24, 2010 at 7:43 PM, Jeffrey Duda <jdduda at iastate.edu> wrote:
> Henrique,
> Just used these commands today myself:
> http://www.iges.org/grads/gadoc/gradcomddrawmark.html
>
> The color is controlled by the set line command.  You need to use a
> number that represents a given color.  16 are default and can be found
> here: http://www.iges.org/grads/gadoc/16colors.html
> Just use the col# in the set line command.
>
> Jeff Duda
>
> On Wed, Mar 24, 2010 at 5:05 PM, Henrique Barbosa <hmjbarbosa at gmail.com> wrote:
>> Dear all,
>>
>> I need to plot different data sets on the same scatter plot. That's easy...
>> but how do I control which color and marker are used
>> for each display command? I searched the archive but didn't find
>> the answer.
>>
>> I tried to get everything red by:
>>
>> set ccolor 2
>> set line 2
>> set lfcols 2 2
>> set wxcols 2 2 2 2 2 2
>> set clopts 2
>>
>> but nonthing works... Grads always varies the markers and their
>> colors in its own way. Is it possible to control that?
>>
>> Thanks,
>> Henrique
>> _______________________________________________
>> gradsusr mailing list
>> gradsusr at gradsusr.org
>> http://gradsusr.org/mailman/listinfo/gradsusr
>>
>
>
>
> --
> Jeff Duda
> Iowa State University
> Meteorology Graduate Student
> 3134 Agronomy Hall
> www.meteor.iastate.edu/~jdduda
>




More information about the gradsusr mailing list