PlotLegends`
PlotLegends`

PlotLegend

As of Version 9, all the functionality of the PlotLegends package is built into the Wolfram System. »

PlotLegend

is an option for Plot, ListPlot, and related functions that assigns text to lines in a 2D plot to create a legend for that plot.

更多信息和选项

  • To use PlotLegend, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
  • PlotLegend->{text1,text2,} assigns text to each line in the same fashion as PlotStyle.
  • PlotLegend also enables Plot and related functions to accept options for Legend, which will modify the legend produced.

范例

基本范例  (1)

Add a legend to a plot to identify curves:

Wolfram Research (2007),PlotLegend,Wolfram 语言函数,https://reference.wolfram.com/language/PlotLegends/ref/PlotLegend.html.

文本

Wolfram Research (2007),PlotLegend,Wolfram 语言函数,https://reference.wolfram.com/language/PlotLegends/ref/PlotLegend.html.

CMS

Wolfram 语言. 2007. "PlotLegend." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/PlotLegend.html.

APA

Wolfram 语言. (2007). PlotLegend. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/PlotLegends/ref/PlotLegend.html 年

BibTeX

@misc{reference.wolfram_2024_plotlegend, author="Wolfram Research", title="{PlotLegend}", year="2007", howpublished="\url{https://reference.wolfram.com/language/PlotLegends/ref/PlotLegend.html}", note=[Accessed: 21-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_plotlegend, organization={Wolfram Research}, title={PlotLegend}, year={2007}, url={https://reference.wolfram.com/language/PlotLegends/ref/PlotLegend.html}, note=[Accessed: 21-November-2024 ]}