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


Groups > comp.soft-sys.math.mathematica > #10836 > unrolled thread

Framed plot provides an extra vertical line

Started byRobert McHugh <rtmphone09@gmail.com>
First post2012-07-08 22:58 +0000
Last post2012-07-09 02:46 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Framed plot provides an extra vertical line Robert McHugh <rtmphone09@gmail.com> - 2012-07-08 22:58 +0000
    Re: Framed plot provides an extra vertical line Helen Read <readhpr@gmail.com> - 2012-07-09 02:46 +0000

#10836 — Framed plot provides an extra vertical line

FromRobert McHugh <rtmphone09@gmail.com>
Date2012-07-08 22:58 +0000
SubjectFramed plot provides an extra vertical line
Message-ID<jtd3bj$9jg$1@smc.vnet.net>
Sometimes I have observed the Plot command produces a plot with an extra
vertical line. An examples of what I mean is in the first graph below,
which is a framed plot with specified ticks and grid lines for the x-axis.
 Note the extra vertical line running the height of the plot at x = 50.  It
is interesting to note that this vertical line is at the same location that
Plot would automatically place the y-axis, as shown by the second plot,
which is an unframed plot with default settings.   Note that in this case,
the frame ticks and grid spacing was chosen to correspond to a 24 hour
cycle, i.e. one tick for each day and a 6 hour grid spacing.

There is probably some command that I should add to the first plot to
suppress this extra vertical line.  Can someone point out what that command
is?
Thanks,
Bob.

tTicks = Range[0, 24 30, 24];
tGrid = Range[0, 24 30, 6];

Plot[ { Sin[t]}, {t, 24, 24 10 }
 , PlotRange -> {{24, 24 10}, {-3, 3} }
 , Frame -> True
 , FrameTicks -> {tTicks, Automatic}
 , GridLines -> {tGrid, Automatic}

 ]

Plot[ { Sin[t]}, {t, 24, 24 10 }
 , PlotRange -> {{24, 24 10},  {-3, 3} }
 ]

[toc] | [next] | [standalone]


#10848

FromHelen Read <readhpr@gmail.com>
Date2012-07-09 02:46 +0000
Message-ID<jtdgn3$ajp$1@smc.vnet.net>
In reply to#10836
Turning on the Frame doesn't turn off the Axes. You need to get rid of 
the Axes explicitly if you don't want them there.

Frame -> True, Axes -> False

Helen Read
University of Vermont


On 7/8/2012 6:58 PM, Robert McHugh wrote:
> Sometimes I have observed the Plot command produces a plot with an extra
> vertical line. An examples of what I mean is in the first graph below,
> which is a framed plot with specified ticks and grid lines for the x-axis.
>   Note the extra vertical line running the height of the plot at x = 50.  It
> is interesting to note that this vertical line is at the same location that
> Plot would automatically place the y-axis, as shown by the second plot,
> which is an unframed plot with default settings.   Note that in this case,
> the frame ticks and grid spacing was chosen to correspond to a 24 hour
> cycle, i.e. one tick for each day and a 6 hour grid spacing.
>
> There is probably some command that I should add to the first plot to
> suppress this extra vertical line.  Can someone point out what that command
> is?
> Thanks,
> Bob.
>
> tTicks = Range[0, 24 30, 24];
> tGrid = Range[0, 24 30, 6];
>
> Plot[ { Sin[t]}, {t, 24, 24 10 }
>   , PlotRange -> {{24, 24 10}, {-3, 3} }
>   , Frame -> True
>   , FrameTicks -> {tTicks, Automatic}
>   , GridLines -> {tGrid, Automatic}
>
>   ]
>
> Plot[ { Sin[t]}, {t, 24, 24 10 }
>   , PlotRange -> {{24, 24 10},  {-3, 3} }
>   ]
>




[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web