New answers tagged

0 votes

Plotting the solution of the following equation with integral boundary conditions

sol1 = DSolveValue[Join[{E1}, ic], u, {x, 0, \[Infinity]}, {t, 0, \[Infinity]}] returns ...
  • 501
0 votes

Plotting Two ListDensityPlot3D Plots Together

Try using an "OpacityFunction" like: ...
  • 29.6k
0 votes

Plotting Two ListDensityPlot3D Plots Together

If you plot a ConvexHullMesh for the first three points of coordPhi then the result is: ...
  • 19.1k
4 votes

Plot labels position changed in GraphicsGrid[]

Grid work for this cases. Grid[a] or Alignment -> Top. ...
  • 41.6k
0 votes

Plotting level sets of Hamiltonians on the product of 2 spheres

The code here only demonstrate the principle which the questionner want to plot. Since we still not able to found the faster way to draw the two regions in the two unit spheres respectively, so it is ...
  • 41.6k
3 votes

How to make a 3d plot out of a 2d figure?

Is this what you're after? ...
  • 27.1k
1 vote

How do I use the FindFit function to predict the function value for year 2050?

...
  • 126k
2 votes

Filippov Systems

This should be more straightforward with my EcoEvo package. First, install package (once ever): ...
  • 18.3k
1 vote

Filling a region between two straight lines

...
  • 19.1k
0 votes

How do I use the FindFit function to predict the function value for year 2050?

Start with NonlinearModelFit[data, a Exp[b (x - 1990)], {a, b }, x]
5 votes
Accepted

Filling a region between two straight lines

Use BoundaryStyle -> None as shown in the documentation of RegionPlot: ...
  • 38.1k
3 votes

Filling a region between two straight lines

is this what you mean? ...
  • 116k
2 votes

ContourPlot3D not producing any plots but no errors

...
  • 41.6k
2 votes

ContourPlot3D not producing any plots but no errors

I think it is simply that, it could not find anywhere where that 1 == t0/Sqrt[ 1 - ((2*G*M)/(r*(c)^2))] is satisfied. You can see this using this trick <...
  • 116k
5 votes

Plot3D Question Involving Double Integral Taking a Long Time to Execute

...
  • 126k
4 votes
Accepted

Struggling with RegionFunction

Use Evaluate. ...
  • 41.6k
6 votes
Accepted

Force placed Legend into one column

You are almost there. Use a LineLegend instead. ...
  • 19.1k
2 votes

Manipulate a list for listplot

