![]() Otherwise the previously plotted lines will disappear from the figure. I found some method but they didn't help my request. We need to hold the contents of a figure with hold on the latest before we add the second line. Answered: emami.m on I want to plot a multiple graf of varing a function in one plot with different color with different markers or different linestyle. An alternative is to use separate commands for each line. ![]() However, LINE objects do not respect ALPHA values even t. LineSpec is an argument to plotting functions, such as plot, that defines three components used to specify lines in MATLAB: Line style Color Marker symbol. I use the ALPHA command to set the transparency of objects in my figure. ![]() In the above example, we plotted the lines with a single plot-command. How can I set the transparency of LINE objects. Legend('f(x) = x^2', 'f(x) = 2x^2', 'f(x) = 4x^2', 'Location','North') Answers Trial Software Product Updates Continue Long Statements on Multiple Lines This example shows how to continue a statement to the next line using ellipsis (. As one can see from the plot, nine lines are there. Title('Quadratic functions with different curvatures') X = linspace(-2,2,100) % 100 linearly spaced points from -2 to 2 Matlab only has 4 line styles Ask Question Asked 8 years, 5 months ago Modified Viewed 15k times 5 In the help of matlab, there are only 4 linestyles: '- ' Solid line (default) '-' Dashed line ':' Dotted line '. Additionally, we choose a different appearance for the lines and create a legend. In this example we are going to plot multiple lines onto a single axis. Tradurre Modificato: Adam Danz il Risposta accettata: Star Strider I would like to plot vertical lines at several specified points (x axis) on a graph.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |