![]() ![]() ![]() Our inputs A, B& C are first passed as arguments to the function ‘plot’.Īnd then we simply write ‘legend’ in our code to get the labels. Now to understand how ‘Legend’ works, we will first plot our input functions and then use the function ‘legend’. Next, we will define B as the cos function of values of A and C as sine function of values of A We will define an increment of π/50 between these values. Let us understand the function with an example: Example #1įirst, we will define ‘A’ as a vector containing values between 2pi (π) and 3π. The function ‘legend’ will create labels like ‘data1’, ‘data2’, and so on. , L N), where L1, L2 and so on represents the respective labels.Įxplanation: This function will create a legend for each data series used in the plot, with descriptive labels. Hadoop, Data Science, Statistics & others
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |