Re: Replace a vertical line in ListPlot
- To: mathgroup at smc.vnet.net
- Subject: [mg126018] Re: Replace a vertical line in ListPlot
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Fri, 13 Apr 2012 04:47:07 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201204112220.SAA02779@smc.vnet.net>
The line is the y-axis. It defaults in this case to a value within the frame.
Options[ListPlot, Axes]
{Axes -> True}
Often, when using a frame you want to suppress one or both axes.
ListPlot[
Table[{k, 7./k}, {k, 12, 70, 1}],
Frame -> True,
Axes -> {True, False}]
ListPlot[
Table[{k, 7./k}, {k, 12, 70, 1}],
Frame -> True,
Axes -> False]
Bob Hanlon
On Wed, Apr 11, 2012 at 6:20 PM, Alexei Boulbitch
<Alexei.Boulbitch at iee.lu> wrote:
> Dear community,
>
> I am making a ListPlot with the Frame->True option. Here is a simplified example showing the feature in question:
>
> ListPlot[Table[{k, 7./k}, {k, 10, 70, 1}], Frame -> True]
>
> It is everything fine with this plot as soon as the table starts with k=10. However, if the table starts with k=12 instead of 10, like here:
>
> ListPlot[Table[{k, 7./k}, {k, 12, 70, 1}], Frame -> True]
>
> the plot shows a vertical solid line at k.
>
> Why does it appear?
> and
> How can I remove this line?
>
> Thank you, Alexei
>
> Alexei BOULBITCH, Dr., habil.
> IEE S.A.
> ZAE Weiergewan,
> 11, rue Edmond Reuter,
> L-5326 Contern, LUXEMBOURG
>
> Office phone : +352-2454-2566
> Office fax: +352-2454-3566
> mobile phone: +49 151 52 40 66 44
>
> e-mail: alexei.boulbitch at iee.lu
- References:
- Replace a vertical line in ListPlot
- From: Alexei Boulbitch <Alexei.Boulbitch@iee.lu>
- Replace a vertical line in ListPlot