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

Home » Public Forums » archive » Re: Irregular Tick Spacing and Values in an iPlot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Irregular Tick Spacing and Values in an iPlot [message #58084] Tue, 15 January 2008 16:03
jeffnettles4870 is currently offline  jeffnettles4870
Messages: 111
Registered: October 2006
Senior Member
On Jan 15, 6:51 pm, Chris Torrence <gorth...@gmail.com> wrote:
> Hi Jeff,
>
> This is indeed a bug. It looks like all of the other keywords work,
> just not XTICKVALUES. I've logged a bug, and it will be fixed in the
> next IDL version.
>
> If you are feeling brave, and you desperately need a fix, you can
> modify lib/itools/components/idlitvisaxis__define.pro. At the very end
> of the ::SetProperty method, add the following line of code:
> if (N_ELEMENTS(_extra) gt 0) then self._oAxis->SetProperty,
> _EXTRA=_extra
>
> This is not the exact fix that I will put into the production code,
> but it will get you up & running.
>
> -Chris
> ITTVIS

Thanks Chris,

I'll give it a shot :) I sent an email to the techsupport@ittvis.com
address earlier today about this, so you might want to check on that
so that the same problem doesn't get logged twice.

I appreciate your help,
Jeff
Re: Irregular Tick Spacing and Values in an iPlot [message #58085 is a reply to message #58084] Tue, 15 January 2008 15:51 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
Hi Jeff,

This is indeed a bug. It looks like all of the other keywords work,
just not XTICKVALUES. I've logged a bug, and it will be fixed in the
next IDL version.

If you are feeling brave, and you desperately need a fix, you can
modify lib/itools/components/idlitvisaxis__define.pro. At the very end
of the ::SetProperty method, add the following line of code:
if (N_ELEMENTS(_extra) gt 0) then self._oAxis->SetProperty,
_EXTRA=_extra

This is not the exact fix that I will put into the production code,
but it will get you up & running.

-Chris
ITTVIS
Re: Irregular Tick Spacing and Values in an iPlot [message #58094 is a reply to message #58085] Tue, 15 January 2008 11:03 Go to previous message
jeffnettles4870 is currently offline  jeffnettles4870
Messages: 111
Registered: October 2006
Senior Member
On Jan 15, 1:16 pm, David Fanning <n...@dfanning.com> wrote:
> jeffnettles4...@gmail.com writes:
>> Has anyone tried to do an iPlot with irregular tick spacing and
>> values? I can do this with a regular PLOT command as in David's tip:
>
>> http://www.dfanning.com/tips/irregular_tick_spacing.html
>
>> but I'd like to do this in an iPlot. I'm probably doing something
>> wrong, but i tried setting the xtickvalues keyword in the iPlot
>> procedure, but that seems to just label the ticks using arbitray
>> numbers, and i need to space them arbitrarily. Xtickinterval only
>> accepts scalar values, so that's not a help I don't think.
>
> This looks like a bug to me. The iPlot documentation indicates
> you ought to be able to pass along XTICKVALUES, for example,
> but in fact the iPlot program does nothing with them.
>
> The reason I think this is a bug, is that I have no problem
> creating irregular tick spacing and labeling in my XPLOT
> program, which is an object graphics program. I simply
> create the axis like this:
>
> xAxis1 = Obj_New("IDLgrAxis", 0, Color=[255,255,0], Ticklen=0.025, $
> Minor=4, Range=[0,10], Title=xtitle, $
> TickValues=[0.0,0.8,1.5,2.0,3.5,4.3,5.8,6.5,7.2,8.8,10.0], $
> Location=[1000, position[1] ,0], Exact=exact[0])
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")

*sigh* I was afraid this was a bug....guess I'll report it.

Thanks,
Jeff
Re: Irregular Tick Spacing and Values in an iPlot [message #58097 is a reply to message #58094] Tue, 15 January 2008 10:16 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
jeffnettles4870@gmail.com writes:

> Has anyone tried to do an iPlot with irregular tick spacing and
> values? I can do this with a regular PLOT command as in David's tip:
>
> http://www.dfanning.com/tips/irregular_tick_spacing.html
>
> but I'd like to do this in an iPlot. I'm probably doing something
> wrong, but i tried setting the xtickvalues keyword in the iPlot
> procedure, but that seems to just label the ticks using arbitray
> numbers, and i need to space them arbitrarily. Xtickinterval only
> accepts scalar values, so that's not a help I don't think.

This looks like a bug to me. The iPlot documentation indicates
you ought to be able to pass along XTICKVALUES, for example,
but in fact the iPlot program does nothing with them.

The reason I think this is a bug, is that I have no problem
creating irregular tick spacing and labeling in my XPLOT
program, which is an object graphics program. I simply
create the axis like this:

xAxis1 = Obj_New("IDLgrAxis", 0, Color=[255,255,0], Ticklen=0.025, $
Minor=4, Range=[0,10], Title=xtitle, $
TickValues=[0.0,0.8,1.5,2.0,3.5,4.3,5.8,6.5,7.2,8.8,10.0], $
Location=[1000, position[1] ,0], Exact=exact[0])

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Irregular Tick Spacing and Values in an iPlot
Next Topic: Re: plot tangentail vector

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

Current Time: Fri Oct 10 11:45:50 PDT 2025

Total time taken to generate the page: 0.48214 seconds