2

I am using the Show function to graph two functions I previously plotted with ListPlot. I used FrameLabel to name my axis, but it does not work. enter image description here

  • 1
    Those are probably axes and not frames, technically. Try adding the Options: Axes -> None, Frame -> {{True, False}, {True, False}} then playing around with the FrameLabel option. – nben Jun 25 '17 at 16:07
  • You need AxesLabel option. – swish Jun 25 '17 at 16:10

1 Answers1

2

Combine Show with Labeled

graph1 = ListPlot[Range@10, PlotStyle -> Green];
graph2 = ListPlot[Reverse@Range@10, PlotStyle -> Red];

Labeled[
  Show[{graph1, graph2}, BaseStyle -> {18, FontFamily -> "Helvetica"}],
    {"xxx", "yyy"},
    {Bottom, Left},
    RotateLabel -> True]

enter image description here

If you want to use FrameLabel you have to specify Frame:

ListPlot[{Range@10, Reverse@Range@10},
 BaseStyle -> {18, FontFamily -> "Helvetica"},
 PlotStyle -> {Green, Red},
 Frame -> {{True, False}, {True, False}},
 FrameLabel -> {"xxx", "yyy"}]

enter image description here

eldo
  • 67,911
  • 5
  • 60
  • 168