Re: Trouble plotting BSpline
- To: mathgroup at smc.vnet.net
- Subject: [mg126314] Re: Trouble plotting BSpline
- From: Bob Hanlon <hanlonr357 at gmail.com>
- Date: Mon, 30 Apr 2012 04:43:22 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201204290608.CAA10803@smc.vnet.net>
sdid = {
{10000, 0.082925792}, {15000, 0.134594939},
{20000, 0.172655752}, {25000, 0.215181799},
{30000, 0.291941314}, {35000, 0.380820753},
{40000, 0.457367638}, {45000, 0.510312566},
{50000, 0.553051244}, {60000, 0.638103338},
{75000, 0.761428875}, {100000, 0.902615352},
{125000, 0.942802467}, {150000, 0.971082288},
{200000, 0.989368488}};
cdfspline = BSplineFunction[sdid];
ParametricPlot[cdfspline[t], {t, 0, 1},
AspectRatio -> 1,
Epilog -> {AbsolutePointSize[3], Red, Point[sdid]}]
Bob Hanlon
On Sun, Apr 29, 2012 at 2:08 AM, paul <paulvonhippel at yahoo.com> wrote:
> I am having trouble plotting a BSpline. I fit the spline to data where y runs from 0 to 1, but when I try to plot the spline I see no curve, and I can't get the vertical axis to go above 0.15. I'm sure what I'm missing is simple. Many thanks for any corrections.
>
> In[1]:= sdid = {{10000, 0.082925792},
> {15000, 0.134594939},
> {20000, 0.172655752},
> {25000, 0.215181799},
> {30000, 0.291941314},
> {35000, 0.380820753},
> {40000, 0.457367638},
> {45000, 0.510312566},
> {50000, 0.553051244},
> {60000, 0.638103338},
> {75000, 0.761428875},
> {100000, 0.902615352},
> {125000, 0.942802467},
> {150000, 0.971082288},
> {200000, 0.989368488}}
>
> In[2]:= cdfspline = BSplineFunction[sdid]
> In[3]:= ParametricPlot[cdfspline[x], {x, 0, 2000000}, {y, 0, 10}, AspectRatio -> 1]
>
- References:
- Trouble plotting BSpline
- From: paul <paulvonhippel@yahoo.com>
- Trouble plotting BSpline