With plt you won't have to become a handle graphics expert to deal with the poorly documented and cryptic auxiliary functions such as plotyy, plotyyy, etc. with shading flat you can get rid of the grid lines. If you try plt, I think you will find that one of its strongest advantages over the native "plot" is the well organized help file which clearly explains all the plotting features (with examples!). If you dont like how imagesc handles your NaN s consider using pcolor. Also plt works the same in any version of Matlab released within the last 8 years. And of course I wouldn't have done anything as silly as linking the grid color in any way to the x or y axis ticks or labels. You also can combine multiple plots, either using separate axes in the same figure, or by combining the plots. You can customize axes by changing the limits, controlling the locations of the tick marks, formatting the tick labels, or adding grid lines. But if you do want to change it, simply use the 'GRIDc' argument as spelled out in the help file. Modify axis limits and tick values, add grid lines, combine multiple plots. (My creation, I'm proud to admit.) For one thing, the default grid color is much more subtle and reasonable so you may never be possessed to change it. Assuming you are creating 2D plots, an alternative to consider is the "plt" function from the file exchange. One shouldn't have to resort to such cryptic commands for such commonplace tasks.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |