Items tagged with plot plot Tagged Items Feed

Dear all,

 

I am trying to plot in the same graph two sets of data points given by vectors. Please see the example below. Any help will be highly appreciated. Thanks!

 

question.mw

Hello,

I've got the following problem: Sometimes when I let Maple compute an integral it gives a result which is much smaller than it should be. This happens even for rather simple integrals such as the product of a Gauss function and a 1/x-type function. Here's a minimal working example:

restart;
with(plots):
f := x -> exp(-x^2):
g := (x,a) -> 1/(1+abs(x-a)):
plot([f(x),g(x,3)],x=-3..10):
for a from 1 to 100 do
A[a] := int(f(x)*g(x,a),x=-infinity..a-1)
end do:
B:=[seq(A[a],a=1..100)]:
X:=[seq(a,a=1..100)]:
plot(X,B);

The plot it returns looks like this:

which is clearly wrong between around a=35 and a=60...

Does anyone have an idea how this can be repaired?

Combining graphs...

September 22 2016 montse 5

Hi

Can anyone tell me how to combine several graphs into one? Fo instance I have one graph with x going from 0-1,another with x going from 1-20 and yet another with x going from 20-21. I can plot them individually but how do I put all three together?

I'm sorry I'm not doing a very good job explaining, but I hope it is understandable.

 

 

 

Pick any point P and let Q = (1, 1, 1). [Your choice for P can be anything other than the origin or

Find an equation for the line l1 that passes through P and the origin. Plot the line segment formed by P and the origin in Maple 

How would I plot this?

hi

how i can plot 4 curve in one graph in maple??

this data is given in excel format as below

thanks

16.3.xlsx

Hi,

This is regarding numerical solution of a function and plot. I have a function in the form of f1(omega,arctan(f2(omega))), and i need to plot it with omega (as the expression is too long i cant insert it here). Now, if i am changing the range of omega in plot command then I am getting different plots for the small values of omega. Let's say if i change the range from 1..10 to 1..50 and look at the plot in the range of 1..3 then the plots looks different. Apart from this if i change the value of Digits  from 10 to 30 or 40 then every time i am getting an entire different  plot. As the expression if too long i cant convert it to Matlab expression and plot there. How to fix these issues. Please help me regarding this.

Regarding

Sunit

 

1.I want to plot (x-x0)^2 from x=0..10 with a value for x0 in the plot function not in the procedure. The procedure should 

test x against x0 and if x<x0 then y=0 else y=(x-x0)^2

2.Is it possible to use explore and use x0 as a slider?

 

Regards

Staffan

 

Hello everybody!
I have a PDE with initial and boundary conditions. I want to plot its solution by taking "t" as x axis. I have seen the documentation. It only has the space variable on x axis. Please show me a way to achieve what I intend.

here is the file pdsolve.mw

The value of x can be chosen as 0.16 or 0.21

i think i might have asked this before for another thing if so im sorry but anyway i think its @ or something, i would like to plot the final output here indexed against th

NrANGE := (rand(0 .. 20))()

Š := {}

Y := proc (X) local N, S1, Š; if X <> `union`(X, S1[N]) then N := (rand(1 .. NrANGE))(); S1[N] := {K[1](N+1), K[1](N)}; Š := `union`(X, S1[N]) else  end if end proc

NULL

NrANGE := (rand(0 .. 20))(); nops(Y(Y(Y(Y({}))))); nops(Y(Y(Y({})))); nops(Y(Y({}))); nops(Y({}))

``

 

Download mapleprimes90916.mw

e number of iterations of Y conducted besides the original performed on the empty set

I'm displaying a series of point plots as an animation, and would like to update a displayed parameter as well.  I have a nested list L[t] where there's a set of points for each t, and for each t there's also a numerical value M that I'd like to display.  (In my real problem, L[t] is the number of particles in each of several states, and M is the rms deviation from am algebraic probability distribution.)  

The closest I've gotten (for a simple L and M) is the following, but it displays all of the M values in the legend at once:

with(plots); with(Statistics);

L := [[1, 2, 3, 4, 5, 6], [2, 4, 6, 8, 10, 12]];

M := [1, 2];

display([seq(PointPlot(L[t], legend = M[t]), t = 1 .. 2)], insequence = true)

 

I don't need this to be in the legend.  Is there a way to display only the current value of M for each t?  Thanks very much.

Is there a way to display the list of coordinates for implicitplot and plot, rather than the displaying image itself?

In Maple Classic this happens automatically when the assignment operator is used  ( := ) together with a semi-colon, eg.   A:=implicitplot(F, x=-1..1, y=-1..1);

But is there a way to do this in the non-classic version?  Thanks very much.

 

- Graham

Hi, I am trying to plot a parabola in spherical coordinates using the command spacecurve, using 

 

>with(plots);

>spacecurve([cot(phi)/sin(phi), 1.61, phi], phi = -3.14 .. 3.14, numpoints = 3000, axes = normal, coords = spherical, color = red, linestyle = dash, axes = normal)

 

(I know it is easier in Cartesian coords, but I am doing this as a first version of a more complicated curve, given by the sol. of a system of differential equations). 

Maple plots the parabola correctly but it joins the initial and the final points of the plot with a straight line, yielding something that looks like a U with a bar on top (I cannot upload the image). Is there any way to get rid of the line?

 

  In attached file I need to plot (R/R0 )^3  versus t for diffrent of (s) for example  s=0.01,0.005,0.003   plot.mwplot.mw

1 2 3 4 5 6 7 Last Page 1 of 181