comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Overlaying bar plot on line plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Overlaying bar plot on line plot [message #70645] Mon, 26 April 2010 08:56
Matt[1] is currently offline  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.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: laplacian Kernal
Next Topic: Re: Spam Overflow...

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:59:42 PDT 2025

Total time taken to generate the page: 0.00481 seconds