Some drawing techniques of MATLAB (no finishing)

Source: Internet
Author: User

You can use the text batch callout. As shown above, the procedure is as follows.

Draw_x=rand ([4,1]);

Draw_y=rand ([4,1]);

max_text={' 1 ', ' 2 ', ' 3 ', ' 4 '};

Line (draw_x,draw_y);

Plot (draw_x,draw_y, ' r. ', ' markersize ', 20)

Text (Draw_x+0.02,draw_y+0.02,max_text)

========================================================

matlab How to mark the coordinate point is a little more obvious.

You can use the text command, for example:% by Lyqmath
CLC;
t = linspace (0, 2*PI);
Plot (t, sin (t));
Text (PI/2, sin (pi/2), ' Max ', ' fontweight ', ' Bold ', ' fontsize ',);
Title (' by Lyqmath ', ' fontweight ', ' Bold ', ' Color ', ' R ')
======================================================================
Greek alphabet on axis

Xlabel (' \gamma ')
ylabel (' \gamma ') subscript with
_ (underline) superscript with 
^ (jian) 
Greek letters and other special characters with pinyin such as   
Α\alpha   
Β\beta   
γ\gamma   
θ\theta   
θ\theta   
г\gamma   
δ\delta   
δ\delta ξ\xi ξ\xi Η\elta   
ε\epsilong   
ζ\zeta   
μ\miu   
υ\nu   
τ\tau   
λ\lamda ∧\lamda π\pi ∏\pi   
σ\sigma 
∑\sigma   
φ\phi   
φ\phi   
ψ\psi   
ψ\psi Χ\chi Ω\ommiga Ω\ommiga
Ρ\rho (This is the most fucked up, all kinds of online do not)
=================================================================
Various Color property option
options meaning option meaning
' r ' Red ' m ' Pink '
g ' green ' C ' cyan
'
B ' Blue ' W ' white
' y ' yellow ' k ' black
various line-style attribute options 
   option meaning option meaning
'-' solid line '-' dotted '
: ' Dot-line '-. ' dot dash
various mark point attribute option
options meaning
'. ' Draw each data point with dot ' ^ ' with upper triangle drawing Each data point '
+ ' uses ' + ' to draw each data point ' V ' with the lower triangle to draw each data point '
* ' with ' * ' to draw each data point ' > ' Use the right triangle to draw each data point '
. ' Use '. ' Draw each data point ' < ' use the left triangle to draw each data point
' s ' or squar with the square to draw each data point ' P ' uses the pentagram to draw each data point '
d ' or diamond uses the diamond to draw each data point ' h ' to draw each data point
with the hexagonal star These options can be connected together, such as: '-.G ' to draw a green dotted line, ' g+ ' means to
draw the curve with the green ' + ' number.


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.