Labeling Plot

  • Mathematica
  • Thread starter joshmccraney
  • Start date
  • #1
joshmccraney
Gold Member
1,955
102
Hi PF!

I am trying to label two different sets of streamlines but am having no luck. My code is
Code:
StreamPlot[{{y, -x}, {x, y}}, {x, -3, 3}, {y, -3, 3},
 PlotLegends -> LineLegend["graph 1", "graph 2"]]
Thanks!
 

Answers and Replies

  • #2
DrClaude
Mentor
7,403
3,669
Try the simpler approach
Code:
StreamPlot[{{y, -x}, {x, y}}, {x, -3, 3}, {y, -3, 3},
PlotLegends -> {"graph 1", "graph 2"}]
 
  • Like
Likes joshmccraney
  • #3
joshmccraney
Gold Member
1,955
102
Thanks!
 

Related Threads on Labeling Plot

  • Last Post
Replies
2
Views
638
  • Last Post
Replies
7
Views
688
Replies
1
Views
9K
Replies
2
Views
4K
  • Last Post
Replies
1
Views
2K
Replies
6
Views
7K
Replies
11
Views
4K
Replies
1
Views
742
Replies
7
Views
90K
Top