XLim equivalent in Mapping toolbox

조회 수: 1 (최근 30일)
Christoffer Stausland
Christoffer Stausland 2013년 1월 2일
Hi!
I have some sets of radar measurments of the ionosphere and we use Mapping toolbox to project these to a sphere using the map projection eqdazim. This project a map of the surrounding coast and the radar data. We set the center of the plot using the origin-option in gridm and "zoom" in with Xlim and Ylim so that the origin appears in the middle and then a fixed box around that. The problem is that we always plot only a small area that changes from data set to data set. I have the longitudes and latitudes in matrices, but using Xlim/Ylim in 'set' don't use latitude/longitude and the eqdazim projection makes it difficult to use Xlim dynamically.
Is there a Xlim equivalent in Mapping toolbox? I have not been able to find one. Or maybe a way to go from longitude/latitude to whatever Xlim uses? I've been trying to use tightmap, but it always sets the whole earth as the view (and then the radar data appears only as a small dot).
It's difficult for me to provide code snippets here as the matlab function is kind of specific to the data sets and is provided by others.
Thank you in advance!

답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 1월 2일
Perhaps you could provide us with a small example/screenshot of what you mean?
It sounds to me like you might want to feed the Latitude and Longitude limits into something like usamap() or worldmap(), but like I said, I'm not clear yet..
  댓글 수: 1
Christoffer Stausland
Christoffer Stausland 2013년 1월 2일
편집: Christoffer Stausland 2013년 1월 2일
Sure, that's no problem. Sorry for the size of the plot. What I want is to zoom in on only the colored area.
First we use axesm('eqdazim') to make the axis, then set the origin by gridm('Origin', [site_lat site_lon]) (the origin itself is not marked) and the the Xlim is used as this:
set(gca, 'XLim', [-0.15 0.15], 'YLim', [-0.15 0.15]);
Then the radar data is plotted by pcolorm and the coast is plotted by plotm.
And yes, I think it will be the same as in worldmap where I want to zoom into a region, eg. Europe.

댓글을 달려면 로그인하십시오.

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by