Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.7K Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

Combining Legends

Posted 5 years ago
POSTED BY: Casimir Dahrouch
2 Replies
Attachments:
POSTED BY: Joseph Smith
Posted 5 years ago

Hi Casimir,

Is this what you are trying to do? Yellow does not show well on a white background so I changed it to to Cyan

Show[
 {Plot[f[x], {x, -6, 15}, PlotStyle -> Blue, 
   PlotLegends -> LineLegend[{Blue}, {"\[ScriptCapitalU]"}]],
  Plot[g[x], {x, 0, 15}, PlotStyle -> Green, 
   PlotLegends -> LineLegend[{Green}, {"\[ScriptCapitalU]'"}]],
  Plot[a[x], {x, 0, 6}, PlotStyle -> Red, 
   PlotLegends -> LineLegend[{Red}, {"After Price\[DifferenceDelta]"}]],
  Plot[b[x], {x, 0, 2.667}, PlotStyle -> Red, 
   PlotLegends -> LineLegend[{Red}, {"Before Price\[DifferenceDelta]"}]],
  Plot[h[x], {x, 0, 4.1}, PlotStyle -> Cyan, 
   PlotLegends -> LineLegend[{Cyan}, {"Hypothetical Budget Line"}]],
  ListPlot[{{1.333, 3}, {2, 2}, {3, 3}} -> {"A", "B", "C"}]}, 
 PlotRange -> {{0, 10}, {0, 6.5}},
 GridLines -> Automatic,
 AxesOrigin -> {0, 0},
 FrameLabel -> {"Good x", "Good y"},
 Frame -> True,
 PlotLabel -> "Price of good y is cheaper", 
 LabelStyle -> {GrayLevel[0], Bold, Italic}
 ]

enter image description here

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