Style

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.

Style

Unread postby msrahman » Tue Oct 19, 2021 4:50 pm

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
Attachments
Combined_One_U.xls
(389.5 KiB) Downloaded 518 times
experiment.rpf
(6.34 KiB) Downloaded 542 times
colorline.txt
(429 Bytes) Downloaded 535 times
msrahman
 
Posts: 48
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread postby TomDoan » Wed Oct 20, 2021 9:44 am

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.
TomDoan
 
Posts: 7388
Joined: Wed Nov 01, 2006 5:36 pm

Re: Style

Unread postby msrahman » Wed Oct 20, 2021 6:26 pm

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.
Attachments
colorline_exp.txt
(486 Bytes) Downloaded 535 times
experiment_one.rpf
(6.53 KiB) Downloaded 542 times
marker.pdf
(70.56 KiB) Downloaded 525 times
Combined_One_U_Experiment.xls
(391 KiB) Downloaded 511 times
msrahman
 
Posts: 48
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread postby TomDoan » Wed Oct 20, 2021 10:13 pm

The PDF wasn't done with RATS was it? It doesn't look like a RATS graph.
TomDoan
 
Posts: 7388
Joined: Wed Nov 01, 2006 5:36 pm

Re: Style

Unread postby msrahman » Thu Oct 21, 2021 7:11 am

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.
Attachments
Fig_Groups.xls
(32.5 KiB) Downloaded 533 times
Fig_1_a.xls
(39.5 KiB) Downloaded 521 times
groups_portfolio_combined.rpf
(2.84 KiB) Downloaded 535 times
msrahman
 
Posts: 48
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread postby TomDoan » Thu Oct 21, 2021 12:18 pm

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.
TomDoan
 
Posts: 7388
Joined: Wed Nov 01, 2006 5:36 pm

Re: Style

Unread postby msrahman » Thu Oct 21, 2021 4:28 pm

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.
Attachments
Exp_one.pdf
(46.45 KiB) Downloaded 545 times
msrahman
 
Posts: 48
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread postby TomDoan » Thu Oct 21, 2021 5:17 pm

See "Options for Adding a Key" in the description of SPGRAPH.
TomDoan
 
Posts: 7388
Joined: Wed Nov 01, 2006 5:36 pm

Re: Style

Unread postby msrahman » Fri Oct 22, 2021 11:54 am

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")
Attachments
Experiment.pdf
(45.82 KiB) Downloaded 534 times
experiment_one.rpf
(6.6 KiB) Downloaded 518 times
msrahman
 
Posts: 48
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread postby TomDoan » Fri Oct 22, 2021 2:59 pm

The dots use the fill color, not the line color.
TomDoan
 
Posts: 7388
Joined: Wed Nov 01, 2006 5:36 pm


Return to Graphics, Reports, and Other Output

Who is online

Users browsing this forum: No registered users and 1 guest