One way of generating the list: dataA = MapAt[#[[2]] &, fp[[1]], {All, 2}] Or do it for fp as a whole: ...
  • 8,629
0 votes

Interpolation of a function from numerical data and getting plots

In the continuous case (probably using Interpolation), you could use ParametricPlot: ...
  • 8,629
2 votes

Manipulate a list for listplot

Do these commands produce what you want? fp2 = Map[Flatten /@ # &, fp] ListPlot[fp2[[1, All, {1, 3}]]] ListPlot[fp2[[2, All, {1, 3}]]]
1 vote

Interpolation of a function from numerical data and getting plots

We Interpolation the two data dataF and dataG, then get the parametric form of the curve <...
  • 41.6k
6 votes
Accepted

How to separate style elements in an Epilog?

You can use braces to introduce scopes for the styles, so something like the following should work: ...
  • 27.1k
2 votes

MeshFunctions in ParametricPlot with BSplineFunction for parameter extraction

We may create a table of {BSpline,u} and then fit a function to it. This function will then return "u" from a data pair {x,y}: With the BSpline: ...
  • 29.6k
0 votes
Accepted

How do I put the PlotLabel inside the graph?

In addition to the Epilog based solution suggested by @BobHanlon in the comments, ResourceFunction["PlotGrid"] also ...
  • 27.1k
3 votes
Accepted

MeshFunctions in ParametricPlot with BSplineFunction for parameter extraction

The effect maybe like this. ...
  • 41.6k
1 vote

Interpolation of a function from numerical data and getting plots

Maybe you mean something like this... f[x_] := Sin[x]; g[x_] := Log[x]; Plot[{f[x], g[x]}, {x, .5, 3}, Filling -> {1 -> {2}}] EDIT To answer the question ...
  • 8,629
0 votes

Getting 3 points although the code describes 1 point in the plane

You can probably use RegionNearest. For example, ...
  • 8,629
4 votes

Stochastic process: Understanding Ornstein Uhlenbeck Process

You have different x axes. For the correlation function the x axis is 0,1,2,... And for the Table you have 0,0.1,0.2,0.3,... (Note: f is not defined, I set it to f=0.1) If we change the x axis of the ...
  • 29.6k
4 votes
Accepted

How can I place DistributionChart at desired x values?

SeedRandom[1]; data = Table[ RandomVariate[NormalDistribution[RandomInteger[5], 1], 100], {3}]; A bit hacky, but these polygons are generated and translated to ...
  • 19.1k
4 votes

Can this type of function be plotted faster using NDSolve instead of NIntegrate?

Note: This is an extended comment. This integral can be expressed in terms of the MeijerG special function: ...
  • 7,373
3 votes
Accepted

Ternary: TernaryListPlot and DiscretizeRegion - Formatting and Error Messages

When a=0.25,b=0.25,c=0.6, some region is EmptyRegion[3], so DiscretizeRegion gave warning ...
  • 41.6k
2 votes

Transforming the axes of a Contour Plot

We use ParametricPlot to draw the region {x[μ, ν], y[μ, ν]} where {ν, 0, π}, {μ, -2, 2} and ...
  • 41.6k
3 votes

Transforming the axes of a Contour Plot

...
  • 126k
6 votes

Can this type of function be plotted faster using NDSolve instead of NIntegrate?

How can I apply NDSolve to this function? Do you want to apply NDSolve or do you want to plot the integral faster? The plot can ...
2 votes

Transforming the axes of a Contour Plot

Consider: x = Cosh[u] Cos[v]; y = Sinh[u] Sin[v]; and you see that {u,v} and {-u,-v} give the same {x,y} values. Further if v==0, +u and -u result in the same x/y ...
  • 29.6k
4 votes
Accepted

Extract data from a given nested table

As of version 10.0, FirstCase is able to be used. ...
3 votes

Extract data from a given nested table

Try this: ...
0 votes

How to make a plot with x axis using a tabel?

It appears your plot range is incorrect. You have no values in the specified plot y-range of dd. In[49]:= Count[dd, .95 < x_ < 100] Out[49]= 0 Without a ...
2 votes

Explicit length of ticks in a Plot

We may extract the absolute values for ticks using AbsoluteOptions. We may then change these options to our liking and reinsert them: We create an example plot: ...
  • 29.6k
4 votes
Accepted

How to fill a plot region with tilted lines without using HatchFilling?

With HatchFilling[] ...
  • 19.1k
0 votes

How to plot the distance between a point moving on a line and the center of a circle

My goodness... all this code can be eliminated if you recall Pythagoras' Theorem: $d = \sqrt{h^2 + s^2}$ where $h$ is the distance from the circle's center to the nearest point on the line (call it $...
2 votes

How to draw intelligently a pair of crossing edges inside the exterior face of a convex quadrilateral?

This seems to work for the given three graphs. Change integer 1 in the first line of code to 1, ...
  • 3,840
4 votes

How to plot the distance between a point moving on a line and the center of a circle

...
  • 19.1k
2 votes
Accepted

How to draw intelligently a pair of crossing edges inside the exterior face of a convex quadrilateral?

We may take vertices 1,2,3 and 2,3,4 as control points of a Bezier curve. Toward this aim, we extend the middle point away from the opposite point by "lam" to ensure that the curve lies in ...
  • 29.6k
6 votes

How to plot the distance between a point moving on a line and the center of a circle

...
  • 63.1k
3 votes

How to plot the distance between a point moving on a line and the center of a circle

EuclideanDistance gives the distance between two points. One way to specify a point on your line is (1-t){a1,b1} + t {a2,b2} which moves between the two endpoints ...
  • 1,320
0 votes

Show displaying graphic behind axes in 3D plot

Thanks to Daniel Huber for the inspiration. I ended up making separate lines on either side of my Sun object as follows ...
  • 107
0 votes

How to randomly generate points in a line?

Or Graphics[ Table[Point[{tmp = RandomVariate[NormalDistribution[0, 1]], tmp}], {100}]]
  • 1,680
3 votes

Plot eigenvalues of fractional Laplacian in 1D

We can compute eigenvalues with using Haar wavelets collocation method as follows (see also our code here) ...
  • 35.3k
1 vote

How to draw a smooth scatter plot where the group of points in the graph are replaced by a smooth coloured region and an exponential scale being used?

Use ConvexHullMesh[Tab28] to construct the region, but not so smooth. ...
  • 41.6k

Top 50 recent answers are included