chart shading and color
chart shading and color
I would like to create a chart with NBER recessions shaded and some other dates indicated by vertical lines. Although I can do that simply with the SHADING and GRID options, the default use of gray for the former and black for the latter makes things hard to distinguish. Can you suggest a good way to control the color of either the shading or the vertical grid lines to make them easier to distinguish? Thanks very much.
Todd Clark
Economic Research Dept.
Federal Reserve Bank of Cleveland
Economic Research Dept.
Federal Reserve Bank of Cleveland
Re: chart shading and color
Unfortunately, both of those are set to use grayscale rather than color. You can alter the level of gray in either (it's fill pattern 0 for the shading), but not the color. We can put that on the wish list.
Re: chart shading and color
What were you thinking of doing if it were possible?
Re: chart shading and color
For the chart I have in mind, with NBER shading and vertical lines marking some other dates of interest (specifically, the uncertainty events denoted in some of the work by Nick Bloom and others; some of these events fall in recession periods), what I am guessing would be most visible would be to keep the existing gray shading for the recessions and allow a color (e.g., red for visibility) for the grid lines of the other dates to be marked.
Todd Clark
Economic Research Dept.
Federal Reserve Bank of Cleveland
Economic Research Dept.
Federal Reserve Bank of Cleveland
Re: chart shading and color
I can add options to GRPARM to change the patterns for the grid lines and background shading. However, that idea works a lot better in color than in B&W:
I'm not sure how to render that in B&W without it either looking odd (as above) or getting back to the original problem.
I'm not sure how to render that in B&W without it either looking odd (as above) or getting back to the original problem.
Re: chart shading and color
Hello Tom,
from my point of view, options at GRPARM for setting the color of grind lines and the shaded area would be a perfect enhancement. Especially for presentations, those options would be a great plus.
Best regards
Peter
from my point of view, options at GRPARM for setting the color of grind lines and the shaded area would be a perfect enhancement. Especially for presentations, those options would be a great plus.
Best regards
Peter
Re: chart shading and color
Tom -- Thanks very much for that. The color works, as you suggest. The B&W is of course harder to make work.