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

Home » Public Forums » archive » Adding line to a barplot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Adding line to a barplot [message #93179] Mon, 09 May 2016 07:53 Go to previous message
jecca.baker is currently offline  jecca.baker
Messages: 12
Registered: October 2014
Junior Member
Hello,

I use the following lines to plot a line on top of a barchart

data1=[277.9,260.4,257.6,169.0,89.3,31.7,18.9,23.2,79.6,163. 4,207.6,255.5]
data2=[26,26,27,27,26,26,25,25,26,27,27,26]
cols=intarr(12)+80
cgbarplot,data1,yrange=[0,300],color=cols
cgaxis, yaxis=1,yrange=[20,30],/save
cgoplot,indgen(12)+0.5, data2,psym=-6

My problem is that I cannot make the points in the line centre over the middle of the bars. Does anyone know how to fix this?

Many thanks,

Jess
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Completely omit NaNs from line plot
Next Topic: anyone using "an introduction to programmin g with IDL, by Kenneth P Bowman ?

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

Current Time: Wed Oct 08 13:52:01 PDT 2025

Total time taken to generate the page: 0.01346 seconds