Stack Exchange Network

Stack Exchange network consists of 174 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
1answer
35 views

Inaccuracy in Plot3D

This problem might be well-known - in this case, I would appreciate a link, because I could not find anything. My problem: A certain function (super long and nasty expression) needs to be plotted. ...
1
vote
0answers
54 views

How to study the behavior of this series in Mathematica? [closed]

I need to compute the Von-Neumman entropy of a density matrix in Quantum Mechanics. The density matrix is $$\rho=\sum_{n=0}^\infty \dfrac{\tanh^{2n-2}r}{2\cosh^2r}\left[\tanh^2r + \dfrac{n}{\cosh^2r}\...
1
vote
3answers
81 views

Is it possible to add two plots together?

I have two functions (of energy) that are imaginary below different energies. These expressions are quite long and unfortunately, when plotting Re@func, I am left with some trash at low energies. What ...
0
votes
1answer
79 views

Finding Area Under a Curve [closed]

I'm attempting to determine the area under a curve $ y = \sin x $ with $ 0 < x < \pi $ and I'm struggling to do so. I managed to graph the function and fill the plot but I cannot figure out how ...
0
votes
0answers
33 views

ParametricNDSolve plot following the tutorial not working (with my system)

I'm trying to simulate the following system: $X'_1=a\frac{X_1^{0.4}}{X_2^{0.15}}-X_1^{0.2},$ $X_2'=X_1-X_2^{0.2}$ $X'_1(0)=X'_2(0)=1$ I simulate the system with the following code: ...
2
votes
1answer
183 views

Circular table (spreadsheet like) - is it possible?

In the past, I've made a circular spreadsheet in Javascript, which can be seen in here : http://secteur-3.net/ARN-Public/ARN.html (left matrix). Each cell is bound to some data and have minimum ...
1
vote
1answer
44 views

Why ListDensityPlot does not work?

I cannot figure how this ListDensityPlot function works. From the site: ListDensityPlot[{{x1,y1,f1},{x2,y2,f2},…}] I write ...
1
vote
1answer
93 views

How to define a function only for integers

I want to create a function which only accepts integers. if a value other than integers are given it should output zero. This is what I've tried so far. I'm trying to do some discrete time signal ...
1
vote
1answer
69 views

Difficulty in finding the peak in the data [closed]

I have a set of $ x $ and $ y $ data. The $ y $ data is represented in a logarithm scale and the $ x $ data is in linear scale. I have used FindPeaks function to ...
2
votes
2answers
79 views

Regarding SwatchLegend and ColorFunction

Can I use ColorFunction in place of color in SwatchLegend or is there any way to include ...
2
votes
1answer
96 views

Finding all roots to equation [duplicate]

I'm currently doing some Mathematica exercises, and I'm stuck on this one task where you're supposed to plot the functions h(t)= |3-t^2|+|t-1|-t^2 , g(t)=3sin(t) in the same grap, and then find all ...
2
votes
1answer
38 views

Plot and Legend color mismatch due to opacity

I have the following code: ListContourPlot[data,Mesh->None,ContourStyle->None, PlotLegends->Automatic, BaseStyle->Directive[Opacity[0.3]]] Due to ...
0
votes
1answer
41 views

Graphing from a file

I have a lot experience with traditional programming languages, but almost none with mathematica. I have data that I've transformed and saved to a file in the format {x,y,time} {x,y,time} ... ...
2
votes
4answers
146 views

How to generate repetitive graphs?

I need to create several graph for different values of a parameter $h$. The code is the following ...
2
votes
2answers
61 views

How to output the level of the contour plot based on the desired area enclosed in the contour level?

I am a beginner using Mathematica. I am doing a physics experiment that involves this 3D surface; the function $ f(x, y) $. I need a program that can give me the contour level in the $ z $-axis which ...
8
votes
2answers
317 views

Chemical data of Lactic acid

I'm using the next Mathematica command in order to plot molecules: ChemicalData["name", "MoleculePlot"] But I'm not sure if the Mathematica database of molecules ...
0
votes
3answers
67 views

Solution… 2nd Transcendental Equation with Graphical method [closed]

If $ 2x^3 + \ln x = 5 $, then what is $ x $? For beginning we started to find a solution for equation $$ \begin{align}\label{eq:eq} \ln x + cx = b \tag{1} \end{align} $$ We know from W function ...
0
votes
2answers
41 views

How to plot 3D discontinuous iterative plot?

I am having troubles with plotting this set of data triples={{0, 1, 1}, {9/50, 4/5, 1}}, {{9/50, 4/5, 1}, {3/8, 4/5, 1}}, {{3/8, 58333/100000, 1}, {3/4, 16667/100000, 1}}, {{3/4, 0, 1}, {1, 0, ...
1
vote
2answers
123 views

plotting tilted sine wave

I am trying to plot a titled(7% to right side) sine wave type line whose length is 400 units and height of the wave is 90 units. I want the equation to be in the cartesian coordinates. kindly help ...
0
votes
2answers
63 views

how to plot data which contains imaginary number

I have a data which contains real values in x and imaginary values in y, I wanted to plot this set of data but I could not able to plot. How to carry out this? I am getting some wired plot, with which ...
4
votes
1answer
148 views

Solving the eigenvalue problem for a double well potential using a 1D particle in a box as a basis set

My first question is how would I go about getting the 1D particle in a box eigenfunctions using matrix techniques and how would I use the particle in a box eigenfunctions as a basis set for the ...
0
votes
1answer
51 views

How to increase dots size and join dots

I tried to build graphic using ListPlot Code: ...
0
votes
2answers
163 views

Plot on the surface of a Torus

I'm trying to plot a system with a variable (or field) $\theta(x,t)\in[-\pi,\pi]$ which is an angle at every position $x$. The positional argument $x$ itself is a periodic coordinate $x\in[-\pi,\pi]$. ...
2
votes
0answers
130 views

How can I get Mathematica 11 logo? [duplicate]

I want to get the picture(it is better to get the equations) of the mathematica 11 logo, how can I achieve that? I have try alpha to solve this, sadly, it only give me mathematica 1 logo. I want to ...
2
votes
3answers
94 views

How to plot the phase portrait of this non-linear system of ODEs

I am trying to plot the phase portrait of the following differential equation $$ \begin{cases} \dot{R}= aR+bJ\vert1-J\vert+f(t)\\ \dot{J}= cR\vert1-R\vert+dJ, \end{cases} \quad f(t)=5\sin(\pi t). $$ ...
0
votes
0answers
41 views

How to get rid of the discontinuities in the plots and animation?

Trying to plot the angles for a double pendulum against each other such that they stay within the bounds of -Pi to Pi. The NDSolve solves the equations such that if a pendulum does a full loop the ...
-2
votes
1answer
66 views

What is wrong with my code? [closed]

What is wrong with my code below ...
0
votes
2answers
45 views

how to get coordinates from a plot of piecewise function?

I am having troubles with finding points from a plot. I have a piecewise linear function given by following inequalities. These inequalities I got from previous calculations where I split two ...
0
votes
1answer
50 views

How to introduce a NSolve into a ContourPlot?

I have an equation that I want to solve, and I'm using DensityPlot, as I was told here NSolve two unknowns $ r, x $ in order to have a curve $ r(x) $ . Meaning I have a relation $f(r,x)=0$, and with ...
1
vote
0answers
31 views

ProteinData Error: “Cannot import data as PDS format”

I'm trying to use the mathematica examples for plotting Proteins: But when I type the command I get the next error: How can I import data as PDB format?
1
vote
1answer
37 views

Plotting a complicated function defined in terms of other defined quantities

Perhaps this question will be too broad or poorly asked since it is about some very simple problems and I apologize if that is the case. So, I'm just trying to plot the curve of a complicated and ...
4
votes
1answer
38 views

Syntax issue using Show

In the Mathematica Book 5 there is an example under Graphics and Sound. First they generate 3 plots and then display them like so: ...
0
votes
2answers
79 views

Roots of a polynomial

In Mathematica I have represented the following polynomial $a x^4 + b x^2 + c x+2$ using the Plot command and, through the ...
0
votes
0answers
21 views

How to plot a complicated implicit function?

For example, I have an expression kg=const. p = p(D) and D is an implicit function of omega alpha1, mu = const Is it possible to plot expression beta(omega) using ContourPlot?
1
vote
1answer
30 views

Suppress white area of two overlapping solutions in ContourPlot3D

I want to plot the following expression: $$dx = x\left(-0.5+0.59y+1.3(x+y)-(x+y)^2-0.2z\right)=0$$ I tried this using the following code: ...
0
votes
1answer
66 views

Plotting Data Iteratively

I have a function of x1 that I can plot in the form y=f(x1). However, I have a relation y=f(x1)=f(x2), where I don't know the form of f(x2), but I can solve for x2 given f(x1) and I want to plot both ...
1
vote
1answer
58 views

Non Trivial Conserved Quantity Fails To Be Conserved After Solving System of ODE's Via NDSolve

I'm trying to solve the following Darboux system of equations numerically. As a result I have the following implementation of NDSolve ...
1
vote
2answers
40 views

Storing values of NDSolve or NIntegrate

I am looking in plotting some solutions of NDSolve or NIntegrate but they take too much time to run, thus it is not handy if I ...
0
votes
0answers
52 views

How to plot along a path in 3D?

After solving and equation like f(s) = 0 and I got 8 values of s, each depend on 3 parameters x,y,z (3 coordinates in space). Now how could I plot the values of s respect to a path in 3D space? ...
0
votes
0answers
44 views

How do I color points in a list plot?

Up to this point, my function looked like: ...
0
votes
0answers
26 views

DensityPlot, ScalingFunctions, and small values

Edit: I figured out I can use Rescale to retrieve the plot as well as get the correct plot legend. I still can't figure out how to rescale the axes from 10^-9 to 1 ...
0
votes
1answer
41 views

Why does trying to plot the solution to this system of ODEs this way lead to errors?

I would like to plot the curve $\alpha(s) = (l(s), h(s))$, where $l$ and $h$ are the solutions to the system $l'^2 + h'^2 = 1$ and $l'h''-l''h'=h'\tan(l)$. Here's what I tried: ...
2
votes
2answers
68 views

Plotting solution to Differential Equation with separable variables [closed]

Got this differential equation $$y'=\frac{-x^2(y+1)}{y^2(x-1)}$$ If I try directly to DSolve it ...
0
votes
0answers
39 views

Why does this ContourPlot not work?

I am trying to plot this: a = 1; ContourPlot[ Nex == Ntot*(1 + ((Ntot - Nex)*a)^(2/5)), {Nex, 0, 10}, {Ntot, 0, 10}, PlotRange -> All] But it would not ...
2
votes
1answer
102 views
0
votes
1answer
75 views

Piecewise function not plotting

I have piecewise function A which is defined as shown below. When I plot piecewise in Mathematica I could not able to see any points after x=3.5, but If I evaluate the A I am getting value. I am bit ...
0
votes
3answers
71 views

Can `PlotRange` of x-axis automattically determine y range?

PlotRange can specify the plotting range in each direction. Let's say you have a large set of data and you may want to plot parts of it by specifying the ...
0
votes
0answers
20 views

Plot with multiple Y-axes - Version 7

I would like to create plot with multiple Y-axes using version 7 which looks this: Plot with multiple Y-axes - Version 8 or later
3
votes
1answer
40 views

Plotting absorbing state probabilities from state 1

I have the following transition matrix: ...
0
votes
0answers
36 views

How make a table from loop data?

I want to plot sigma according to lambda.Sigma has to generate from loop code. but I can't extract these data. please help me with this problem. I need to calculate the sigma value for a given range ...