# Style Label in Plot legend

**URL:** <https://community.wolfram.com/t/style-label-in-plot-legend/7561>\
**Category:** Questions\
**Tags:** graphics-and-visualization\
**Created:** [December 29, 2015, 3:51pm UTC](https://community.wolfram.com/t/style-label-in-plot-legend/7561 "2015-12-29T15:51:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marferit](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@marferit](https://community.wolfram.com/u/marferit)\
**Post date:** [December 29, 2015, 3:51pm UTC](https://community.wolfram.com/t/style-label-in-plot-legend/7561/1 "2015-12-29T15:51:02Z")

</div>

Hi,  
I have to plot some values.  
I created a nice graphic, but I don’t understand how to change the size and the style of the legend label.

[CANALEperSCAN.bmp](https://community.wolfram.com/uploads/short-url/mmbYjDBRLZWjHg38FMtt05GcDLH.bmp) (1.38 MB)

This is my command line:

```
pp = ListLinePlot [result, PlotStyle->{Red, Black, Green, Orange, Magenta,Blue},Frame->{{True,True},{True,True}}, FrameLabel->{{ Cp,Cp },{contour perimeter, Champ de pression}}, ImageSize->1000, RotateLabel -> False, Axes ->True,AxesStyle->Directive[Black, Thick,Dashed],FrameStyle->Directive[Black,Thick,Bold, FontSize->20], 
GridLines ->{{0.5,1,1.5,2,2.5,3,3.5,4},Automatic}, GridLinesStyle -> Directive[Gray, Dashed],
PlotLegend-> rapp, LegendPosition->{1,-0.4},PlotMarkers-> {Automatic,10},LegendShadow->False,
LegendLabel->"rapport de forme"]

```

rapp is a vector with the names of the datas

I tried with this at the and of my command line:  
LabelStyle-\>{50,Bold,GrayLevel[0.3]}  
But it doesn’t run.

Thanks for your help

Margherita  
[1]: [http://community.wolfram.com//c/portal/getImageAttachment?filename=CANALEperSCAN.bmp&userId=228925](http://community.wolfram.com//c/portal/getImageAttachment?filename=CANALEperSCAN.bmp&userId=228925)

---

<div class="post-metadata">

**Author:** ![eric3](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/eric3/32/12760_2.png) [@eric3](https://community.wolfram.com/u/eric3)\
**Post date:** [December 29, 2015, 4:44pm UTC](https://community.wolfram.com/t/style-label-in-plot-legend/7561/2 "2015-12-29T16:44:32Z")

</div>

Margherita,

If you need a custom legend, beyond just the basic options provided in most plot functions, then you probably need to use Legended:

```
Legended[ListLinePlot[{RandomReal[{0, 100}, 20], RandomReal[{0, 100}, 20]}], LineLegend[{Red, Blue}, {"A", "B"}, LegendLabel -> Style["legend label", Blue, FontFamily -> "Times New Roman"]]]

```

Legended can also be used for specific elements inside the plot. You may need to specify the plot colors so that the legend aligns with the plot, because I’m not aware of a way that Legended can pick those colors up automatically (but it’s certainly possible that there is a way to do that).

---

<div class="post-metadata">

**Author:** ![josklaps1](https://yyz1.discourse-cdn.com/wolfram/user_avatar/community.wolfram.com/josklaps1/32/22044_2.png) [@josklaps1](https://community.wolfram.com/u/josklaps1)\
**Post date:** [December 29, 2015, 4:48pm UTC](https://community.wolfram.com/t/style-label-in-plot-legend/7561/3 "2015-12-29T16:48:30Z")

</div>

Hi Margherite,

I missing your data and can’t test your code, but probable this will help.

```
data1 = {10, 18, 30, 41, 50};
data2 = {30, 45, 55, 57, 60};
ListPlot[{data1, data2}
 , AxesOrigin -> {0, 0}
 , PlotRange -> All
 , Joined -> True
 , Mesh -> All
 , AxesLabel -> {"time", "y"}
 , PlotLabel -> "y(t)"
 , Filling -> {1 -> {2}}
 , PlotLegends -> PointLegend[Automatic, {"data1", "data2"}
   , LegendFunction -> "Frame"
   , LegendMarkerSize -> 20
   , LegendLabel -> "datasets"]
 ]

```

Good luck,…Jos

---

<div class="post-metadata">

**Author:** ![marferit](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@marferit](https://community.wolfram.com/u/marferit)\
**Post date:** [December 29, 2015, 5:41pm UTC](https://community.wolfram.com/t/style-label-in-plot-legend/7561/4 "2015-12-29T17:41:51Z")

</div>

Thanks a lot!

very useful suggestions.

Cheers
