Style

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Style

Unread post 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
Attachments
Combined_One_U.xls
(389.5 KiB) Downloaded 4580 times
experiment.rpf
(6.34 KiB) Downloaded 4544 times
colorline.txt
(429 Bytes) Downloaded 4398 times
TomDoan
Posts: 7776
Joined: Wed Nov 01, 2006 4:36 pm

Re: Style

Unread post 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.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread post 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.
Attachments
colorline_exp.txt
(486 Bytes) Downloaded 3941 times
experiment_one.rpf
(6.53 KiB) Downloaded 3900 times
marker.pdf
(70.56 KiB) Downloaded 3781 times
Combined_One_U_Experiment.xls
(391 KiB) Downloaded 3684 times
TomDoan
Posts: 7776
Joined: Wed Nov 01, 2006 4:36 pm

Re: Style

Unread post by TomDoan »

The PDF wasn't done with RATS was it? It doesn't look like a RATS graph.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread post 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.
Attachments
Fig_Groups.xls
(32.5 KiB) Downloaded 3346 times
Fig_1_a.xls
(39.5 KiB) Downloaded 3191 times
groups_portfolio_combined.rpf
(2.84 KiB) Downloaded 3142 times
TomDoan
Posts: 7776
Joined: Wed Nov 01, 2006 4:36 pm

Re: Style

Unread post 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.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread post 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.
Attachments
Exp_one.pdf
(46.45 KiB) Downloaded 2846 times
TomDoan
Posts: 7776
Joined: Wed Nov 01, 2006 4:36 pm

Re: Style

Unread post by TomDoan »

See "Options for Adding a Key" in the description of SPGRAPH.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

Re: Style

Unread post 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")
Attachments
Experiment.pdf
(45.82 KiB) Downloaded 2651 times
experiment_one.rpf
(6.6 KiB) Downloaded 2237 times
TomDoan
Posts: 7776
Joined: Wed Nov 01, 2006 4:36 pm

Re: Style

Unread post by TomDoan »

The dots use the fill color, not the line color.
Post Reply