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

Home » Public Forums » archive » Re: new miracle of minor ticks
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: new miracle of minor ticks [message #55595] Fri, 31 August 2007 13:51
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mirko.Vukovic@gmail.com writes:

> Bugs, ticks. Are you guys sure you are in the right newsgroup?
> alt.bio.insects may be more appropriate.

Mirko!? It must be a holiday weekend... :-)

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.")
Re: new miracle of minor ticks [message #55596 is a reply to message #55595] Fri, 31 August 2007 13:47 Go to previous message
Mirko.Vukovic[1] is currently offline  Mirko.Vukovic[1]
Messages: 7
Registered: August 2007
Junior Member
Much stuff deleted
>
> I dont think its a feature because you got minor ticks if you dont
> specify yourself xrange. This sounds more a bug.
>


Bugs, ticks. Are you guys sure you are in the right newsgroup?
alt.bio.insects may be more appropriate.

Mirko
Re: new miracle of minor ticks [message #55615 is a reply to message #55596] Thu, 30 August 2007 06:08 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:
> Lasse Clausen writes:
>
>> it seems that the xstyle=1 triggers that behaviour. If you do
>>
>> plot, indgen(11), xticks=5
>>
>> minor tick mark are there, however do a
>>
>> plot, indgen(11), xticks=5, /xstyle
>>
>> they are gone. also, when you combine any other xstyle option with 1,
>> i.e. xstyle=9.
>>
>> I noticed this behaviour earlier and thought of it as a feature, not a
>> bug. I just got used to setting the xminor keyword to whatever is
>> appropriate.
>
> Weird. This doesn't happen in my IDL 6.3, but does in IDL 6.4
> on Windows. Is this happening in UNIX, too?


idl6.4 linux seems to have this bug.

cheers
Reimar
Re: new miracle of minor ticks [message #55616 is a reply to message #55615] Thu, 30 August 2007 06:07 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
Lasse Clausen wrote:
> Hi,
>
> it seems that the xstyle=1 triggers that behaviour. If you do
>
> plot, indgen(11), xticks=5
>
> minor tick mark are there, however do a
>
> plot, indgen(11), xticks=5, /xstyle
>
> they are gone. also, when you combine any other xstyle option with 1,
> i.e. xstyle=9.
>
> I noticed this behaviour earlier and thought of it as a feature, not a
> bug. I just got used to setting the xminor keyword to whatever is
> appropriate.
>
> So long
> Lasse

I dont think its a feature because you got minor ticks if you dont
specify yourself xrange. This sounds more a bug.

cheers
Reimar


>
> On 29 Aug, 18:09, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
>> Hi
>>
>> I am back from my journey. And I have had a similiar experience with
>> doors as you David had but for the opposite direction. ;)
>>
>> But lets go to idl. The today most wanted answer is for:
>>
>> Where are the minor ticks?
>>
>> Any number of xticks gives no minor xticks.
>>
>> ; xminor
>> ; The number of minor tick mark intervals.
>> ; If set to zero, the default, IDL automatically determines the number
>> ; of minor ticks in each major tick-mark interval.
>> ; Setting this parameter to 1 suppresses the minor ticks, and setting it
>> ; to a positive, nonzero number, n, produces
>> ; n minor-tick intervals, and n?1 minor-tick marks.
>>
>> PRO example_bug
>> x = findgen(1000)
>> y1 = sin(x)
>>
>> extra_axis={xrange:[300.0,840],yrange:[-1.1,1.1]}
>>
>> plot, x, y1,$
>> xstyle=1, $
>> ystyle=1, $
>> position=[0.235690,0.285714,0.760943,0.802381], $
>> title=title, $
>> charsize = 1.18942, $
>> xtick_get = xtg, $
>> ytick_get = ytg, $
>> XTICKS = 2, $
>> XMINOR = 0, $
>> XTICKV = xtickv, $
>> XTICKNAME = xtickname, $
>> ytype=0, $
>> _extra=extra_axis
>>
>> END
>>
>> cheers
>> Reimar
>
>
Re: new miracle of minor ticks [message #55617 is a reply to message #55616] Thu, 30 August 2007 06:11 Go to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
> Weird. This doesn't happen in my IDL 6.3, but does in IDL 6.4
> on Windows. Is this happening in UNIX, too?
>
> Cheers,
>
> David


My mac with 6.4 has the behavior as well. So I bet the UNIX will
also.

Cheers,

Brian

------------------------------------------------------------ ---------------------
Brian Larsen
Boston University
Center for Space Physics
Re: new miracle of minor ticks [message #55618 is a reply to message #55616] Thu, 30 August 2007 06:06 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Lasse Clausen writes:

> it seems that the xstyle=1 triggers that behaviour. If you do
>
> plot, indgen(11), xticks=5
>
> minor tick mark are there, however do a
>
> plot, indgen(11), xticks=5, /xstyle
>
> they are gone. also, when you combine any other xstyle option with 1,
> i.e. xstyle=9.
>
> I noticed this behaviour earlier and thought of it as a feature, not a
> bug. I just got used to setting the xminor keyword to whatever is
> appropriate.

Weird. This doesn't happen in my IDL 6.3, but does in IDL 6.4
on Windows. Is this happening in UNIX, too?

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.")
Re: new miracle of minor ticks [message #55619 is a reply to message #55618] Thu, 30 August 2007 05:46 Go to previous message
lasse is currently offline  lasse
Messages: 48
Registered: February 2007
Member
Hi,

it seems that the xstyle=1 triggers that behaviour. If you do

plot, indgen(11), xticks=5

minor tick mark are there, however do a

plot, indgen(11), xticks=5, /xstyle

they are gone. also, when you combine any other xstyle option with 1,
i.e. xstyle=9.

I noticed this behaviour earlier and thought of it as a feature, not a
bug. I just got used to setting the xminor keyword to whatever is
appropriate.

So long
Lasse

On 29 Aug, 18:09, Reimar Bauer <R.Ba...@fz-juelich.de> wrote:
> Hi
>
> I am back from my journey. And I have had a similiar experience with
> doors as you David had but for the opposite direction. ;)
>
> But lets go to idl. The today most wanted answer is for:
>
> Where are the minor ticks?
>
> Any number of xticks gives no minor xticks.
>
> ; xminor
> ; The number of minor tick mark intervals.
> ; If set to zero, the default, IDL automatically determines the number
> ; of minor ticks in each major tick-mark interval.
> ; Setting this parameter to 1 suppresses the minor ticks, and setting it
> ; to a positive, nonzero number, n, produces
> ; n minor-tick intervals, and n?1 minor-tick marks.
>
> PRO example_bug
> x = findgen(1000)
> y1 = sin(x)
>
> extra_axis={xrange:[300.0,840],yrange:[-1.1,1.1]}
>
> plot, x, y1,$
> xstyle=1, $
> ystyle=1, $
> position=[0.235690,0.285714,0.760943,0.802381], $
> title=title, $
> charsize = 1.18942, $
> xtick_get = xtg, $
> ytick_get = ytg, $
> XTICKS = 2, $
> XMINOR = 0, $
> XTICKV = xtickv, $
> XTICKNAME = xtickname, $
> ytype=0, $
> _extra=extra_axis
>
> END
>
> cheers
> Reimar
Re: new miracle of minor ticks [message #55627 is a reply to message #55619] Wed, 29 August 2007 11:09 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Reimar Bauer writes:

> unfortunately this does not help, same result ;)

Another fabulous theory down the drain. I'm not
having much luck this week. :-(

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.")
Re: new miracle of minor ticks [message #55628 is a reply to message #55627] Wed, 29 August 2007 10:54 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
David Fanning wrote:
> Reimar Bauer writes:
>
>> I am back from my journey. And I have had a similiar experience with
>> doors as you David had but for the opposite direction. ;)
>
> Reimar refers to an embarrassing experience in the past,
> whose only saving grace was that it caused Karsten
> Rodenacker to feel so much pity for me he became
> a good friend.
>
> http://www.dfanning.com/adventures/munich/arrival.html
>
> Well, at least I know now there is *something* about
> doors that is confusing to others. That is some solace. :-)
>
>> But lets go to idl. The today most wanted answer is for:
>>
>> Where are the minor ticks?
>>
>> Any number of xticks gives no minor xticks.
>>
>>
>> ; xminor
>> ; The number of minor tick mark intervals.
>> ; If set to zero, the default, IDL automatically determines the number
>> ; of minor ticks in each major tick-mark interval.
>> ; Setting this parameter to 1 suppresses the minor ticks, and setting it
>> ; to a positive, nonzero number, n, produces
>> ; n minor-tick intervals, and n?1 minor-tick marks.
>
> I think the documentation is incomplete. I think it was meant to
> say this:
>
> If set to zero, the default, IDL automatically determines the
> number of minor ticks in each major tick-mark interval, unless
> you are totally screwing with its head by creating your own tick
> values and names. Then it just throws up its hands and assumes
> you know what the hell you are doing!
>
> Cheers,
>
> David

Hi David

unfortunately this does not help, same result ;)

PRO example_bug3
x = findgen(1000)
y1 = sin(x)

extra_axis={xrange:[300.0,840],yrange:[-1.1,1.1]}

plot, x, y1,$
xstyle=1, $
ystyle=1, $
position=[0.235690,0.285714,0.760943,0.802381], $
title=title, $
charsize = 1.18942, $
XTICKS = 4, $
XMINOR = 0, $
ytype=0, $
_extra=extra_axis


END
Re: new miracle of minor ticks [message #55630 is a reply to message #55628] Wed, 29 August 2007 10:46 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
David Fanning writes:

> I think the documentation is incomplete. I think it was meant to
> say this:
>
> If set to zero, the default, IDL automatically determines the
> number of minor ticks in each major tick-mark interval, unless
> you are totally screwing with its head by creating your own tick
> values and names. Then it just throws up its hands and assumes
> you know what the hell you are doing!

By the way, the error message, "Alright, then YOU do it!"
is being suppressed. It can be reactivated by using the
WIFE keyword on the Plot command.

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.")
Re: new miracle of minor ticks [message #55631 is a reply to message #55630] Wed, 29 August 2007 10:32 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Reimar Bauer writes:

> I am back from my journey. And I have had a similiar experience with
> doors as you David had but for the opposite direction. ;)

Reimar refers to an embarrassing experience in the past,
whose only saving grace was that it caused Karsten
Rodenacker to feel so much pity for me he became
a good friend.

http://www.dfanning.com/adventures/munich/arrival.html

Well, at least I know now there is *something* about
doors that is confusing to others. That is some solace. :-)

> But lets go to idl. The today most wanted answer is for:
>
> Where are the minor ticks?
>
> Any number of xticks gives no minor xticks.
>
>
> ; xminor
> ; The number of minor tick mark intervals.
> ; If set to zero, the default, IDL automatically determines the number
> ; of minor ticks in each major tick-mark interval.
> ; Setting this parameter to 1 suppresses the minor ticks, and setting it
> ; to a positive, nonzero number, n, produces
> ; n minor-tick intervals, and n?1 minor-tick marks.

I think the documentation is incomplete. I think it was meant to
say this:

If set to zero, the default, IDL automatically determines the
number of minor ticks in each major tick-mark interval, unless
you are totally screwing with its head by creating your own tick
values and names. Then it just throws up its hands and assumes
you know what the hell you are doing!

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: how to create a string of 1024 spaces?
Next Topic: Ternary diagram

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

Current Time: Wed Oct 08 19:53:19 PDT 2025

Total time taken to generate the page: 0.01050 seconds