How to control elevation of geoshow() contour lines

In our application we need to sometimes plot contour lines from geoshow() on top of other geoshow() surface plots. In order to make them visible we need to raise them in Z by a few units. We can find the ZData for the contour lines but when we try to change it we get this error message

“Insufficient number of outputs from function on right hand side of equal sign to satisfy overloaded assignment.”

The geoshow() call we’re using is this.

A = geoshow(latMat2, lonMat2,  newRain2, 'DisplayType', 'contour', 'linewidth', 1.0);

Once above command is executed, we can see the ZData (all zeros) with this

A.Children(:).ZData

We try to swap in new ZData values with this

A.Children(:).ZData = 8;

and get the above referenced error message.

Obviously we’re doing something wrong, but don’t know what it is.

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

I had a similar problem trying to overlay the build-in “states” map on my 3D surface plot. Your question helped me solve my problem, so I hope I can be of help.

My initial formulation was a little different since I was using the ‘SymbolSpec’ option of the geoshow function. Still, I think you can solve your issue assigning an array to A.Children.ZData instead of a scalar.

C = 8;  %some arbitrary height you want place your map at
A.Children.ZData = C*ones(size(A.Children.XData)));

I think the issue was that XData, YData, and ZData need to be the same size. So you just need to create an array of all “8s” and assign it to ZData.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

--

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Text Mining Starfield COEX Mall Seoul, South Korea Using R-Studio

How can I turn new dummy variables into the same dummy variables I used to create a model?

Finding data in the Library: Statistical and financial sources

First data visualization using Observable 📈📉

Meet our Data Science students: “Math is less intimidating for me than art or history”

Making Sense of it all with NLP

The Data Is Ahead, What Will I Do Now? — 1

Is “Liquid” ML the answer to autonomous driving?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Technical Source

Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

More from Medium

Underwater soundwave for different starting angles

Detecting Room Occupancy Using Machine Learning and Sensor Data

Predict the Output and Evaluate your skills in Python

Machine Learning Knowledge Encyclopedia