Scatter

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

Scatter

Postby ivory4 » Fri Jul 16, 2010 6:05 am

Code: Select all
open data sum.txt
calendar(q) 1947:1
data(format=free,org=columns) 1947:1 2009:1 lgdp
set lgdp / = 100*lgdp
compute nobs=2009:1-1949:1+1


Plot Spectrum of bkcycle
Because I need to make some changes to the graphic option, I follow the default setting in @spectrum but I did not use the .src directly

Code: Select all

@bkfilter(nodiff) lgdp / bkcycle

set frequencies 1 256 = (t-1.0)/256
frequency 2 512
rtoc 1949:1 2009:1 1
# bkcycled
# 1
fft 1
cmult(scale=1.0/(2.0*%pi*nobs)) 1 1
window(type=flat) 1 / 2
ctor 1 256
#    2
#  bk_spect



Code: Select all
scatter(hshade=||0.05,0.257||) 1
# frequencies bk_spect 1 256


Why the graph is scattered but not smoothed line?
ivory4
 
Posts: 149
Joined: Mon Aug 24, 2009 12:16 pm

Re: Scatter

Postby TomDoan » Fri Jul 16, 2010 8:12 am

ivory4 wrote:
Code: Select all
scatter(hshade=||0.05,0.257||) 1
# frequencies bk_spect 1 256


Why the graph is scattered but not smoothed line?


You forgot the STYLE=LINES option. The default for SCATTER is disconnected symbols at the x-y points.
TomDoan
 
Posts: 2720
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