2-D Plot with Latitude, Pressure Level, and other Variables

Hi everyone!
I have been tasked with plotting specific humidity on a 2-D plot that uses latitude as the x-axis and atmospheric pressure level as the y-axis. In essence, specific humidity should be a dotted line that expresses how the variable changes with respect to latitude and pressure level. Am I making this more complicated than it has to be? Any helpful tips on how best to approach the problem?
Thanks in advance!
P.S. Here is a 3-D plot I produced using lat, atmospheric pressure, and specific humidity. Unfortunately, I need a 2-D plot with lat and pressure as axes and specific humidity as a dotted line.

4 Comments

Something like contour with a dotted line instead of a solid one?
Hi Walter! Thank you for your question. It can be either/or - it just has to be a line rather than scattered points. My concern is, how do I visualize the line (specific humidity) if my axes are latitude and atmospheric pressure?
create a grid of humidity based on latitude and pressure, and contour?
Walter, thank you! I ended up using the contour function to keep a few contour lines of specific humidity (g/kg). I appreciate your help! This was the tip I needed! Please take care and stay safe. :)

Sign in to comment.

 Accepted Answer

Thank you to all for your input! The issue was addressed using the contour function and focusing on one contour line of interest.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!