MATLAB: Do I recieve a warning when opening the FIG-file in MATLAB using the OPENFIG function

datahgloadlogMATLABnegativeopenfigscalewarning

When I try to open a FIG-file using the OPENFIG command, I receive the following warning:
Warning: Negative data ignored.
> In hgload at 150
In openfig at 89
In diprun at 17
This occurs each time the figure is loaded. Apart from this warning, everything else works fine.

Best Answer

This warning occurs when you give negative axis limits or data to an axis with a logarithmic scale and save this figure. Each time you open the figure, you will receive this warning. To avoid this warning, use only positive data when using log scales.