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


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

ListPlot skips first point

Started byThemis Matsoukas <tmatsoukas@me.com>
First post2013-05-22 06:18 +0000
Last post2013-05-23 07:55 +0000
Articles 3 — 3 participants

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


Contents

  ListPlot skips first point Themis Matsoukas <tmatsoukas@me.com> - 2013-05-22 06:18 +0000
    Re: ListPlot skips first point "Kevin J. McCann" <kjm@KevinMcCann.com> - 2013-05-23 07:52 +0000
    Re: ListPlot skips first point spamslayer19@gmail.com - 2013-05-23 07:55 +0000

#14573 — ListPlot skips first point

FromThemis Matsoukas <tmatsoukas@me.com>
Date2013-05-22 06:18 +0000
SubjectListPlot skips first point
Message-ID<knhnvu$9kv$1@smc.vnet.net>
In the particular example below, the first point of data2 is *not* plotted. If I drop the last point of data2, then the first point comes into view. Not sure why.

data1 = {{1, 11.07}, {120, 11.07}};
data2 = {{1, 11.07}, {2, 2.15}, {3, 0.83}, {4, 0.43}, {5, 0.26}, {6, 
    0.17}, {7, 0.12}, {8, 0.09}, {9, 0.07}, {10, 0.06}, {11, 
    0.05}, {12, 0.04}, {13, 0.03}, {14, 0.03}, {15, 0.03}, {16, 
    0.02}, {17, 0.02}, {18, 0.02}, {19, 0.02}, {20, 0.01}, {21, 
    0.01}, {22, 0.01}, {23, 0.01}, {24, 0.01}, {25, 0.01}, {26, 
    0.01}, {27, 0.01}, {28, 0.01}, {29, 0.01}, {30, 0.01}, {31, 
    0.01}, {32, 0.01}, {33, 0.01}, {34, 0.01}, {35, 0.01}, {36, 
    0.01}, {37, 0.01}, {38, 0.01}, {39, 0.01}, {40, 0.01}, {41, 
    0.01}, {42, 0.01}, {43, 0.01}, {44, 0.01}, {45, 0.01}, {46, 0.01}};

Show[
 ListLogPlot[data1, PlotStyle -> Red, Joined -> True, 
  PlotRange -> {{0, 20}, {0.001, 100}}],
 ListLogPlot[data2, PlotStyle -> Blue, Joined -> True]
 ]

This is with v9 for the Mac.

[toc] | [next] | [standalone]


#14585

From"Kevin J. McCann" <kjm@KevinMcCann.com>
Date2013-05-23 07:52 +0000
Message-ID<knkhrf$id7$1@smc.vnet.net>
In reply to#14573
It plots fine for me. Windows 7, V9.0.1.

Kevin

On 5/22/2013 2:18 AM, Themis Matsoukas wrote:
> In the particular example below, the first point of data2 is *not* plotted. If I drop the last point of data2, then the first point comes into view. Not sure why.
>
> data1 = {{1, 11.07}, {120, 11.07}};
> data2 = {{1, 11.07}, {2, 2.15}, {3, 0.83}, {4, 0.43}, {5, 0.26}, {6,
>      0.17}, {7, 0.12}, {8, 0.09}, {9, 0.07}, {10, 0.06}, {11,
>      0.05}, {12, 0.04}, {13, 0.03}, {14, 0.03}, {15, 0.03}, {16,
>      0.02}, {17, 0.02}, {18, 0.02}, {19, 0.02}, {20, 0.01}, {21,
>      0.01}, {22, 0.01}, {23, 0.01}, {24, 0.01}, {25, 0.01}, {26,
>      0.01}, {27, 0.01}, {28, 0.01}, {29, 0.01}, {30, 0.01}, {31,
>      0.01}, {32, 0.01}, {33, 0.01}, {34, 0.01}, {35, 0.01}, {36,
>      0.01}, {37, 0.01}, {38, 0.01}, {39, 0.01}, {40, 0.01}, {41,
>      0.01}, {42, 0.01}, {43, 0.01}, {44, 0.01}, {45, 0.01}, {46, 0.01}};
>
> Show[
>   ListLogPlot[data1, PlotStyle -> Red, Joined -> True,
>    PlotRange -> {{0, 20}, {0.001, 100}}],
>   ListLogPlot[data2, PlotStyle -> Blue, Joined -> True]
>   ]
>
> This is with v9 for the Mac.
>

[toc] | [prev] | [next] | [standalone]


#14595

Fromspamslayer19@gmail.com
Date2013-05-23 07:55 +0000
Message-ID<knki16$ie3$1@smc.vnet.net>
In reply to#14573
Reverse your data1 and data2 variables.

Show[ListLogPlot[data2, PlotStyle -> Red, Joined -> True, 
  PlotRange -> {{0, 20}, {0.001, 100}}], 
 ListLogPlot[data1, PlotStyle -> Blue, Joined -> True]]

I don't know why that works, but it does. :o

On Wednesday, May 22, 2013 1:18:38 AM UTC-5, Themis Matsoukas wrote:
> In the particular example below, the first point of data2 is *not* plotted. If I drop the last point of data2, then the first point comes into view. Not sure why.
> 
> 
> 
> data1 = {{1, 11.07}, {120, 11.07}};
> 
> data2 = {{1, 11.07}, {2, 2.15}, {3, 0.83}, {4, 0.43}, {5, 0.26}, {6, 
> 
>     0.17}, {7, 0.12}, {8, 0.09}, {9, 0.07}, {10, 0.06}, {11, 
> 
>     0.05}, {12, 0.04}, {13, 0.03}, {14, 0.03}, {15, 0.03}, {16, 
> 
>     0.02}, {17, 0.02}, {18, 0.02}, {19, 0.02}, {20, 0.01}, {21, 
> 
>     0.01}, {22, 0.01}, {23, 0.01}, {24, 0.01}, {25, 0.01}, {26, 
> 
>     0.01}, {27, 0.01}, {28, 0.01}, {29, 0.01}, {30, 0.01}, {31, 
> 
>     0.01}, {32, 0.01}, {33, 0.01}, {34, 0.01}, {35, 0.01}, {36, 
> 
>     0.01}, {37, 0.01}, {38, 0.01}, {39, 0.01}, {40, 0.01}, {41, 
> 
>     0.01}, {42, 0.01}, {43, 0.01}, {44, 0.01}, {45, 0.01}, {46, 0.01}};
> 
> 
> 
> Show[
> 
>  ListLogPlot[data1, PlotStyle -> Red, Joined -> True, 
> 
>   PlotRange -> {{0, 20}, {0.001, 100}}],
> 
>  ListLogPlot[data2, PlotStyle -> Blue, Joined -> True]
> 
>  ]
> 
> 
> 
> This is with v9 for the Mac.

[toc] | [prev] | [standalone]


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


csiph-web