3
$\begingroup$

I would like to use ListPlot without Frame. But AxesLabel produces y-label above the y-axis and I want the label to be left from the axis like in FrameLabel. How can I get it?

$\endgroup$
1
  • $\begingroup$ Why was this closed? The Q is valid, maybe sub-par phrasing. In fact AxesLabel butchers ImageSize as well, and from the answers so far there's no easy way to get what OP asks. $\endgroup$ Jan 9, 2018 at 23:49

2 Answers 2

4
$\begingroup$

I've solved this by the following way:

ListPlot[list, PlotStyle -> Black, 
 LabelStyle -> Directive[FontFamily -> "Arial", Medium], 
 Frame -> True, FrameLabel -> {"xlabel", "ylabel"}, 
 FrameStyle -> {{None, White}, {None, White}}]

Are there another ways?

$\endgroup$
1
  • 1
    $\begingroup$ You could use Transparent instead of White. $\endgroup$ Aug 17, 2015 at 12:48
3
$\begingroup$
list = RandomReal[{-10, 10}, {10, 2}];

You can selectively turn the Frame elements on/off.

ListPlot[list, PlotStyle -> Black, 
 LabelStyle -> Directive[FontFamily -> "Arial", Medium],
 Frame -> {{Automatic, None}, {Automatic, None}}, 
 FrameLabel -> {"xlabel", "ylabel"}]

enter image description here

Note that the Axes may still appear unless you explicitly turn them off.

ListPlot[list, PlotStyle -> Black, 
 LabelStyle -> Directive[FontFamily -> "Arial", Medium],
 Axes -> False, Frame -> {{Automatic, None}, {Automatic, None}}, 
 FrameLabel -> {"xlabel", "ylabel"}]

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.