Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #9589

Re: Replace a vertical line in ListPlot

From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Replace a vertical line in ListPlot
Date 2012-04-13 08:49 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <jm8pb5$iqo$1@smc.vnet.net> (permalink)
References <201204112220.SAA02779@smc.vnet.net>

Show all headers | View raw


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@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@iee.lu

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Replace a vertical line in ListPlot Bob Hanlon <hanlonr357@gmail.com> - 2012-04-13 08:49 +0000

csiph-web