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

Home » Public Forums » archive » Re: cgHistoplot and multiplot
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: cgHistoplot and multiplot [message #79816] Mon, 09 April 2012 15:05 Go to previous message
DAVIDE LENA is currently offline  DAVIDE LENA
Messages: 22
Registered: September 2011
Junior Member
Shame on me...Thanks! :)
On Monday, April 9, 2012 5:01:24 PM UTC-4, David Fanning wrote:
> DavidL writes:
>
>> I updated cgHistoplot and multiplot to the latest versions. Still I get garbage in output.
>> When I plot on the x terminal I see just the x and y axis (and the y axis are not really the same and they both have labels). No data are shown.
>>
>> When I plot on ps device I see the data. The y axis is in common but with different scales. They both have labels and the title "Relative Frequency".
>
> You are drawing the histogram bars in black. I presume
> on your terminal you are drawing in a window with a black
> background. The bars might be hard to see. :-)
>
> I would remove the DataColorName keyword from your
> cgHistoplot commands and let cgHistoplot choose
> an appropriate color. (Or, erase with a white color.)
> Does that help?
>
> If you want the Y range to be the same for the two
> plots, you can make them the same by using the same
> values with the YRANGE keyword.
>
> If you want to turn the Y axes labelling off, set
> the YTICKFORMAT to '(A1)', rather than what you have.
>
> This code works for me:
>
> erase
> val1 = cgdemodata(5)
> val2 = cgdemodata(7)
> multiplot,[2,1]
> cgHistoplot, val1, yrange=[0,0.5], /FREQUENCY, $
> YTICKFORMAT='(A1)', YTitle='', DataColor='opposite'
> multiplot
> cgHistoplot, val2, yrange=[0,0.5], /FREQUENCY, $
> YTICKFORMAT='(A1)', YTitle='', DataColor='opposite'
> multiplot,[1,1],/init,/verbose
> end
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Parallel Processing in IDL
Next Topic: Widget Object graphics code crashes V8.2

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

Current Time: Wed Oct 08 17:24:06 PDT 2025

Total time taken to generate the page: 0.00447 seconds