Re: Cannot see anything in the postscript file. Any help? [message #79702] |
Wed, 28 March 2012 09:59  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Yemmy writes:
> Now I am going through the write up to try and understand what all the CGS routines do, but just one quick question: I am already using the cgContour and it is working well, but I dont know how to use the Map_object keyword. Do I need to have an image of the map already in my computer?
Here is an article that shows how to put a contour
plot on a map projection using direct graphics,
Coyote Graphics, and function graphics. The Coyote
Graphics example shows you how to use the map object
to set up the map data coordinate system.
http://www.idlcoyote.com/cg_tips/compcont.php
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Cannot see anything in the postscript file. Any help? [message #79715 is a reply to message #79702] |
Tue, 27 March 2012 09:51   |
Yemmy
Messages: 3 Registered: March 2012
|
Junior Member |
|
|
Thanks David.
Now I am going through the write up to try and understand what all the CGS routines do, but just one quick question: I am already using the cgContour and it is working well, but I dont know how to use the Map_object keyword. Do I need to have an image of the map already in my computer?
Yemi
On Tuesday, March 27, 2012 1:18:38 AM UTC-4, David Fanning wrote:
> Yemmy writes:
>
>> I am relatively still new in the IDL community and I most
>> often get lost when I encounter problems. In most cases,
>> coyote guide/webpage has really helped alot.
>> I have been seeing this strange feature whenever
>> I use contour procedure or plot procedure: the
>> postscript file will just become blank or sometimes
>> create the axis but not the data inside or even
>> sometime would not open at all. I have instead been
>> using plot function and I just forget about it for
>> a while, but now I have to make a contour and when
>> I use a contour function, I encountered yet another
>> problem which make me want to call for help.
>
> I think the short answer to your problem is to just
> use Coyote Graphics routines. These are designed to
> work identically on your display and in a PostScript
> file, and getting color right is the fundamental
> purpose of the routines. Many of these problems will
> just disappear if you use them.
>
> http://www.idlcoyote.com/graphics_tips/coyote_graphics.php
>
> Or, if you want to continue to use normal IDL routines,
> but you want to understand why you are having problems
> with them, I have an entire book devoted to nothing but
> this topic. :-)
>
> http://www.idlcoyote.com/books/index.php
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Cannot see anything in the postscript file. Any help? [message #79731 is a reply to message #79715] |
Mon, 26 March 2012 22:18   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Yemmy writes:
> I am relatively still new in the IDL community and I most
> often get lost when I encounter problems. In most cases,
> coyote guide/webpage has really helped alot.
> I have been seeing this strange feature whenever
> I use contour procedure or plot procedure: the
> postscript file will just become blank or sometimes
> create the axis but not the data inside or even
> sometime would not open at all. I have instead been
> using plot function and I just forget about it for
> a while, but now I have to make a contour and when
> I use a contour function, I encountered yet another
> problem which make me want to call for help.
I think the short answer to your problem is to just
use Coyote Graphics routines. These are designed to
work identically on your display and in a PostScript
file, and getting color right is the fundamental
purpose of the routines. Many of these problems will
just disappear if you use them.
http://www.idlcoyote.com/graphics_tips/coyote_graphics.php
Or, if you want to continue to use normal IDL routines,
but you want to understand why you are having problems
with them, I have an entire book devoted to nothing but
this topic. :-)
http://www.idlcoyote.com/books/index.php
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|
Re: Cannot see anything in the postscript file. Any help? [message #79789 is a reply to message #79702] |
Fri, 30 March 2012 07:40  |
Yemmy
Messages: 3 Registered: March 2012
|
Junior Member |
|
|
Thanks David.
On Wednesday, March 28, 2012 12:59:38 PM UTC-4, David Fanning wrote:
> Yemmy writes:
>
>> Now I am going through the write up to try and understand what all the CGS routines do, but just one quick question: I am already using the cgContour and it is working well, but I dont know how to use the Map_object keyword. Do I need to have an image of the map already in my computer?
>
> Here is an article that shows how to put a contour
> plot on a map projection using direct graphics,
> Coyote Graphics, and function graphics. The Coyote
> Graphics example shows you how to use the map object
> to set up the map data coordinate system.
>
> http://www.idlcoyote.com/cg_tips/compcont.php
>
> Cheers,
>
> David
>
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")
|
|
|