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

Home » Public Forums » archive » Need help with a 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
Need help with a plot [message #80455] Sat, 16 June 2012 03:30
Julie Maria Lykke is currently offline  Julie Maria Lykke
Messages: 2
Registered: June 2012
Junior Member
Hi!

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})?

Here is my initial code

SET_PLOT, 'PS'
DEVICE, xs = 15, ys = 10, /Inches, font_size=2,
FILENAME="autokorr.eps"
DEVICE, /color, SET_CHARACTER_SIZE=[500,700]
col = getcolor(/load)
DEVICE, /ISOLATIN1
plot,f,auto,xrange=[0,100],yrange=[-0.5e-025,6e-025],title=' Autocorrelation
for star',$
ytitle='Autocorrelations function [arb. unit]',xtitle='Frequency
['+Greek('mu')+'Hz]'
DEVICE, /CLOSE_FILE

Then trying to work around it

SET_PLOT, 'PS'
DEVICE, xs = 15, ys = 10, /Inches, font_size=2,
FILENAME="autokorr.eps"
DEVICE, /color, SET_CHARACTER_SIZE=[500,700]
col = getcolor(/load)
DEVICE, /ISOLATIN1
plot,f,auto*1e25,xrange=[0,100],yrange=[-0.5e-025,6e-025],ti tle='Autocorrelation
for star',$
ytitle='Autocorrelation function*10^-25 [arb. unit]',xtitle='Frequency
['+Greek('mu')+'Hz]'
DEVICE, /CLOSE_FILE


So it works, but looks unprofessional. Any advice on either problem?
[Message index]
 
Read Message
Previous Topic: Re: Large files save issue
Next Topic: Re: Need help with a plot

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

Current Time: Wed Oct 08 18:22:24 PDT 2025

Total time taken to generate the page: 0.00465 seconds