# Items tagged with pointpoint Tagged Items Feed

### Setting colours for data points in a random 2D sca...

June 20 2014
1 1

I have a function f(X,Y) and I create a random sequence of input values for X and Y.

I now want to create a 2D scatter plot with X and Y on the axis, on the graph I want each point (X,Y) to be color coded according to the value of f(X,Y).  For example, 0<f<1 Red, 1<f<2 Blue, 2<f<3 Green.

Does anyone know how I could do this?

### Color pointplot data...

May 28 2014
2 7

Hi! I'm trying to make a point plot and they must have different colors, like the CIE diagram. I wish they varied from red to blue in 31 steps, as shown in the picture (they are all black :\). Does anyone have any idea how to do this? The red line is for something else.

This the code for the dots:

### poinplot3d add names of point...

April 10 2014
0 3

Dear all;

Please in this code Maple, I plot using pointplot3d, some points. I would like to add a name of each point.

The name of each point  P:=[x(i),y(j),t(k)] is u[i,j]^k.  Please how can I add the name at each point. here is the maple code.

Thanks.

pointplot3d.mw

### geom3d seq of point in R^3...

April 09 2014
1 7

Dear all,

Using   I want to plot in R^3, the set of point u[i,j]^k . This point has as cordinate  (x[i],y[j],t[k]).

x := i -> (1/5)*i;  #  x[i] the x-coordinate
y := j -> (1/5)*j; # y[j] the y-coordinate
t := k -> (1/5)*k;  #  t[k] the t-coordinate

The name of point is u[i,j]^k

How can I  plot all the point.

with(geom3d):

point(u[i,j]^k, x(i),y(j),t(k));

Thank you.

### How to fit a circle to a set of points?...

March 11 2014
1 4

Hello everyone!

I have a question that I can't seem to find a straight answer to. I need to fit a circle to a collection of points that a circular in nature. I was trying to use the following elliptical least squares fit, but I can't determine what I should be minimizing.

Here's the page:

http://www.maplesoft.com/applications/view.aspx?SID=1395&view=html

For an ellipse, I used the general conic:

F:=a*x^2+b*x*y+c*y^2+d*x+e*y+f

I minimize using:

V:=Minimize(E,{4*a*c-b^2=1});

What would I use for a circle? Or is there a better way for a circle?

### How to plot an ellipse?...

March 10 2014
1 2

Hello everyone!

I used Maple 17 to fit an ellipse to a set of points using the following guide:

http://www.maplesoft.com/applications/view.aspx?SID=1395&view=html

My rotated ellipse was calculated to be:

SOL;

0.3939708949 x^2 - 0.005975799853 + 0.6345432059 y^2

But everytime I try to graph it in Maple 17, it only shows the axes and nothing else. Any help would be extremely appreciated.

### plotpoint with if operator possible?...

February 22 2014
1 5

Hello,

I am new to maple and coding so please bare the amateur coding.

I am trying to plot the following function:

When tgk < tb then I want it it to point a cross, where tgk and tb are functions that both have x and y values in them.

This is what I have:

My domain is x=-18..18 and range is y=0..12

I want x and y values to be integer values in degrees. And I want all possible combinations to be plotted (e.g (1,1) (1,2) (1.3) etc.) I do not know how to do any of this, but I need it for something I am modeling, and this software was recommended to me.

I am new to Maple and I have never really learned how to code. Any help would be really appreciated!

Thanks

### how do i plot a smooth curve and extend it...

December 25 2013
1 12

the point given as follows:

x=[3,4,5,6,7]...

y=[7.42494922444550, 3.67768248674133, 2.52235142453921, 1.95610223891559, 1.61770309810016]

I have plotted the point and the output is like this:

plot_output.docx

how to smooth the curve and extend the curve longer

### How do I contact points with a line (point plot)...

November 12 2013
0 2

Hello,

I am solving eq1 and then plot it using odeplot. Then I am extracting data from odeplot using op[1,1]. From that I only care about  one point so I am using pt[1] := dt[1]([1, 2]); then I ploted it using pointplot. I run a do loop and at the end I am ploting all the points.

My code works fine but I am trying to have a line contacting each points. I tried  style=line but it did not work.

How can I have a line contacting each points on my final plot (which is display([pl[1], seq(allpl[k], k = 1 .. 3)])) ?

