Re: Overlaying multiple plots on top of map [message #78274] |
Mon, 07 November 2011 15:54 |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Axel writes:
> Thanks... works just fine with the position keyword with proper
> parameters. The error message " no coordinate system established "
> threw me off, I guess.. Should've caught this though.
Yes, this is one of those error messages you learn the
meaning of through experience. If it is any consolation,
it takes me a couple of beats to figure it out, too.
It's not automatic. :-)
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: Overlaying multiple plots on top of map [message #78275 is a reply to message #78274] |
Mon, 07 November 2011 15:12  |
Axel[1]
Messages: 10 Registered: January 2011
|
Junior Member |
|
|
David,
Thanks... works just fine with the position keyword with proper
parameters. The error message " no coordinate system established "
threw me off, I guess.. Should've caught this though.
Axel
On Nov 7, 12:41 pm, David Fanning <n...@dfanning.com> wrote:
> Axel writes:
>> Thanks for your reply. I played around with that before. When I issue
>> a map_set command followed by a plot command with /noerase and
>> position:
>
>> MAP_SET, /LAMBERT, 90, 0, -55, /ISOTROPIC, $
>> /GRID, LATDEL=10, LONDEL=10, $
>> /CONTINENTS, E_CONTINENTS={FILL:1}, /HORIZON, $
>> TITLE = 'Polar Lambert',limit=[50,-180,90.,180],$
>> label=3
>
>> plot,[0,30],[0,30],position='[0.1,0.2,0.1,0.2]',/noerase,/ nodata
>
>> I get an error: No coordinate system established.
>
>> Any ideas on how to get around that... .
>
> I would say put values in your POSITION keyword
> that don't result in a axis of zero length! ;-)
>
> Cheers,
>
> David
>
> P.S. I can't really tell what you are trying to do here,
> but I think I would have the POSITION keyword on the
> MAP_SET command, too, if you are trying to establish a coordinate
> system that is coincident with the map projection.
>
> position=[0.1, 0.1, 0.9, 0.9]
>
> would be a better choice than what you have. :-)
>
> --
> 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: Overlaying multiple plots on top of map [message #78276 is a reply to message #78275] |
Mon, 07 November 2011 12:41  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Axel writes:
> Thanks for your reply. I played around with that before. When I issue
> a map_set command followed by a plot command with /noerase and
> position:
>
> MAP_SET, /LAMBERT, 90, 0, -55, /ISOTROPIC, $
> /GRID, LATDEL=10, LONDEL=10, $
> /CONTINENTS, E_CONTINENTS={FILL:1}, /HORIZON, $
> TITLE = 'Polar Lambert',limit=[50,-180,90.,180],$
> label=3
>
> plot,[0,30],[0,30],position='[0.1,0.2,0.1,0.2]',/noerase,/no data
>
> I get an error: No coordinate system established.
>
> Any ideas on how to get around that... .
I would say put values in your POSITION keyword
that don't result in a axis of zero length! ;-)
Cheers,
David
P.S. I can't really tell what you are trying to do here,
but I think I would have the POSITION keyword on the
MAP_SET command, too, if you are trying to establish a coordinate
system that is coincident with the map projection.
position=[0.1, 0.1, 0.9, 0.9]
would be a better choice than what you have. :-)
--
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: Overlaying multiple plots on top of map [message #78277 is a reply to message #78276] |
Mon, 07 November 2011 12:22  |
Axel[1]
Messages: 10 Registered: January 2011
|
Junior Member |
|
|
On Nov 4, 2:46 pm, David Fanning <n...@dfanning.com> wrote:
> Axel writes:
>> Using plot,/noerase lets me overplot onto of the map, but I
>> can't figure out how to control the position.
>
> I think I would use the POSITION keyword. :-)
>
> 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.")
David,
Thanks for your reply. I played around with that before. When I issue
a map_set command followed by a plot command with /noerase and
position:
MAP_SET, /LAMBERT, 90, 0, -55, /ISOTROPIC, $
/GRID, LATDEL=10, LONDEL=10, $
/CONTINENTS, E_CONTINENTS={FILL:1}, /HORIZON, $
TITLE = 'Polar Lambert',limit=[50,-180,90.,180],$
label=3
plot,[0,30],[0,30],position='[0.1,0.2,0.1,0.2]',/noerase,/no data
I get an error: No coordinate system established.
Any ideas on how to get around that... .
Thanks
Axel
|
|
|
|