Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [plotting]

Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.

0
votes
0answers
36 views

Free Energy Surface Plotting

Please feel free to move this to a different board if it doesn't fit the best here. I am working on trying to plot the free energy surface of ferroelectric materials, similar to the image below. Each ...
1
vote
2answers
52 views

Incorrect results from simple `Plot`?

I came across this bizarre behaviour whilst noodling around - a change in 'Plot' results... ...
0
votes
1answer
34 views

Plotting a contour on a surface

I can plot the graph of a 3D function and the solution of an equation like in the following example: ...
0
votes
0answers
45 views

How to plot this compound function?

I have a function w1(x1), w2(x2) and w3(x3), u1(x4) and u2(x5). Using these functions, I like to plot the deformed configuration of the structure, below is the undeformed configuration of the ...
0
votes
1answer
29 views

Automatic Manipulation of experimental data and plotting

I have experimental data which looks like this In the high positive and negative x-axis regions, my data is always linear, I want to extract the slope of data in these regions, take average and ...
1
vote
1answer
50 views

How to make a diagram and get the exact intersection points at the same time?

Here is the code. A part of the diagram is not a function. ...
2
votes
1answer
26 views

How can I fix an error when I try to draw a region function in a contour plot?

I am trying to draw a region function in a contour plot. My function has five variables and I want to reduce the number of variables by assuming some appropriate values for three of the variables. ...
4
votes
1answer
75 views

No shading in ContourPlot3D

Say you want to plot a horizontal plane using ContourPlot3D[x == 0, {x, 0, 100}, {y, 0, 100}, {z, 0, 100}] How to turn off the shading? I would like to have only ...
3
votes
1answer
40 views

How can I make a scatter plot from a matrix with many y-axis values for each x-axis value?

Consider matrix A = {{0, 2.54343, 3.566, 4.2323, 2.3434}, {0.1, 6.432, 4.6465, 5.656, 1.34}, {0.2, 0.3423, 1.6342, 3.323, 2.04}}; The x-axis values ...
1
vote
1answer
25 views

ParametricRegion not recognising list of variables

I am trying to use ParametricRegion to plot some parametric equations that can be in various dimensions. The full code is as follows: ...
1
vote
1answer
22 views

Editing the graph to become with animation

