Controlling the elevation (Z value) of vector plots

I’m using the quiverm() function to plot ocean surface wind vectors. Plots include multiple scalar properties as well.

Those are being plotted with geoshow() which by default puts ZData for those scalar properties at zero (elevation).

Example would be:

A = geoshow(updatedLat, updatedLon, div_D2, ‘DisplayType’, ‘Texturemap’, ‘FaceAlpha’, 1);

For visual interpretation, one of the scalar properties needs to be plotted with transparency. When that’s done, MATLAB’s openGL renderer has difficulty sorting the two surfaces (both at Z = 0) properly. Draw order is not factored in. The symptom is that even opaque surfaces are rendered as slightly transparent.

A possible remedy is to force separation between the two scalar property surfaces. Leave the transparent scalar property surface at Z = 0. Move the opaque surface upward by a small increment. Using the “A” surface created with above geoshow() call, you can accomplish the elevation change with

A.ZData(:) = 10;

That works to solve the transparency problem. The opaque scalar data plots properly over the top of the transparent data, and it stays opaque.

However, it leaves the accompanying vector plot behind. That’s still at Z = 0.

Is it possible to control the elevation (Z value) of a guiverm() vector plot?

Thanks,

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.

Adjust the ‘ZData’ of the lines In the quiverm plot:

load coast
axesm('eqaconic','MapLatLimit',[30 60],'MapLonLimit',[-10 10])
framem; plotm(lat,long)
lat0 = [50 39.7]; lon0 = [-5.4 2.9];
u = [5 5]; v = [3 3];
% Grab line handles
q = quiverm(lat0,lon0,u,v,'r')
% Adjust first line height
q(1).ZData = q(1).ZData + 100; % (14b or greater), otherwise use set/get

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

How to handle Numerical Missing Values in data with Implementation

How to Code your own Python Pre-commit Hooks with Bash

7 Best Practices for Effective Data Management

Python or R: Which One to Choose for Data Science in 2022

The Insight Exchange Foundation and survey analysis

The State of Data Infrastructure & Analytics Report 2021

Extracting the most frequently occurring words from a wikipedia entry

Topic Modelling with LDA on the Tweets Mentioning Elon Musk

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

what does eigenvalues expres in the covariance matrix?

Hyperparameter Optimization: This is Almost All You Need

Artificial intelligence can identify heart disease from eye fundus scans (Digital Health)

Applying Machine Learning to Predict the Market Cap Of Some Layer 1s Based On Total Value Locked…