function[CC hC] = wmtp_drawcontourf(x, y, data, levels)%#%# The WMT tool is a collection of Octave/Matlab scripts able to generate geographic maps images.%#%# Copyright 2012 ikonact%# http://commons.wikimedia.org/wiki/User:Ikonact%#%# This file is part of the WMT tool.%#%# WMT is free software: you can redistribute it and/or modify%# it under the terms of the GNU General Public License as published by%# the Free Software Foundation, either version 3 of the License, or%# (at your option) any later version.%#%# WMT is distributed in the hope that it will be useful,%# but WITHOUT ANY WARRANTY; without even the implied warranty of%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%# GNU General Public License for more details.%#%# You should have received a copy of the GNU General Public License%# along with WMT. If not, see <http://www.gnu.org/licenses/>.globalwmt_param;ifisfield(wmt_param,'projection')&&~strcmp(wmt_param.projection,'')[CChC]=m_contourf(x,y,data,levels);xlim(wmt_param.relxlim);ylim(wmt_param.relylim);else[CChC]=contourf(x,y,data,levels);xlim([wmt_param.limits(3)wmt_param.limits(4)]);ylim([wmt_param.limits(1)wmt_param.limits(2)]);end