Message Boards Message Boards

0
|
8362 Views
|
4 Replies
|
2 Total Likes
View groups...
Share
Share this post:

How to hide a line in a plot legend?

Posted 10 years ago
POSTED BY: Alvaro Almeida
4 Replies
Posted 10 years ago

Hello. Thank you so much. I only needed to do a few changes and it worked. In order to help others that might have the same problem, what I have done was the following:

FUB = ListPlot[{Transpose[{x[NN], CU}], Transpose[{x[NN], AQ}]}, Filling -> {2 -> {1}}, PlotMarkers -> {{"-", 12}, {" ", 12}}]];

Basically I have changed the order of x and y.

POSTED BY: Alvaro Almeida

Hi Alvaro,

Try to change FUB to

FUB = ListPlot[{Transpose[{x[NN], AQ}], Transpose[{x[NN], CU}]}, Filling -> {2 -> {1}}, PlotMarkers -> {{"\[FilledCircle]", 4}, {"-", 12}}, PlotStyle -> {Blue, Green}, PlotLegends -> LineLegend[{None, "\!\(\*SubscriptBox[\(QBER\), \(UB\)]\), Eq. (8)"}, Joined -> True]];
POSTED BY: MinHsuan Peng
Posted 10 years ago
POSTED BY: Alvaro Almeida

Hi Alvaro,

If you could put a screenshot of your result or give a working code, it will be clearer to me what you are asking. In the meanwhile, I hope this answer your question.

Plot[{x, x + 1}, {x, 0, 1}, PlotStyle -> {Red, Green}, PlotLegends -> Placed[{None, "b"}, Right]]

showing<em>partlegend

POSTED BY: MinHsuan Peng
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract