Re: Arghh, not an Axis object problem.... [message #64702 is a reply to message #64694] |
Tue, 13 January 2009 10:21   |
ghgm2008
Messages: 17 Registered: December 2008
|
Junior Member |
|
|
On Jan 13, 9:41 am, Brian Larsen <balar...@gmail.com> wrote:
> If this if your issue I can't say as I am still in the stone age with
> direct graphics only, but when working with julian days I often get
> bit by the float/double issue, be sure the julian days are doubles.
> You probably have this right but worth a check. What is your code
> doing that is wrong?
>
> IDL> help, 2454845.083333333954215
> <Expression> FLOAT = 2.45484e+06
> IDL> help, 2454845.083333333954215d
> <Expression> DOUBLE = 2454845.1
>
> Brian
>
> ------------------------------------------------------------ --------------
> Brian Larsen
> Boston University
> Center for Space Physicshttp://people.bu.edu/balarsen/Home/IDL
Brian,
Yeh - Julian days needing to be double can really catch you out - but
I don't think that is the issue.
In my code everything is double that needs to be.
The problem is that idl will not plot the axis as it is being asked to
- this issue has come up many times before
(lots of criticism about object axes working in a very non-intuitive
way). I've read all the old posts on this - but
they're not helping.
There is something I'm missing in my code.
What my code is doing is:
1) Not drawing the axis
2) Drawing 1 tickmark (roughly in the middle) and then marking this
with many (overlaind) formatted Julian dates
- which then becomes a big blob of overlaid text.
Hmm, it's like idl has scaled the axis itself - to be a large scale -
so that all of my ticks and text end up being on top of each other.
Cheers,
George.
|
|
|