Re: Plot a function on Time Scales
- To: mathgroup at smc.vnet.net
- Subject: [mg63576] Re: [mg63568] Plot a function on Time Scales
- From: Pratik Desai <pdesai1 at umbc.edu>
- Date: Fri, 6 Jan 2006 05:24:19 -0500 (EST)
- References: <200601051102.GAA24336@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Unal Ufuktepe wrote:
>Let f(x)=x^2 and I want to draw the graph of f on
>T=[-1,1]U{2,5,8,11}U[12,20]
>How can I plot this function on T with
>Mathematica without spliting the graph?
>Any idea? (I tried the PiecewisePlot but did not work with 5.2)
>Thanks
>nal
>Ufuktepe,PhD
>Izmir Institute of Technology
>Department of Mathematics,
>Gülbahce-Urla, Izmir 35435
>Phone:(232)-7507614
>
>
>
Perhaps something like this
ListPlot[#^2 & /@Union[Range[-1, 1], {2, 5, 8, 11}, Range[12, 20]],
PlotJoined -> True]
or
ListPlot[{#, #^2} & /@ Union[Range[-1, 1], {2, 5, 8, 11}, Range[12,
20]], PlotJoined -> True]
Hope this helps
Pratik
- References:
- Plot a function on Time Scales
- From: "Unal Ufuktepe" <unalufuktepe@iyte.edu.tr>
- Plot a function on Time Scales