tags:

views:

26

answers:

1

i want to making a software that reads the satellite data from text file and plot graph for different parameters f the oceans. the idea is aroused from Oceonographic Data View(ODV). Well now my problem is how to plot a graph on an image of the Indian ocean. where the image must be overlapped with the graph and on zooming the area of the image with the graph could be zoomed.. please help me . I am at the starting phase of my project so didnt work o the code . Plz help me to proceed....

A: 

To load and display images, the Displaying Bit-Mapped Images tutorial from MathWorks may not be a bad place to start.

To overlay plots on the image, using hold on followed by plot should work.

An important part will be to have a sensible metric when displaying your image that allows you to place your overlays accurately. In the example below, notice the first and second arguments to image that define this; you could replace it by say linspace(0,1,size(X,1)) if you wanted it scaled between 0 and 1 instead of between 1 and 480 as below.

load mandrill
image(1:480,1:500,X) % display image
colormap(map)

hold on % prevent subsequent plot commands from destroying the image
plot([1 480],[100 100],'w','LineWidth',2) % plot an overlay line
Matt Mizumi

related questions