Re: Need help with a plot [message #80453] |
Sat, 16 June 2012 07:07 |
Julie Maria Lykke
Messages: 2 Registered: June 2012
|
Junior Member |
|
|
On 16 Jun., 16:02, David Fanning <n...@idlcoyote.com> wrote:
> Julie Maria Lykke writes:
>> So initially my problem was that when I am making a eps. figure the
>> ytitle is "cut out of the image", because there is no room for it, as
>> the numbers on the y-axis takes up too much space. I have tried to
>> vary different parameter, and making the image smaller - but that
>> doesn't help. My image shows something which is in the range of
>
>> yrange=[-0.5e-025,6e-025]
>
>> I worked around it by multiplying with 1e25, and the ytitle now fits.
>> But then I need to add the '10^-25' on the actual ytitle, which just
>> looks silly. I was wondering if there is a way to make it look better,
>> so that the -25 is lifted (like you would see in Matlab when writing
>> 10^{-25})?
>
>> So it works, but looks unprofessional. Any advice on either problem?
>
> Use the POSITION keyword to give your plot more room on the
> left-hand side for the Y title:
>
> plot, ..., position=[0.2, 0.15, 0.925, 0.925]
>
> Use format codes to position the "-25" as a subscript:
>
> plot, ..., ytitle='Autocorrelation function*10!E-25!N [arb unit]'
>
> 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.")
Thank you :) !!
|
|
|
Re: Need help with a plot [message #80454 is a reply to message #80453] |
Sat, 16 June 2012 07:02  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Julie Maria Lykke writes:
> So initially my problem was that when I am making a eps. figure the
> ytitle is "cut out of the image", because there is no room for it, as
> the numbers on the y-axis takes up too much space. I have tried to
> vary different parameter, and making the image smaller - but that
> doesn't help. My image shows something which is in the range of
>
> yrange=[-0.5e-025,6e-025]
>
> I worked around it by multiplying with 1e25, and the ytitle now fits.
> But then I need to add the '10^-25' on the actual ytitle, which just
> looks silly. I was wondering if there is a way to make it look better,
> so that the -25 is lifted (like you would see in Matlab when writing
> 10^{-25})?
>
> So it works, but looks unprofessional. Any advice on either problem?
Use the POSITION keyword to give your plot more room on the
left-hand side for the Y title:
plot, ..., position=[0.2, 0.15, 0.925, 0.925]
Use format codes to position the "-25" as a subscript:
plot, ..., ytitle='Autocorrelation function*10!E-25!N [arb unit]'
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.")
|
|
|