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

Home » Public Forums » archive » Re: line graph problems
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: line graph problems [message #24275] Mon, 26 March 2001 01:15
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
Brian wrote:
>
> Hello,
>
> I have a couple of problems I was hoping that someone might be able to
> help me with...
>
> First of all I am trying to automate the process of creating a series
> of line graphs for a project (approximately 50). I could do this in
> Excel, but it is very time consuming. I was hoping to use IDL to make
> the process easier, but it seems to be causing me just as many
> headaches.

... but presumably the pain affects a better part of your brain ;-)

> My second problem relates to the y-axis. In
> several of my plots I have a few y values that are large while the
> rest are many times smaller. Is it possible to create a broken y-axis
> so I can bring out the smaller values while still displaying the
> larger ones?

In the ESRG library is a routine to do at leat part of this (draw the
zigzag): it's called axgap.pro, and you can find it here:

http://www.mpimet.mpg.de/~schultz.martin/idl/html/src/esrg/a xgap.pro

Cheers,
Martin

>
> Any help that can be provided will be greatly appreciated!
>
> Brian
> please remove the _ns if replying directly by email...

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Dr. Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 41173-298 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
Re: line graph problems [message #24281 is a reply to message #24275] Sun, 25 March 2001 15:13 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Brian (nagybria_ns@msu.edu) writes:

> I have a couple of problems I was hoping that someone might be able to
> help me with...
>
> First of all I am trying to automate the process of creating a series
> of line graphs for a project (approximately 50). I could do this in
> Excel, but it is very time consuming. I was hoping to use IDL to make
> the process easier, but it seems to be causing me just as many
> headaches.
>
> There will be two plots per page and they have identical y-axis and
> variable x-axis ranges. The x-axis values are fairly large, which
> leads me to my first problem. Is it possible to change the text
> orientation for an axis using PLOT? I've searched the IDL help and
> David's book and can't seem to find any reference to this. I'd like
> to have the text display at a 45 degree angel so the values don't
> overlap when displayed.

There is no way to do this directly with the PLOT
command, but there is a little program described on
page 94-96 of my book (as long as you have it) that
shows you how easy it is to do it. You will have to
modify the function for your purposes, probably.

> My second problem relates to the y-axis. In
> several of my plots I have a few y values that are large while the
> rest are many times smaller. Is it possible to create a broken y-axis
> so I can bring out the smaller values while still displaying the
> larger ones?

You can pretty much do anything you like with IDL, but
this one is also going to take a bit of programming
muscle. The trick will be knowing how to draw two
plots, one above the other. Then you will need to
connect the separate Y axis with some kind of zigzag
line (PLOTS will be used for this). Again, all the
necessary keywords to the PLOT command are described in
my book (POSITION, YNOZERO, [XY]STYLE, etc.]. You will
just have to hack something together. I wouldn't expect
it to take more than 15-20 minutes.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Mac 32 bit color depth?
Next Topic: color table can only be userd in 8bit display?

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

Current Time: Wed Oct 08 11:43:46 PDT 2025

Total time taken to generate the page: 0.00609 seconds