This is my code:

> restart; with(DEtools); with(plots);
> with(DEtools); with(plots);
> A := 0.2e-1; B := 10^(-5); k := 0;
> eq1 := diff(X(t), t) = -(A+B*X(t))*X(t);

> ic[1] := X(365*k) = 1000;
> s[1] := dsolve({eq1, ic[1]}, X(t), range = 0 .. .365, numeric);
> p[1] := odeplot(s[1], [[t, X(t)]], t = 0 .. .365);
> dt[1] := op([1, 1], p[1]);
> pt[1] := dt[1]([1, 2]);
> pl[1] := pointplot(pt[1], axes = boxed);
> for k to 3 do
tk := 365*k;
A := rhs(s[k](tk)[2]);
ic[k+1] := X(tk) = 500.*A;
s[k+1] := dsolve({eq1, ic[k+1]}, X(t), range = tk .. 2*tk, numeric);
p[k+1] := odeplot(s[k+1], [[t, X(t)]], t = tk .. 2*tk);
dt[k+1] := op([1, 1], p[k+1]);
pt[k+1] := dt[k+1]([1, 2]);
pl[k+1] := pointplot(pt[k+1], axes = boxed);
allpl[k] := display([pl[k+1]])
end do;
> display([pl[1], seq(allpl[k], k = 1 .. 3)]);

Thank you

### What is going wrong with my 3D surface plot (grid)...

November 01 2013
3 8

So I have the energy of an ion at a several points in space, where the x and z coordinates have been varied from 0-1, keeping y constant. The data is in the following file:

y=0.xlsx

When I come to produce a 3D surface plot (grid) of this file using the plots option in the context menu (on right clicking), the following is produced: the x-axis is in red and the y-axis (z-coordinate) is in blue.

Yet if I use the interactive plot builder, to plot the same data, the only option available to me is a 3D point plot, which produces the following:

[If I try to plot a 3D surface plot (points) using the context menu, I get stuck at a evaluating stage...]

as, ideally, I want a surface plot, why, in the surface plot (grid) is MAPLE not recognising the data that corresponds to the higher z-coordinate values and how I can produce a full surface plot...

### error in graph ploting...

March 08 2013
0 1

am using this command in end of my code

`> Points := [seq(seq([x[i], y[j], U[i, j]], i = 0 .. M-1), j = 0 .. N)];> Points1 := subs({BC, XY, op(SOL)}, Points);> pointplot3d(Points1, symbol = solidsphere, labels = [x, y, U], shading = zhue, orientation = [50, 70], axes = boxed);`
`but at last line am getting error`
`Error, (in plots/pointplot) incorrect first argument `

### minimum indices in matrix...

January 14 2013
2 4

hey i´m back again and need help to solve this situation Please:                                          restart;with(ArrayTools):                      ...

### Further Analysis of a Minimization Problem: Distan...

September 14 2012 Maple
5 1

This post is a further exploration of the optimization problem of finding a point on f(x) = sinh(x) - xe-3x closest to the point (1,7).  The problem is part of our Teaching Concepts with Maple web site, a collection of video examples and Maple worksheets designed to illustrate how Maple can be used to generate...

### Ploting 2 vectors...

April 24 2012
1 3

Dear friends

I want to plot a function with these coordinates in x and y directions where:

x=(0,0.0150754,0.0376884,0.0829146,0.0527638,0.120603,0.173367,0.203518,0.241206,0.286432,

0.316583,0.354271,0.39196,0.437186,0.474874,0.550251,0.58794,0.625628,0.678392,0.746231,

0.708543,0.81407,0.949749,1.1005,1.17588,1.33417,1.59045,1.91457,2.25377)

and

y=(1, 1.20603, 1.53769, 1.6, 1.77889, 2.74372, 3.49749, 3.9196, 4.43216,...

### Diagramm: Fit a function one some measured points ...

March 14 2012
0 6

HI,

I measured some points. This points are plotted in a graph. Now I want to make a fit on this points.

I now that the fit-function has to be like this:

F = A + B1 x e^(-t/C1) + B2 x e^(-t/C2)

Problem: how can I create a fitting function like that?

The best thing I found is the "spline"-fit, but it doesn't work properly. It has to be one lonely function, not a summary of several functions (like spline).

 1 2 Page 1 of 2
﻿