Share interests, spread happiness,
Grow your knowledge and leave a good future!
Dear you, this is LearningYard.
Today, the editor brings you an article
"Qin Xue's Hard Practice (14): Introduction to Common Functions and Image Settings for Drawing Simulation Diagrams with Mathematica"
Welcome to your visit.
Share interest,spread happiness,
increase knowledge, leave a beautiful!
Dear, this is LearningYard Academy.
Today, the editor brings you an article "Qin Xue's hard training (14): Introduction to Common Functions and Image Settings for Drawing Simulation Diagrams with Mathematica "
Welcome your visit.
一、思维导图(Mindmapping)
今天小编为大家简单介绍利用Mathematica仿真画图时,常用的画图函数命令,如Plot、RegionPlot、ContourPlot、ManiPulate。 并对所画的图形通过Plotlegends、PlotRangePadding、LegendFunction、FrameLabel、Frame、PlotStyle、Labeled等这些作图函数选项,来美化我们所画的图形,希望能够帮助到大家。
Today, we will briefly introduce the commonly used drawing function commands, such as Plot, RegionPlot, ContourPlot and ManiPulate, when using Mathematica to simulate drawing. And through Plotlegends, PlotRangePadding, LegendFunction, FrameLabel, Frame, PlotStyle, Labeled and other drawing function options, we can beautify the graphics we draw, hoping to help you.
二、仿真中常用画图函数命令介绍(Introduction of Common Drawing Function Commands in Simulation)
1、函数Plot(Function Plot)
Plot[function group, variable range, image settings], as shown in the figure below, in the plane Cartesian coordinate system, the image of the two functions is drawn, and the related plot function options are made.
Plot [function group, variable range, image setting], as shown in the following figure, in the plane rectangular coordinate system, plot the images of the two functions, and perform the relevant plotting function options.
2、函数RegionPlot(Functions RegionPlot)
RegionPlot Intersection and Separation: RegionPlot[{Intersection of Two Inequalities/Separation}, Parameter Range, Image Settings], when using this function command, you need to master the programming logic notation in Mathematica, for example, "&&" represents the intersection, if you directly use a comma to separate the two inequalities, it means respectively. As shown in the figure below:
RegionPlot intersection and separate: Region Plot [{ intersection of two inequalities/separate }, parameter range, image setting]. When using this function command, you need to master the programming logic symbols in Mathematica. For example, "& &" represents intersection. If you directly use a comma to separate two inequalities, it means separate. As shown in the following figure:
3、函数ContourPlot(Function ContourPlot)
The function command ContourPlot is used to draw contour plots, ContourPlot[f, parameter range, image settings], as shown in the following figure:
The function command ContourPlot is used to draw a contour plot, ContourPlot[f,parameter range,image setting],as shown in the following figure:
4、函数ManinPulat(The function ManinPulat)
ManinPulat can be used in plotting functions such as Plot and RegionPlot, as shown in the following figure:
ManinPulat can be used in drawing functions such as Plot and RegionPlot, as shown in the following figure:
To sum up, it can be seen that when drawing, PlotLegends is used to display the meaning of each function plot outside the image, PlotRange is used to plot the range, PlotRange Padding is used to set the degree of close integration between the image and the border, and PlotStyle is used to set the style of each function line, such as virtual and real, color, etc. Frame is used to represent the bounding box, and FranmLable is used to represent the meaning of the coordinate axis outside the coordinate box. These can make our function graphs clearer and more refined.
To sum up, it can be seen that when drawing a picture, PlotLegends is used to display the meaning of each function graph outside the image, PlotRange is used to draw the range, PlotRangePadding is used to set the degree of close integration between the image and the border, and PlotStyle is used to set the style of each function line, such as virtual and real, color, etc. Use Frame to represent the border, and FranmLable to represent the meaning of the coordinate axis outside the box. Through these, our function diagram can be clearer and more refined.
三、画标记点函数线段(Line segment of marked point function)
You can use PlotMakers to set markers to represent line segments, and then use the plotting function options described earlier to beautify the image, as shown in the image below:
You can use PlotMakers to set markers to represent line segments, and then use the drawing function options described above to beautify the image, as shown in the following figure:
四、将图例标签放在图片中和标注任意位置(Place the legend label anywhere in the picture and callout)
Use PlotLegends, Place and SwatchLegend together to represent the label names of each function graph, and then use LegendLayout to set the position of the label in the image. As shown in the figure below:
Use PlotLegends, Place and SwatchLegend together to represent the label name of each function diagram, and then use Legend Layout to set the position of the label in the image. As shown in the following figure:
That's all for today's sharing.
If you have a unique idea for the article,
Welcome to leave us a message,
Let's meet tomorrow.
Have a great day!
That's all for today's sharing.
If youhave a unique idea about the article,
please leave us a message,
Let us meet tomorrow.
I wish you a happy day today!
Translation: iFLYTEK Xinghuo Translation
Reference: "Mathematica Fundamentals and Its Applications to Mathematical Modeling", Bilibili
This article is organized and sent by LearningYard, if there is any infringement, please leave a message in the background to communicate!
Text: qin
Typography: qin
Audit|Yue