Why is the printed image different from that showed in figure window

The problem is that the printed picture on paper is different from the picture in figure window on my monitor, especially over the land area. I want to shelter the data in the land with m_coast function, but the printed picture always shows the data out, what is the solution for it? Any help will be much appreciated!
The picture in the figure window on the monitor is below.
The printed picture is below.

2 Comments

Zifeng,
I am not sure what you mean when you when you say "I want to shelter the data in the land". Can you provide some code so we can get a better idea of what you are doing and what exactly you are expecting...
I think the "land" is gray, and the "water" is white. He want arrows only over the white water, not over the gray land.

Sign in to comment.

 Accepted Answer

6 Comments

it does not work, I still don't know where the problem is ?
when I use the export_fig function, the image showed like below, after 'zbuffer' was changed , the image shows the same initial problem
Attach your code. Also state what toolboxes it requires. If it requires the Mapping Toolbox, I won't be able to run it.
m_proj('mercator','lon',[min_lon max_lon],'lat',[min_lat max_lat]); m_quiver(lon, lat, u, v,'b'); hold on; m_gshhs_h('patch',[.75 .75 .75],'edgecolor','k'); m_grid set(gcf,'Color','w'); title('20110405 Num 00 To 01') export_fig('-r300','-jpg','Currents.jpg') % the sentence caused the gathering image
export_fig('-r300','-jpg','-zbuffer','Currents.jpg') % this causes the previous problem
Sorry - I don't have those functions. Since you didn't add a product, one assumes they are in base MATLAB, but they are not. Did you see where I said "Also state what toolboxes it requires."????
So all I can assume is that those are custom-written programs of yours and you'll have to debug them yourself. You can call the Mathworks for help.
Thanks very much for your help! This requires m_map boxes.

Sign in to comment.

More Answers (0)

Categories

Find more on MATLAB Support Package for USB Webcams in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!