Matlab picture shows imshow axis title Xlabel Ylabel plot

Source: Internet
Author: User

The image matrix is converted from uint to double, and the imshow default double is between 0~1, so the workaround imshow (i/256) or imshow (i,[]).

axis on, axis normalthe function is to set the range and display of the axes.

Title adds a name to the graphic.

Xlabel (' \theta ') add an x-coordinate callout.

Ylabel (' \rho ') Add a y-coordinate callout.

In the general default case, MATLAB uses the plot function to draw the graph each time, will produce a graph againForm window. However, it is sometimes desirable that subsequent graphs be compared with the drawings drawn earlier. In general there are two ways:One is to use the Hold On (/off) command, the newly generated graphics curve superimposed on the existing graph;

The second is to use the subplot (m,n,k) function, separate the graphics window into N mx sub-graph, and select the K figure as the current graph

, thendraw multiple small shapes in the same view window.

Plot (Y)

If Y is an array of MXN, with 1:m as the x-axis, each column in Y is the y-coordinate, and the n curve is plotted;

If y is a vector of nx1 or 1XN, then the 1:n is the horizontal axis, and y is the coordinate table to draw 1 curves;

If Y is a complex number, plot (y) is equivalent to plot (real (y), imag (y)), and the imaginary part in the coordinate data is ignored in other usage cases.

Plot (X1,y1,...) If both x and Y are arrays, draw coordinate data by column, at which point they must have the same dimensions;

If x and Y are one of the vectors and the other is an array, the dimensions equal in x and Y correspond to draw multiple curves;

If x and Y are one of the scalars and the other is a vector, then the vertical x or y-axis discrete points will be drawn.

plot (X1,y1,linespec,...) The Curve property of the curve is specified by the parameter Linespec, which includes the Linetype, marker, and color. The plot function supports drawing any group of graphs at the same time .

Plot (Axes_handle,...) Specifies the coordinate system, which is the drawing in the Axes_handle coordinate system, which defaults to GCA when not specified. h = Plot (...) Returns a handle to all the curve handle objects created by plot. Each curve corresponds to a handle, and if there are n curves, h is an array of nx1.


Matlab picture shows imshow axis title Xlabel Ylabel plot

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.