Printing Colored Graph in PDF

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

Printing Colored Graph in PDF

Unread postby msrahman » Wed Jun 02, 2021 1:02 pm

Hello,

I have created a set of colored graphs using spgraph command (First BW and then using the color button turned into colors) . When I print these in PDF, all appear[code][/code] as Black and White. How can I keep the colors?

spgraph(vfields=2,nosamesize,hfields=2,key=bellow,klabels=||"US","UK","JP","CN","GR","FR","IT","SP","BL","NL"||,header="Figure 1. Responses of US variables to a one standard deviation uncertainty shock.")
grparam header 18
grparam key 13
grparm(height=4.5,width=7.0)
grparm(define="line_bw_1=0,0.0,2.0")
grparm(define="line_bw_2=0,0.0,2.0")
grparm(define="line_bw_3=0,0.0,2.0")
grparm(define="line_bw_4=0,0.0,2.0")
grparm(define="line_bw_5=0,0.0,2.0")
grparm(define="line_bw_6=0,0.0,2.0")
grparm(define="line_bw_7=0,0.0,2.0")
grparm(define="line_bw_8=0,0.0,2.0")
grparm(define="line_bw_9=0,0.0,2.0")
grparm(define="line_bw_10=0,0.0,2.0")
graph(style=line,height=100,width=100,header="Real GDP") 10
# RGDPL
# UKRGDPL
# JPRGDPL
# CNRGDPL
# GRRGDPL
# FRRGDPL
# ITRGDPL
# SPRGDPL
# BLRGDPL
# NLRGDPL

graph(style=line,height=100,width=100,header="Industrial Production") 10
# IPI
# UKIPI
# JPIPI
# CNIPI
# GRIPI
# FRIPI
# ITIPI
# SPIPI
# BLIPI
# NLIPI

graph(style=line,height=100,width=100,header="Private Consumption Ex") 10
# PCE
# UKPCE
# JPPCE
# CNPCE
# GRPCE
# FRPCE
# ITPCE
# SPPCE
# BLPCE
# NLPCE

graph(style=line,height=100,width=100,header="Private Consumption Ex") 10
# GCE
# UKGCE
# JPGCE
# CNGCE
# GRGCE
# FRGCE
# ITGCE
# SPGCE
# BLGCE
# NLGCE
spgraph(done)
msrahman
 
Posts: 46
Joined: Wed Oct 31, 2012 2:32 pm

Re: Printing Colored Graph in PDF

Unread postby TomDoan » Wed Jun 02, 2021 2:46 pm

It sounds like you're handling the colors wrong. Graphs are (by default) color so you should be able to just save the original graph as PDF.
TomDoan
 
Posts: 7240
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 2 guests

cron