Axis units outside the page boundary when using PS_star [message #89167] |
Wed, 30 July 2014 07:57  |
DAVIDE LENA
Messages: 22 Registered: September 2011
|
Junior Member |
|
|
Hello,
I am trying to plot few histograms into an eps, into the same reference axes with the code given below, but the x-axis label goes out of the page.
Is there any way that I can fix it without changing font size or YSIZE?
Thanks in advance.
Regards
PS_Start, /encapsulated, FILENAME = 'NGC1386_vel_distribution.eps', FONT = -1
fits_read, 'file1.fits', vn
cgHistoplot, vn, BIN=10, /FREQUENCY, COLOR = 'black', /OUTLINE, $
XRANGE = [xrl,xrh], YRANGE = [yrl,yrh], XTITLE = 'km ' + TexToIDL('s^{-1}')
fits_read, 'file2.fits', vbb
cgHistoplot, vbb[w2], BIN=10, /FREQUENCY, COLOR = 'blue', /OPLOT, $
/OUTLINE, OL_STYLE = 3, LINE_THICK = 6
fits_read, 'file2.fits', vbr
cgHistoplot, vbr[w3], BIN=10, /FREQUENCY, COLOR = 'red', linestyle = 2, /oplot, /OUTLINE, OL_STYLE = 2
PS_END
|
|
|
Re: Axis units outside the page boundary when using PS_star [message #89168 is a reply to message #89167] |
Wed, 30 July 2014 08:04   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Italo writes:
> I am trying to plot few histograms into an eps, into the same reference axes with the code given below, but the x-axis label goes out of the page.
> Is there any way that I can fix it without changing font size or YSIZE?
> Thanks in advance.
> Regards
>
> PS_Start, /encapsulated, FILENAME = 'NGC1386_vel_distribution.eps', FONT = -1
> fits_read, 'file1.fits', vn
> cgHistoplot, vn, BIN=10, /FREQUENCY, COLOR = 'black', /OUTLINE, $
> XRANGE = [xrl,xrh], YRANGE = [yrl,yrh], XTITLE = 'km ' + TexToIDL('s^{-1}')
>
>
> fits_read, 'file2.fits', vbb
> cgHistoplot, vbb[w2], BIN=10, /FREQUENCY, COLOR = 'blue', /OPLOT, $
> /OUTLINE, OL_STYLE = 3, LINE_THICK = 6
>
>
> fits_read, 'file2.fits', vbr
> cgHistoplot, vbr[w3], BIN=10, /FREQUENCY, COLOR = 'red', linestyle = 2, /oplot, /OUTLINE, OL_STYLE = 2
> PS_END
Use the POSITION keyword on cgHistoplot to put the histogram plot where
you want it in the "window".
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Axis units outside the page boundary when using PS_star [message #89169 is a reply to message #89168] |
Wed, 30 July 2014 08:27   |
DAVIDE LENA
Messages: 22 Registered: September 2011
|
Junior Member |
|
|
Thanks.
Is there a way to get the vector with the original position?
On Wednesday, July 30, 2014 11:04:32 AM UTC-4, David Fanning wrote:
> Italo writes:
>
>
>
>> I am trying to plot few histograms into an eps, into the same reference axes with the code given below, but the x-axis label goes out of the page.
>
>> Is there any way that I can fix it without changing font size or YSIZE?
>
>> Thanks in advance.
>
>> Regards
>
>>
>
>> PS_Start, /encapsulated, FILENAME = 'NGC1386_vel_distribution.eps', FONT = -1
>
>> fits_read, 'file1.fits', vn
>
>> cgHistoplot, vn, BIN=10, /FREQUENCY, COLOR = 'black', /OUTLINE, $
>
>> XRANGE = [xrl,xrh], YRANGE = [yrl,yrh], XTITLE = 'km ' + TexToIDL('s^{-1}')
>
>>
>
>>
>
>> fits_read, 'file2.fits', vbb
>
>> cgHistoplot, vbb[w2], BIN=10, /FREQUENCY, COLOR = 'blue', /OPLOT, $
>
>> /OUTLINE, OL_STYLE = 3, LINE_THICK = 6
>
>>
>
>>
>
>> fits_read, 'file2.fits', vbr
>
>> cgHistoplot, vbr[w3], BIN=10, /FREQUENCY, COLOR = 'red', linestyle = 2, /oplot, /OUTLINE, OL_STYLE = 2
>
>> PS_END
>
>
>
> Use the POSITION keyword on cgHistoplot to put the histogram plot where
>
> you want it in the "window".
>
>
>
> Cheers,
>
>
>
> David
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|
Re: Axis units outside the page boundary when using PS_star [message #89170 is a reply to message #89169] |
Wed, 30 July 2014 09:10  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
dxl1840@g.rit.edu writes:
> Is there a way to get the vector with the original position?
I don't understand this question. Sorry. I don't see any vectors in your
code. And changing the position of the plot shouldn't change anything at
all about the graphics output, assuming of course you are positioning
everything in data or normalized coordinate space.
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|