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

Home » Public Forums » archive » Xrange ignored in Errorplot, why?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Xrange ignored in Errorplot, why? [message #92704] Thu, 11 February 2016 03:16 Go to previous message
galaxytraveler42 is currently offline  galaxytraveler42
Messages: 5
Registered: October 2013
Junior Member
When I use Errorplot and my errorbars reach outside the x or y-range, then IDl just ignores my range and plots something random.

E.g.
a = [3., 2., 1., 4.,3.]
b = [1., 4., 1., 2.5,2.5]
l = [1., 2., 1., 1.,1.]
k = [2., 2., 1., 2.,1.]


p3 = ERRORPLOT(a,b,l,k, LINESTYLE=6,SYMBOL='o', yrange=[0.,3.],xrange=[0.,5.])
this will give me xrange=[-1,6] and yrange=[0,3]

Going from the theory that the x-range will be expanded one to each side of my interval, I try:
p3 = ERRORPLOT(a,b,l,k, name=dataname1,LINESTYLE=6,SYMBOL='o', yrange=[0.,3.],xrange=[1.,4.])
This will give me the correct x and y range!

However when I try this on my real dataset the theory doesn't hold. There my xrange=[0.,5.] ends up being xrange=[-1.5,5.], and next try of xrange=[1.,4.] ends up being xrange=[-2.5,4.2]


For extra info:
p3 = ERRORPLOT(a,b,l,k, LINESTYLE=6,SYMBOL='o')
Gives me a xrange=[0,5] and yrange=[-2,6]
while this:
p2 = PLOT(a,b, LINESTYLE=6,SYMBOL='o', yrange=[0,3],xrange=[0,5])
This will give me the correct x and y range.



I would appreaciate it, if anyone would like to test out those few lines of code and see if there are getting the same.

If anyone has an idea of the cause please let me know.

PS I have a mac version IDL 8.3.0
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL, netCDF-4, VLEN
Next Topic: Contour: difference between IDL 8.0 and IDL 8.4

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

Current Time: Wed Oct 08 16:34:33 PDT 2025

Total time taken to generate the page: 0.05674 seconds