PlotLegends`
PlotLegends`

ShowLegend

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

ShowLegend[graphics,legend1,legend2,]

places the legend1, legend2, in the given graphic graphics.

Details and Options

  • To use ShowLegend, you first need to load the Plot Legends Package using Needs["PlotLegends`"].
  • Each legendi is in the same format as a call to Legend.
  • The graphic graphics is placed in a rectangle whose center is at , and whose boundaries are . These coordinates must be used to place the legends.
  • The aspect ratio of graphics is unchanged.

Examples

Basic Examples  (1)

Density plot with a legend:

Surface plot with a legend:

Plot with a legend for the filling styles:

Wolfram Research (2007), ShowLegend, Wolfram Language function, https://reference.wolfram.com/language/PlotLegends/ref/ShowLegend.html.

Text

Wolfram Research (2007), ShowLegend, Wolfram Language function, https://reference.wolfram.com/language/PlotLegends/ref/ShowLegend.html.

CMS

Wolfram Language. 2007. "ShowLegend." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/PlotLegends/ref/ShowLegend.html.

APA

Wolfram Language. (2007). ShowLegend. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/PlotLegends/ref/ShowLegend.html

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_showlegend, organization={Wolfram Research}, title={ShowLegend}, year={2007}, url={https://reference.wolfram.com/language/PlotLegends/ref/ShowLegend.html}, note=[Accessed: 23-December-2024 ]}