Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Idl-pvware > bar_plot barnam...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 5550 of 6020
Post > Topic >>

bar_plot barnames

by Indy <eaelupus@[EMAIL PROTECTED] > Mar 19, 2008 at 12:45 PM

Hi All,

I am having a problem with the BARNAMES keyword in BAR_PLOTS.  My
array, hours=indgen(24) to represent 0 to 23 hours in a day, is offset
by to the right by just over 1 tick.  So the bars line up with the
ticks correctly, but the numbers along the bottom are ****fted.  The
max is at 1400, but if you just read the numbers along the x-axis,
below, the ticks, you'd interpret this as 1300.

The small bit of plotting code is below...

; Hours Per Day
obs_hours = indgen(24)

;make 2 plots on 1 row 0 remain on the page
!P.MULTI=[0,2,1]

;turns off color table
DEVICE, DECOMPOSED=0

;make axes black
!P.COLOR=2

LOADCT, 3, NCOLORS=24,BOTTOM=1
colorIndices = indgen(24)+1
window, xsize = 1000, ysize = 500

; ADJUST THE Y axis for Hourly FRP
!Y.RANGE = [0,MAX(frp_hourly)*1.1]

bar_plot, frp_hourly, COLORS=colorIndices, BARNAMES=obs_hours, $,
 	BACKGROUND=255, BARWIDTH=0.75, BARSPACE=0.2, $
	TITLE = 'Hourly Total FRP' , $
	XTITLE = 'Local Hour (UTC+2)', $
	YTITLE = 'FRP(MW)'
 




 3 Posts in Topic:
bar_plot barnames
Indy <eaelupus@[EMAIL   2008-03-19 12:45:22 
Re: bar_plot barnames
Vince Hradil <hradilv@  2008-03-19 13:39:18 
Re: bar_plot barnames
Vince Hradil <hradilv@  2008-03-19 13:38:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 17:15:59 CDT 2008.