Tag Info

New answers tagged

0

The question is not clear, so far, but I assume you mean the PlotLegends and not PlotLabel. Mathematica 10 ParametricPlot[ {.5, t} , {t, 0, .5} , PlotStyle -> Blue , PlotLabel -> "here the plot Label" , PlotLegends -> {"here your legend"} , FrameLabel -> {"botoom", "left", "top", "right"} , PlotTheme -> "Detailed" ] ...


1

This may not be a right answer since the question was asked before Mathematica introduced the PlotLegends option. Using this facility, what OP asked was achieved relatively easier than the traditional methods in my opinion. This goal can be done by simply using the option LegendMarkerSize. However, I found it not so evident and thus I think this post might ...


3

A quick check by running ToBoxeson your example showed a couple of Opacity[0.3] in the output (not sure why this is done), causing the ligther color. This solved the problem for me: PointLegend[{Black}, {"a"}, LegendMarkers -> {Graphics[{EdgeForm[{Black, AbsoluteThickness[2], Opacity[1]}], FaceForm[White], Rectangle[]}]}, LegendMarkerSize ...


4

If you look at the box form of your legend (using ToBoxes) you will see that the GraphicsBox representing your marker has the option DefaultBaseStyle -> {"Graphics", {AbsolutePointSize[6]}, Directive[EdgeForm[Directive[Opacity[0.3], GrayLevel[0]]], PointSize[0.5], AbsoluteThickness[1.6], GrayLevel[0]]} Note that it includes an Opacity[0.3] in the ...


2

$Version "10.2.0 for Mac OS X x86 (64-bit) (July 7, 2015)" dat = Transpose@{Range@40, RandomReal[{.8, 1.2}, 40]*Range@40}; Legended[ ListPlot[dat], Placed[ LineLegend[{Blue}, {Style["I want a line legend!!!", 14]}], {.3, .8}]]


12

This is not a bug. I think that this is not a bug, see addendum. Based on my (limited!) experience, I believe that LineLegend and PointLegend are in fact the very same thing with differing default options. LineLegend has Joined -> True while PointLegend has Joined -> False by default, but otherwise they are identical. The syntax you used, i.e. ...


3

In the answer of Karsten 7. the BarLegend is shown as a Cell expression, and since I want to use the legend in an actual plot, it is not immediately useful. However, with the help of his/her answer, I managed to solve my problem. First I make the legend: barLegend = ToExpression[FrameBox@@MakeBoxes[ BarLegend[{"SunsetColors", {0, 1}}, LegendMarkerSize ...


3

I went back to the old legend functions that I used before BarLegend existed, and tried the following: First, copy the definitions of trimPoint, colorLegend, display and at by selecting the large code block in the section Color bar legend. Then do this: display[{ colorLegend[ ColorData["SunsetColors"], {-.5, .5}, LabelStyle -> ...


9

Somehow the AbsolutThickness you specified gets replaced by a default value of AbsoluteThickness[0.2]. This misbehavior can be corrected by replacing the incorrect value with your specification. Needs["GeneralUtilities`"] PlotLegends; (*preload definitions*) Cell[BoxData[ MakePasteBox@ BarLegend[{"SunsetColors", {0, 1}}, LabelStyle -> ...



Top 50 recent answers are included