# Questions tagged [plotting]

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

16,041 questions
Filter by
Sorted by
Tagged with
32 views

### Plotting Inverse Function - more complicated [duplicate]

I would like to plot the inverse of $f$ using the same method that was suggested to me in my previous question: f[x_] := [(2 μ ArcTanh[(# μ)/Sqrt[-α + #^2 ν]] + μ Log[α + #^2 (μ^2 - ν)] - 2 Sqrt[ν]Log[...
40 views

### "Encounter nonnumerical numbers at t==0" when using NDsolve

The codes goes like this: ...
94 views

### How to plot color range plot with data?

I have some data and want to plot it like in the figure mentioned but unable to do it. The code I tried is written below but it is not giving any plot. If anyone can resolve this is most welcome. <...
35 views

### How can ParametricPlot3D assign different colors to two curves from a function that returns 2 triples? Yes, I have tried "Evaluate"

I have a funciton of the sort myFn[t_]:=Module[{...}, (* some computation *) { {x1,y1,z1}, {x2, y2, z2} }]; When I call it as: ...
154 views

### How to construct the direction field for y' = y- cos\[Pi]/2x [duplicate]

How to construct the direction field for y' = y -cos π/2 x I have tried the Plot function Plot[Derivative[1][y][x] == y[x] - (cos π x)/2, y[x], x]
137 views

### Plotting trajectories over an unit sphere surface

I have a data set which describes the magnetization direction of a material. It is normalized so I would like to plot it as a unit vector which moves over the surface according with the data file. The ...
30 views

### Plot a quadratic bezier triangular patch [duplicate]

I need to construct a triangular patch by using the 6 control points: \begin{array}{ccc} \left(\frac{1}{2},\frac{\sqrt{3}}{4},1\right) & \left(\frac{1}{4},\frac{\sqrt{3}}{4},2\right) & \...
33 views

### Can't plot derivative of Hankel function [duplicate]

I am trying to plot the first derivative of $H^{(1)}_3 (ix)$ with respect to its argument $ix$, where $H^{(1)}_3 (ix)$ is the Hankel function of the first kind with order $3$, $x \in \mathbb{R}$ is a ...
• 315
30 views

### Parametric plot gives good graph for x variable range 0 - 10000 but fails to plot for 1 -- 10000

Please explain why pF4 provides a good graph while pF4a, pF4b give nothing ... All I do is change the range of variable x from 0-10000 to 1-10000 ...
34 views

### Manipulate is not plotting

I want to plot the output function of omega with the rest of the variables as parameters. I tried but its not plotting due t some reason. I tried removing omega m from the function and manipulate, ...
• 226
503 views

### 3D plot of a tensor

How to plot a tensor in three dimensions. For example, let us take a dielectric constant tensor of rank two. ...
• 1,225
109 views

### How to fix a ParametricNDSolveValue? - Encountered non-numerical value for a derivative at t == 0

How to fix a ParametricNDSolveValue? - "ParametricNDSolveValue::ndnum: Encountered non-numerical value for a derivative at t == 0." I have tried ...
41 views

### Implicit region misses definitions

I'm running the code eq1[v_] := eq1[v] = v[[2]] + Tan[\[Pi]/6] v[[1]]; ...
• 294
143 views

### 2d list contour plot

I have plotted a ListContour plot with a large set of data i have and most of the points do not seem to have a distinguised colour, i.e, the color function needs to be re-scaled for my data. How can i ...
39 views

### Using ListDenistyPlot to Plot 3 Dimensional List

I have a question regarding how to use ListDenistyPlot. I am trying to plot a large list of data (150,000 data points) by using ...
92 views

### Get a List plot with help of module

I just want to get a list plot for my model which I wrote with help of the module. ...
• 141
75 views

### I want to solve for X in an equation [closed]

I want to solve for X in the equation ode1 (Meaning to leave it alone, or that all the values are on the other side of the equal sign) but the answer it gives me includes to then graph it X vs L but ...
156 views

### Animate ellipse drawing

$(x/3)^2+(y/5)^2=1$, $x=3\sin[t]$, $y=5 \cos[t]$ I want to draw a phase trajectory with time-lapse using manipulate or animate. Manipulate[ParametricPlot[(x/3)^2 + (p/5)^2 == 1, {x, -3, 3}, {p, -5, 5}]...
• 161
67 views

### Complex mapping of curve

I have a curve in the complex plane (a unit circle), and I want to plot the curve with a complex function applied to it ($f(z)=\sqrt{z}$) How do I go about doing that? I know how this can be done ...
• 101
90 views

### getting the coordinates

With the given function from a previous problem I was solving link, I want to create/collect the coordinate points of Min. value for 21 values of parameter a (from -7 to 7), and find a,b, and c such ...
44 views

### Plotting only a maximum value of domain

I made a table containing many lists of c and Tpop function value. Since the domain is duplicated in the table, I have an image as below when I plot it (y-axis = TPop, x-axis = c). I want to plot only ...
• 1
185 views

### How can I use a logarithmic ScalingFunctions with ListContourPlot and DataRange? (i.e. no x- and y- inputs given)

There appears to be a bug in plotting, using ListContourPlot with ScalingFunctions->{"Log","Log"} and ...
62 views

### Error while plotting a function, having an integration in equation

I am trying to plot a function which also includes a definite integration but I am getting an error (invalid integration variable or limit(s) Here is the code which I am trying ...
• 91
33 views

### Expanding a Function into a Series and Plotting it

I'm trying to expand the function: f(x)=cos(2x)sin(x/2) into two series (let x0=0) of small x, with the first series being 5 terms and the second series being 15 terms. Then plot the function and the ...
67 views

### Plot Table of Equations

I have a code where the first line of the body consists of an algebraic equation involving NIntegrate and the parameter a, for a ...
• 715
33 views

### Problems with coordinates and axes in Plot

I just solve this system: ...
141 views

### How to plot a function using a table particular values

I would like to plot the following function in terms of kR, but using specific different values, I think the best easy way is using a Table. This is a common useful problem to explore numerical the ...
• 545
66 views

### Axis not appearing in the correct location ListPointPlot3D

So when you make a 3D plot in mathematica, Plot3D, ListPlot3D, ListPointPlot3D, etc. the side of the box the axis show up on usually happens automatically. That is, the orient themselves so they're ...
• 171
88 views

• 11
99 views

### Error in Monte Carlo simulation. Now Random walk (dotted curve) doesn't fit to the analytical curve (dashed curve)

I've been trying to code a kinetic monte carlo simulation for a system of consecutive chemical reactions using a fixed (repaired) code that the user flinty gives me in the last questions I post: ...
• 13
69 views

### ParametricNDSolve is not returning results when I use list of functions

I am solving DE w/ parameters. It has many functions so I tried to automate using list but it is not working. Specifically, it does not give specific value even when all parameters are specified and ...
72 views

### Can you make a graph without storing values in a list first?

For example if I had: maxsize = 1000000; lis1 = {}; For[i = 1, i <= maxsize, i++, lis1 = Append[lis1, i]] ListLinePlot[lis1] In the current process a number ...
• 103
58 views

### How to find and split two surfaces made of roots of a determinant?

I have a matrix from which I want to find the roots for different values of [Delta]g0, [Delta]d0 and [Epsilon]. I know there will be a maximum of two roots for a set for a set of parameters and after ...
• 21
77 views

### How to modify the FrameTicks and the figure frame?

Recently, I am confused about the FrameTicks and Frame when I use the Mathematica. Is there someone can spend some time to read this post and help me? Thank you in advance! Here is my code: ...
• 189
61 views

### Frame ticks disappear in LogPlot and LogLogPlot -- Bug in Mathematica 12.1? [duplicate]

I have this code here: Plot[1/x, {x, 1, 10}, Axes -> True, Frame -> True] It generates this output, as intended: So far so good. But now I want to switch to ...
• 143
63 views

### Plot3D lighting issue [duplicate]

Plot3D is giving me very weird lighting. If I run the following line of code from the Plot3D documentation. ...
• 609
277 views

### Part specification is longer than depth of object

everyone! I'm a bit new to Mathematica. Could you help me plot this: ...
• 13
172 views

### Strange behaviour with EllipticTheta functions

For some time I have been using EllipticTheta[3,-,-] functions, and to me it seems that Mathematica is really not handling them in the best way. Below are two of ...
• 231