Graph with series differentiate by colors and symbols

For questions and discussion related to graphs, reports, and other output, including issues related to presenting or publishing results.
Post Reply
Aktar
Posts: 35
Joined: Thu Apr 16, 2009 8:12 am

Graph with series differentiate by colors and symbols

Unread post by Aktar »

Hello,

I don't find the code needed for differentiate series with symbol and in the same time with color on a same graph. The style symbols give the same output.

Thank You.
moderator
Site Admin
Posts: 269
Joined: Thu Oct 19, 2006 4:33 pm

Re: Graph with series differentiate by colors and symbols

Unread post by moderator »

If you want series to have both different colors and different symbols, you can use the Graph Style Sheet feature. This allows you to create your own style definitions, saved in a text file, which you read in using OPEN and GRPARM(IMPORT=...) instructions.

If you have version 8 or 9, see the Introduction (Section 3.16 in particular) for details.

Regards,
Tom Maycock
Estima
randerson
Posts: 15
Joined: Wed Dec 01, 2010 11:24 am

Re: Graph with series differentiate by colors and symbols

Unread post by randerson »

Might someone post the 6-digit hex codes for the line default line colors? I did not see these in the manual. These appear to be needed when using graph style sheets to add symbols to colored lines.

Thanks
TomDoan
Posts: 7825
Joined: Wed Nov 01, 2006 4:36 pm

Re: Graph with series differentiate by colors and symbols

Unread post by TomDoan »

These are the colors of the first nine:
  1. RGB_BLACK 000000
  2. RGB_BLUE 0000FF
  3. RGB_GREEN 00FF00
  4. RGB_RED FF0000
  5. RGB_CYAN 00FFFF
  6. RGB_MAGENTA FF00FF
  7. RGB_YELLOW FFFF
  8. RGB_ORANGE FF8000
  9. RGB_BROWN 804000
hardmann
Posts: 259
Joined: Sat Feb 26, 2011 9:49 pm

Re: Graph with series differentiate by colors and symbols

Unread post by hardmann »

Dear Tom:
I have four series and want to graph with series differentiate symbols and same balck.
how can I do without using Graph Style Sheets.

Maybe style can be coded directly. these style acts as parameteras.

graph()
# x / pattern,color,gray,thickness,filled,symbol

graph()
# x / 1,0,,0,6,0


Hardmann
TomDoan
Posts: 7825
Joined: Wed Nov 01, 2006 4:36 pm

Re: Graph with series differentiate by colors and symbols

Unread post by TomDoan »

That's what style sheet are for. If you want a mix of black and white and color, just make them all color, but use RGB mappings for shades of gray, which have equal values of R, G and B. (F0F0F0 is very light, E0E0E0 is slightly darker, etc.).
Post Reply