# Question:Plotting point data

## Question:Plotting point data

Maple
I am trying to display some points on the same graph as a function. I first create 2 variables, P1:=plot(func(x),x=6..8):P2:=plots[pointplot](Data) where Data is a 10 x 2 Matrix. None of the x-values in DATA is less than 6 Problem is, when I execute plots[display]({P1,P2}) the plot produced ignores the range command in P1. It starts at x=0. Placing the range command directly in plots[display]({P1,P2}) generates an error, as does placing the range command in P2:=plots[pointplot](Data) Evidently plots[pointplot] does not accept a range command, and insists on starting at x=0. Is there any way around this? One possible solution is to take the info from the Matrix DATA and put it in a list that looks like L:= [ [Data[1,1],Data[1,2]],[Data[2,1],Data[2,2]] … [Data[10,1],Data[10,2] ] L can then be plotted using P2:=plot(L,x=6..8,style = point) My questions are: 1) Is there any way around MAPLE’s apparent insistence on starting at x=0 when plotting from a Matrix? 2) What’s the most compact command for generating the list L from the Matrix Data, if Data has, let’s say, 100 rows?
﻿