x 1000rand (40,1) y rand (40,1) scatter (x,y) xtickangle (45) ytickangle (90) For releases prior to R2016b, specify. Negative values indicate clockwise rotation. Positive values indicate counterclockwise rotation. We'll see further examples of these through the remainder of the book. Create a scatter plot and rotate the tick labels along each axis. (Default.) MaxNLocator with simple defaults. Locator for index plots (e.g., where x = range(len(y)))įinds up to a max number of ticks at nice locations Remove the actual horizontal axis labels. The use data labels, linked to cells, to display the descriptions of values, 0, 1, 2 and 3. For more information on any of these, refer to the docstrings or to the Matplotlib online documentaion.Įach of the following is available in the plt namespace: Locator class You can use a dummy series, plotted as xy-scatter, to plot points along the horizontal axis. We'll conclude this section by briefly listing all the built-in locator and formatter options. We've mentioned a couple of the available formatters and locators.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |