Closed aribal2018 closed 9 months ago
@aribal2018 please provide working example showing the problem. Preferably this should be moved to the Slack channel. Sign up here
When we run the example, we get a perfect figure for the mesh as follows:
However, when I try to plot the bathymetry using command: plot(m,'type','bmesh'); % plot bathy on the mesh Then, I get the following errors:
where the figure is as follows:
I am expecting to obtain the figure as the mesh figure but for the bathymetry. Hope this makes sense.
@aribal2018 This makes sense now. It is having trouble because of cmocean pivot issue since your bathymetry doesn't go to zero. This may be a bug that deserves fixing. I'll take a look. But you can just manually type 'm_grid;' to get the lat-lon axis and manually update colormap to your desired settings as well.
Great.. Thanks
Check out the colormap kwarg argument in the plot method. The color limits aren't able to represent the range of colors in the subdomain you're plotting.
Thanks. I will check it. This is still related to plot bathymetry.
Is the anyway to plot bathymetry based on the file fort.14? I have created my final mesh but I forgot to plot the bathymetry.
However, I have the files *.14 and mesh file. I believe the bathymetry can be plotted using those files but do not know how. Thanks again. Your help is very much appreciated.
use msh() command to read in fort.14 file. please see Matlab help msh.msh
/ user guide.
Thanks
Good morning,
I am trying to plot the bathymetry with proper axis for example_8_AK but was not successful.
The bathymetry can be plotted but I just could not fixed the axis. This should be very simple one but I just could not figure it out.
Any suggestion will be greatly appreciated. Thank you very much.