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

Home » Public Forums » archive » cgHistogram - logarithmic y-axis with integer values
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
cgHistogram - logarithmic y-axis with integer values [message #84886] Mon, 17 June 2013 07:06 Go to next message
Maria Cavallius is currently offline  Maria Cavallius
Messages: 2
Registered: June 2013
Junior Member
Hi,
I've been trying to get cgHistoplot to work with a logarithmic y-axis,
using /log. This works, but it also means my y-axis units are shown as
floats with over 10 decimals. I haven't been able to find out how to
turn these into integers - can anyone help?

Best,
Maria
Re: cgHistogram - logarithmic y-axis with integer values [message #84888 is a reply to message #84886] Mon, 17 June 2013 07:11 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Maria Cavallius writes:

> I've been trying to get cgHistoplot to work with a logarithmic y-axis,
> using /log. This works, but it also means my y-axis units are shown as
> floats with over 10 decimals. I haven't been able to find out how to
> turn these into integers - can anyone help?

Add YTICKFORMAT='(I0)', maybe?

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
Re: cgHistogram - logarithmic y-axis with integer values [message #84889 is a reply to message #84888] Mon, 17 June 2013 07:18 Go to previous message
Maria Cavallius is currently offline  Maria Cavallius
Messages: 2
Registered: June 2013
Junior Member
On 17 Jun., 16:11, David Fanning <n...@idlcoyote.com> wrote:
> Maria Cavallius writes:
>> I've been trying to get cgHistoplot to work with a logarithmic y-axis,
>> using /log. This works, but it also means my y-axis units are shown as
>> floats with over 10 decimals. I haven't been able to find out how to
>> turn these into integers - can anyone help?
>
> Add YTICKFORMAT='(I0)', maybe?
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.idlcoyote.com/
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Hey, it worked! And that was just about the quickest answer I've ever
gotten - thank you so much! Your website has saved me so many hours of
frustration ;-)
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Why is the content of my object graphics window being wiped?
Next Topic: help with scatter plot-like data

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

Current Time: Wed Oct 08 13:34:27 PDT 2025

Total time taken to generate the page: 0.00555 seconds