Overlaying bar plot on line plot [message #70645] |
Mon, 26 April 2010 08:56 |
Matt[1]
Messages: 23 Registered: December 2006
|
Junior Member |
|
|
Hi
I am trying to overlay a bar plot on a line plot. Unfortunately, my
tick marks on the x-axis are not lining up. I think this is because
the bars are fatter, so the first tick related to the bars is placed a
bit further to the right. I have tried plotting without using tick
marks, but this is still not acceptable since the plots don't line up
properly. Currently, I am creating the plot with a call to PLOT and
use the /nodata keyword, I then add my line data using OPLOT with
psym=-3, and finally add the bar graphics using BAR_PLOT with the /
overplot keyword. I am using monthly precipitation data for a year, so
there are 12 values for the x-axis. Is there a better way to do this?
interestingly, when I create the plot for a longer time period of 25
months I don't have this problem at all and the tick marks line up
perfectly.I am using the same commands for both plots.
Anyone have experience with this type of thing? Thanks.
|
|
|