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

Home » Public Forums » archive » 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 #81720 is a reply to message #80614] Mon, 15 October 2012 08:32 Go to previous messageGo to previous message
DAVIDE LENA is currently offline  DAVIDE LENA
Messages: 22
Registered: September 2011
Junior Member
I am trying to plot two histograms on a eps file using cgHistoplot and the few lines listed below.
The plot comes out nicely on the X terminal, yet on the eps file it is just a mess...
Anybody knows how to fix it?
Thanks in advance.


SET_PLOT, 'ps'
erase
multiplot,[2,1]
DEVICE, /encapsulated, BITS_PER_PIXEL=8, FILENAME = patheps + strcompress('sigma.eps',/remove_all), /portrait, FONT_SIZE=15, /color, xsize=30, ysize= 20

multiplot
cgHistoplot, map1[w1], BINSIZE = 5., XRANGE = xr, YRANGE=yr, YTICKFORMAT='(F4.2)', YTITLE='', DataColor='green', /FREQUENCY, /OUTLINE

multiplot
cgHistoplot, map2[w2], BINSIZE = 5., XRANGE = xr, YRANGE=yr, YTICKFORMAT='(A1)', YTITLE='', DataColor='green', /FREQUENCY, /OUTLINE

multiplot, [1,1], /init


On Thursday, June 28, 2012 2:50:09 PM UTC-4, David Fanning wrote:
>
>
>
>> I had cgHistoplot working fine with multiplot for a while. At some point it stopped working...
>
>> I have the updated versions of multiplot and cgHistoplot.
>
>> What is happening is that all the histograms are drawn on the same reference frame and only one reference frame is represented. Though multiplot works perfectly well when I use just plot. I also tried to overplot the histogram but it does not work.
>
>> I am running something like that:
>
>>
>
>> SET_PLOT, 'x'
>
>> erase
>
>> multiplot,[1,3]
>
>> cgHistoplot, map1, XRANGE=xr, /FREQUENCY, YTICKFORMAT='(F4.2)', /OUTLINE
>
>> multiplot
>
>> cgHistoplot, map2, XRANGE=xr, /FREQUENCY, YTICKFORMAT='(F4.2)', YTITLE='', /OUTLINE
>
>> multiplot
>
>> cgHistoplot, map3, XRANGE=xr, /FREQUENCY, YTICKFORMAT='(F4.2)', XTICKFORMAT='(F5.1)', YTITLE='', /OUTLINE
>
>> multiplot,[1,1],/init,/verbose
>
>>
>
>> Any suggestion?
>
>
>
> Whoops! My fault.
>
>
>
> I recently had reason to add a default positioning statement to
>
> cgHistoplot. I realized I couldn't do it if !P.Multi was being
>
> used, but since I don't use Multiplot myself, I didn't realize
>
> I also couldn't do it if the user is using !P.Position (which
>
> is how Multiplot works).
>
>
>
> Fixed now. You can find the latest version here:
>
>
>
> http://www.idlcoyote.com/programs/cghistoplot.pro
>
>
>
> 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
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Simple question in IDL, looking for solution, thank you
Next Topic: Simple question in IDL, looking for solution, thank you

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

Current Time: Wed Oct 08 20:05:24 PDT 2025

Total time taken to generate the page: 0.00535 seconds