In the following code: p1=ParametricPlot3D[{ (3 + Cos[v]) Sin[u], (3 + Cos[v]) Cos[u], Sin[v]}, {u, 0, 2 Pi}, {v, 0, 2 Pi}] p2=ParametricPlot3D[{Cos[Sqrt[2] t](3 + Cos[t]), Sin[Sqrt[2] t] (...
5
votes
2answers
85 views

Animate a parametric curve

How can I animate the following curve? ParametricPlot3D[ {Cos[Sqrt[2] t](3 + Cos[t]), Sin[Sqrt[2] t] (3 + Cos[t]), Sin[t]}, {t, 0, 50} ] Can I also remove ...
2
votes
1answer
35 views

Replacing a line by a cylinder

How can I replace the line in the following graph by a tiny cylinder? parametricPlot3D[ {CosSqrt[2]t, Sin[Sqrt[2]t](3+ Cos[t]), Sin[t]}, {t, 0, 100}]
0
votes
1answer
59 views

How to plot that function?

I have a function P which is dependent on x, I tried plotting the function but I am getting nothing in the plot. I am also interested in finding the roots of the equation. ...
0
votes
1answer
31 views

Manipulation of a plot computed in several steps

the following test works for fixed parameter si: ...
0
votes
0answers
55 views

Animated wrapping line and wrapping cylinder

I am trying to draw the following situation using any graphic program but I couldn't since I don't know how to make the animation. So your help is greatly appreciated. So my picture consists of two ...
1
vote
1answer
37 views

Three questions to customizing `Ticks` in `Plot`, `LogPlot` and `LogLogPlot`

When making a plot, sometimes I would like to alter the ticks and labeling of the ticks, in particular when doing a LogPlot or ...
1
vote
1answer
22 views

Behavior of PlotLegends

I want to have a plot of $x^{\alpha}$, where $\alpha$ is an input, and a plot legend which displays something like $\alpha = \# \text{ rad}$ on the following plot, where # is determined by the input. ...
2
votes
1answer
34 views

Missing ticks and numbers on a plot when using JLink + Mathematica 11.3

I am facing a pretty random problem using JLink (Java) connected to a Mathematica 11.3 kernel and front-end. Basically I want to get an image using the JLink Java method ...
1
vote
1answer
66 views

Sharp jagged lines in Plot3D

I have the following function of five parameters of which I would like to construct a 3D density plot using Plot3D ...
1
vote
1answer
43 views

Inserting several lines in determined places of a 3D plot

I have a special list instead of which I create another one by a Table ...
3
votes
1answer
38 views

How do I store the results of NDsolve, in a table for plotting later?

Basically, I wanted to vary a parameter in my differential equations, while using NDsolve (ParametricNDsolve wasn't working for some reason, but that's for another question). I'm stuck looking for the ...
0
votes
1answer
61 views

Problems with manipulation

I am plotting geodesics on an ellipsoid. My problem is that I cannot do the manipulation, from a, b, c. From the starting point and the initial vector, the manipulation works well, but from the ...
1
vote
1answer
60 views

ListPlot3D of the results of FindRoot

I have a system of 2 simultaneous equations where i want to calculate the values of Tc and Tc which ranging with the values of two variables which are wfc and V. I tried to evaluate it by using ...
1
vote
2answers
28 views

Different styles for different points in ComplexListPlot?

I'd like to use ComplexListPlot to show a point and its image under a complex function, with the point and image having different styles, say different colors. Use,...
0
votes
1answer
25 views

ListPlot3D for optimization with varying parameter values

This is a followup question from Alex Trounev's answer to my question in the following post: 3D-Plot optimization results for varying parameter values Consider my objective function, objF: ...
0
votes
1answer
27 views

How to plot weighted sum of functions?

Consider a series of functions like Table[Cos[k t], {k, 1, 2, 1/10}] which are summed up together with some weights ...
1
vote
1answer
47 views

How to fit a list of points to a certain form given error bands?

I am trying to fit a list of points to the form F[0]/(1 - a*q^2 + b*q^4), where F[0] is the value at zero of a function, which ...
4
votes
1answer
41 views

Creating and Plotting a Confusion Matrix from a Plain Matrix

Using ClassifierMeasurementsObject you can plot nice ConfusionMatrix: But how to mimic this matrix plot from a plain Matrix? In other terms, from ...
0
votes
1answer
72 views

How can I plot a sphere like the picture in Mathematica?

The coordinate of two points are (0,0,1/3) and (0,0,-1/3) respectively.How can I get this picture in Mathematica?
3
votes
2answers
98 views

Plot vectors as sums of vectors along the axes

in a phase diagram appear vectors that go in different directions. When graphing with the "streamplot" or "vectorplot" command, only the arrows appear showing how they move away from or closer to ...
1
vote
0answers
17 views

Extra interpolation in ListPointPlot3D

I'm trying to plot a 3D surface using ListPointPlot3D and it looks almost right, but for some reason it's trying to connect points that should not connect. I think it's confused because the surface is ...
2
votes
2answers
50 views

Putting the text after the line legend

I want to put the line legend after the text, here is my code; ...
0
votes
0answers
22 views

Gap between line and marker

i am doing very simple thing when I run this line: ListLogPlot[Table[1/x, {x, 10^Range[-2, 1, .1]}],PlotMarkers -> Automatic, Joined -> True] I get ...
1
vote
1answer
62 views

Quality of parametric 3D plot on 2D plane

I need to plot the solution of an SDE which takes its values on the plane $\{z = 1\} \subseteq \mathbb R^3$. Here is the code of a minimal working example (the solution to the SDE is just the driving ...
2
votes
1answer
389 views

Why does the PoissonDistribution not plot around its mean for moderate large numbers?

I plotted the Poisson Distribution for various mean values (plot label and vertical line). The plots does not peak around the mean as the mean increase. Any advice to get the right plot, or at least ...
0
votes
0answers
28 views

Generate vector field pointing to minimum intensity (black)

I have a black and white image and want to plot a vector field that points to the highest and nearest minimum intensity value (something like the arrows shown in the image). Similar to Gradient filter ...
1
vote
2answers
96 views

Solving BPV of second order nonlinear ODE through NDSolve

I'm trying to solve a 2nd order related ODE system in two region using Piecewise. BC: 1) y'[0]=0 and at y'[1.6]=0 while at 1 <...
0
votes
0answers
50 views

Why does ListSurfacePlot3D yield a different surface fit than using Python code for best-fit quadratic curve (2nd-order)?

Using the same data, I obtain different surface fits on Mathematica (using ListSurfacePlot3D) and Python (using a code for best-fit quadratic curve (2nd-order)). Here's my code on Mathematica: ...
0
votes
0answers
44 views

Plotting correlation between two metrics that contain hundreds of thousands of data points

I wanted some feedback on what is thought of as best practice in terms of showing correlation between two metrics in terms of minutes vs minutes when both metrics contain a large amount of data points ...
0
votes
1answer
24 views

ContourPlot: Setting Global Options for Bar Legend

I'm looking to specify the appearance of contour plots globally in my Mathematica notebook. This is easily done with SetOptions: ...
0
votes
1answer
38 views

How to extract parameters from fitted model for ListSurfacePlot3D?

I would like to obtain the parameters used by Mathematica to create this surface fit of 3d data: ...
1
vote
0answers
26 views

Plotting the function with DiracComb as a component

I'm interested in plotting the absolute value sqaured of the product of the Fourier transforms of a DiracComb and a phase function (exponent with complex argument). ...
2
votes
1answer
35 views

Plotting Complex Numbers as “Arrows” on the Complex Plane

Given the following complex numbers (defined as the values of two functions f and g defined only on the points ...
4
votes
2answers
201 views

Why does plot not show where Piecewise function is not zero?

From my user point view this looks like bug. But I am not an expert. f[x_?NumericQ]:=Piecewise[{{1,x==1},{0,True}}]; Plot[f[x],{x,0,1}] Does not show ...
0
votes
1answer
56 views

Evaluating function before its plotting

Suppose I want to plot a function $f(x,y)$ but first need to calculate its symbolic expression. An easy solution is to copy the output of my calculation by hand and then paste into ...
5
votes
3answers
474 views

Extracting data from Plot

I have a parametric matrix. I can solve the eigenvalue problem as a function of the parameter used in the matrix. I need to extract the solutions as a function of the parameter. Let me give an example:...
0
votes
0answers
33 views

Plot Using User-defined Coordinates

Suppose instead of using Cartesian coordinate $\vec{x}=(1, 0)$ and $\vec{y}=(0, 1)$, I want to define new coordiates $\vec{a} = (1,0)$ and $\vec{b} = (\frac{1}{2},\frac{\sqrt{3}}{2} )$. And when I ...
2
votes
1answer
43 views

How do we color a plot based on a given function?

I'll explain the problem I have with a shorter example, since I'm working with a huge messy function. Suppose we have a real-function $f(t)$, and a curve $C(t) \in \mathbb R^3$. Now, I can use ...
2
votes
1answer
97 views

Problem when solving differential equation [closed]

Can anyone tell me why do I have errors when I try the code below ? ...