Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do tell PyNGL not to plot missing values in my contour or XY plot?

Contour MISSING plot pyngl values XY
0
Posted

How do tell PyNGL not to plot missing values in my contour or XY plot?

0

If you have version 1.3.0b1 or later of PyNGL, then missing values will automatically be ignored if you pass a numpy masked array to a plotting function. However, if you don’t have a masked array, then for contour data, use the ScalarField resource sfMissingValueV (for an example, see tutorial example 9). For vector or streamline data, use the resources vfMissingUValueVand vfMissingVValueV For XY data, use the resource caXMissingV or caYMissingV (for an example, see tutorial example 10). • How do I get log scaling in an XY or contour plot? For an XY plot, set the XyPlot resources xyXStyle and/or xyYStyle to “Log” depending on which axes you want to be in log scaling. For an example see the script “xy1.py” and the output (frame 1). For a contour plot, the method for changing to log scaling depends on whether the coordinates for the axis you want to log are regularly or irregularly spaced. If they are regularly spaced, then use trXLog or trYLog just like it was done for the XY plot above

0

If you have version 1.3.0b1 or later of PyNGL, then missing values will automatically be ignored if you pass a numpy masked array to a plotting function. However, if you don’t have a masked array, then for contour data, use the ScalarField resource sfMissingValueV (for an example, see tutorial example 9). For vector or streamline data, use the resources vfMissingUValueVand vfMissingVValueV For XY data, use the resource caXMissingV or caYMissingV (for an example, see tutorial example 10). • How do I get log scaling in an XY or contour plot? For an XY plot, set the XyPlot resources xyXStyle and/or xyYStyle to “Log” depending on which axes you want to be in log scaling. For an example see the script “xy1.py” and the output (frame 1). For a contour plot, the method for changing to log scaling depends on whether the coordinates for the axis you want to log are regularly or irregularly spaced. If they are regularly spaced, then use trXLog or trYLog just like it was done for the XY plot above

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123