Page 1 of 1

Style

Posted: Tue Oct 19, 2021 4:50 pm
by msrahman
I am trying to make the line in graphs a little thicker using a script (color line.txt). But I do not see any effects on thickness although the program runs well without any error message.
Any advice.
Sincerely,
Sajjadur Rahman

Re: Style

Posted: Wed Oct 20, 2021 9:44 am
by TomDoan
Your program is using thicklines.txt (which changes the width of B&W lines), not colorline.txt. And your colorline.txt file is designed as a source file, not as a style file and it doesn't put the color codes (the RGB codings of the colors). This is more like what you would want:
grparm(define="LINE_COLOR_01=0,000000,10.0")
grparm(define="LINE_COLOR_02=0,0000ff,10.0")
grparm(define="LINE_COLOR_03=0,00ff00,10.0")
grparm(define="LINE_COLOR_04=0,ff0000,10.0")
grparm(define="LINE_COLOR_05=0,00ffff,10.0")
grparm(define="LINE_COLOR_06=0,ff00ff,10.0")
grparm(define="LINE_COLOR_07=0,ffff00,10.0")
grparm(define="LINE_COLOR_08=0,808080,10.0")
grparm(define="LINE_COLOR_09=0,804000,10.0")
grparm(define="LINE_COLOR_10=0,804000,10.0")


and in the program you want

source colorline.txt

not GRPARM with IMPORT. Note, however, that you will probably find the 10 is way too thick.

Re: Style

Posted: Wed Oct 20, 2021 6:26 pm
by msrahman
Thanks for your help.

On another note, I am trying to insert marker (circles) on several colored impulse responses to show the significance (files attached). I successfully did it in the attached black and white pdf file. I added the following in the text file but it is not working.

grparm(define="SYMBOL_COLOR_01=0,FF0000,1")

Any help?

Sincerely,
Sajjadur.

Re: Style

Posted: Wed Oct 20, 2021 10:13 pm
by TomDoan
The PDF wasn't done with RATS was it? It doesn't look like a RATS graph.

Re: Style

Posted: Thu Oct 21, 2021 7:11 am
by msrahman
The PDF was done using RATS. I attached the files here.

Any advice how can I place marker on multiple colored lines (files attached before)?

Thanks.

Sincerely,
Sajjadur.

Re: Style

Posted: Thu Oct 21, 2021 12:18 pm
by TomDoan
STYLE=DOTS actually uses the "fill" styles, not the symbol styles (since you have no choice but to use color or grayscale). If you switch your styles on the overlays to 1 and 2 from 5 and 5, the color will do what you want. To get the B&W correct, add

grparm(define="fill_bw_02=0,0.0")

to redefine the style 2 fill to also be full black.

Re: Style

Posted: Thu Oct 21, 2021 4:28 pm
by msrahman
Thanks for your help again. One more thing. Is it possible to add any instruction in SPGRAPH to generate just one set of key instead of three set (as in the attached pdf file)?

Sincerely,
Sajjadur.

Re: Style

Posted: Thu Oct 21, 2021 5:17 pm
by TomDoan
See "Options for Adding a Key" in the description of SPGRAPH.

Re: Style

Posted: Fri Oct 22, 2021 11:54 am
by msrahman
Thanks again.

I replaced the yellow with teal (008080). The line is showing as teal but marker remains yellow as in the pdf files. Any thought?

source file:
grparm(define="LINE_COLOR_01=0,000000,2.0")
grparm(define="LINE_COLOR_02=0,0000ff,2.0")
grparm(define="LINE_COLOR_03=0,00ff00,2.0")
grparm(define="LINE_COLOR_04=0,ff0000,2.0")
grparm(define="LINE_COLOR_05=0,00ffff,2.0")
grparm(define="LINE_COLOR_06=0,ff00ff,2.0")
grparm(define="LINE_COLOR_07=0,008080,2.0")
grparm(define="LINE_COLOR_08=0,808080,2.0")
grparm(define="LINE_COLOR_09=0,ff8000,2.0")
grparm(define="LINE_COLOR_10=0,800000,2.0")

Re: Style

Posted: Fri Oct 22, 2021 2:59 pm
by TomDoan
The dots use the fill color, not the line color.