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
0answers
48 views

Plot `k/2Pi` instead `k`

I have a function ω[k]: ...
0
votes
0answers
28 views

Why does noting show up in Plot? [on hold]

I am trying to plot the following code in Mathematica, but nothing shows up. Any tips as to how I can resolve this issue? ...
0
votes
1answer
71 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
56 views

Difficulty in finding the peak in the data

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
53 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
87 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
33 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
35 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} ... ...
1
vote
4answers
127 views

How to generate repetitive graphs?

I need to create several graph for different values of a parameter $h$. The code is the following ...
1
vote
2answers
53 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 ...
5
votes
2answers
235 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
53 views

Solution… 2nd Transcendental Equation with Graphical method [on hold]

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
29 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, ...
-3
votes
0answers
80 views

How to recreate this animation? [on hold]

I would like to recreate this animation of a black hole made by wavegrover, also seen in this Quanta article: I’m not sure what 3D function this is, but being able to plot a static version of it ...
1
vote
3answers
105 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
58 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 ...
1
vote
1answer
99 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
47 views

How to increase dots size and join dots

I tried to build graphic using ListPlot Code: ...
0
votes
2answers
135 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
126 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 ...
0
votes
0answers
42 views

ColorData does not read functions?

I'm new to the community and to Mathematica, but I looked around a bit and I couldn't find a solution to my problem, so I thought I'd ask. Inspired by Density plot on the surface of sphere, I wanted ...
-3
votes
0answers
40 views

Can Mathematica plot algebraic expression with character constant? [on hold]

Can Mathematica plot algebraic expression with character constant?If can’t how can I plot like this? Thinks a lot!!
2
votes
3answers
85 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
40 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
61 views

What is wrong with my code? [closed]

What is wrong with my code below ...
0
votes
2answers
37 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
49 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
29 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
34 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
35 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
72 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
19 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
28 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
49 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
57 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 ...
0
votes
0answers
31 views

Plotting economics and indifference curve [closed]

how can i make the same plot i Mathematica? the function is 5000= 20L+10K
1
vote
2answers
37 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
49 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
1answer
42 views

Plotting Ln[1+3x] and 4ln+3ln[-1+x] [closed]

how do I plot Ln[1+3x] and 4ln+3ln[-1+x]on the same graph? The question is Section 11.11 – (Not in the book) Find the Taylor Polynomial 𝑇10"(𝑥) for the function 𝑓(𝑥) centered at the number 𝑎. ...
0
votes
0answers
24 views

Color points in ListPlot

Up to this point, my function looked like: ...
0
votes
0answers
22 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
25 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
63 views

Plotting solution to Differential Equation with separable variables

Got this differential equation $$y'=\frac{-x^2(y+1)}{y^2(x-1)}$$ If I try directly to DSolve it ...
0
votes
0answers
37 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
82 views
0
votes
1answer
70 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
1answer
45 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
16 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
37 views

Plotting absorbing state probabilities from state 1

I have the following transition matrix: ...
0
votes
0answers
35 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 ...