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

Home » Public Forums » archive » Re: Draw a Histogram Plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Draw a Histogram Plot [message #56914 is a reply to message #56911] Wed, 21 November 2007 08:38 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
>
> Brian, can you step through the code and see what is
> going on? I expect it draws the first PLOT command
> correctly (since you get a white background). But I
> would be MOST curious to know what happens then.
> Please be sure you have the latest version, too.

Stepped through (after making sure I had the latest) and didn't learn
too much...
after this section (lines 208-213):
Plot, binsToPlot, histdataToPlot, $ ; The fudged
histogram and bin data.
Background=backcolor, $ ; The background
color of the display.
NoData=1, $ ; Draw the axes
only. No data.
XStyle=5, $ ; Exact axis
scaling. No autoscaled axes.
YRange=yrange, $ ; The Y data
range.
YStyle=5, $ ; Exact axis
scaling. No autoscaled axes.
_Extra=extra, $ ; Pass any extra
PLOT keywords.
XTICKFORMAT='(A1)', YTICKFORMAT='(A1)'
the plot window popped up blank white, and didn't change from that at
any step.

But I did learn something else...
I think this is certainly an issue with fsc_color.

IDL> plot, findgen(10)
; gives a plot white on black
IDL> plot, findgen(10), color=fsc_color('red')
; gives a plot, red on black
IDL> plot, findgen(10), color=fsc_color('red'),
background=fsc_color('white')
; gives a blank white window

I have had issues with more than one call to fsc_color in a routine
before with legend, maybe its related?


Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: compile all obsolete routines at once
Next Topic: 3D Scatterplot with iMap/iImage

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

Current Time: Wed Oct 08 19:20:52 PDT 2025

Total time taken to generate the page: 0.00494 seconds