Questions tagged [plotting]

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

Filter by
Sorted by
Tagged with
3
votes
1answer
44 views

How to plot a Histogram and compare with a particular probability density function PDF

I would like to know how to plot a make a comparison between a histogram and a set of random data, I have the following probability density function (PDF) which is given for this problem. I can ...
0
votes
1answer
22 views

How do I add a plot label in this case?

I am fitting these data: ...
2
votes
3answers
171 views

Graphing a solid between two structures using spherical coordinates

How can I graph the solid that lies above the cone $z=\sqrt{x^2+y^2}$ and below the sphere $x^2+y^2+z^2=z$? I tried ...
1
vote
0answers
56 views

Why do I always have a grey corner on my plot?

I have encountered a very wired plotting issue: I had a script to plot 6 triangles together in one graph as below (first figure). However, as you could see there are always two grey parts in the ...
0
votes
0answers
31 views

MaTeX in the labels

Writing Plot[Sin[2.5 x], {x, 0, 2}, PlotLabel -> Framed["a=1.5" // MaTeX]] I get the expected labeled plot: However, if I just change ...
4
votes
1answer
92 views

Visualizing Riemann surface (two branches) of logarithm

I'm trying to plot two branches of the complex multi-valued function: (In a previous post - linked above-, Mathematica found the branch cut of the following function between -1 and 0) $1-z\ln[(1+z)/z]...
4
votes
2answers
133 views

To plot branch cut of logarithm

I like to see the branch cut of the function: $$1 - z \ln[(1+z)/z].$$ If I plot it in the complex plane: ...
5
votes
2answers
166 views

Show two plots together: a two dimensional curve tangent to the maxima of a three dimensional plot

I have a list containing 3 columns and 6552 rows which can be found here. The plot of data is shown below: We have a cross cut ...
0
votes
1answer
35 views

ListDensityPlot and interpolation order

I am working on a project that takes arrays of data and visualizes them using ListDensityPlot. I noticed, when I imported an array from a CSV file, the last column ...
10
votes
1answer
163 views

What is the best way to use errors in mathematica M12?

Since ErrorListPlot has been superseded by new functionality in ListPlot for Mathematica 12.0, what is the best way to handle ...
8
votes
5answers
681 views

Polar contour plot in Mathematica?

I am following a text on fluid mechanics with MAPLE examples. I want to do the following ContourPlot in Mathematica in Polar coordinates: $$ (r^2-\frac{a^3}{r}) \...
1
vote
0answers
22 views

Plotting an NDEigensystem solution over a helicoid

I am trying to plot the solutions of a particular Hamiltonian eigensystem over a helicoid. In other words, my solutions are a function of the radial variables (r,$\phi$). The Helicoid is given by the ...
2
votes
1answer
59 views

Vector field Stream?

The following graph shows the vector plot. How can I plot the solid lines which represents how the vectors are spatially varying and both on the same graph (vector plot and stream field)? ...
1
vote
1answer
38 views

How can I Plot lines in different colors from a data in Graphics 3D?

I want to plot all these different line in different colors to visualize them better. But all I get is the black color for all of them. ...
2
votes
1answer
55 views

Callout mystery

I have this function: de[a_, x_] = -1 + (E^-x x^a)/((-a + x) Gamma[a, x]); When I do ...
1
vote
1answer
57 views

How to plot special contour lines for a “Ridge System” of complex function?

Mathematica makes it very easy to to plot the contour lines for a function of two real variables using ContourPlot. It also makes it very easy to plot the ...
2
votes
1answer
60 views

Unwanted mesh line in spherical plot

I am trying to create a spherical colour plot on which the mesh will rotate with manipulating the \phi1 variable. I read this solution and gave it a try with the following code: ...
1
vote
1answer
45 views

Plot a sinusoidal function with some parameters

I have the function myfun[a1_, a2_, a3_, b_, θ_, ϕ_] = a1 + 2 a2 + 3 a3 + b Cos[θ] + (a1 Cos[ϕ] + a2 Sin[ϕ]) Sin[θ]; The parameters satisfy $\sqrt{a1^2+a2^2+...
0
votes
1answer
102 views

Plotting Integral of Exponential functions

I am trying to Plot an integral equation that involves exponential function. My code is as follow, ...
5
votes
1answer
116 views

Can you dimension the frame in a plot with absolute unit e.g. cm? [duplicate]

Is it possible to set the height and width of a plot in absolute units for in $\rm{cm}$? Ideally I'd specifically like to control the frame size for when the plot option ...
2
votes
1answer
92 views

Plot feasible region of a high-dimensional LP only along some dimensions

I have a question on the possibility of using Mathematica to plot a convex closed region satisfying a linear system of equalities and inequalities. Let me first present the linear system. Let $x\...
1
vote
2answers
43 views

Restrictions as string to expression in region plots

I'm trying to build a function that generate a string of restrictons to pass on to a region plot with ToExpression, but I think it fails to pass the plot variables. ...
0
votes
0answers
30 views

Mathematica Scalar Field on 3D Space

Fellow Mathematicai, is there any way to create a visual plot of a Scalar Field on 3D space in Mathematica? With Gratitude, - SDH
1
vote
1answer
41 views

Combine a List of Plots: Using MapThread with Show [closed]

I have a list of graphics p1 = Plot[x Sin[x] - 1, {x, -2.5, 2.5}] p2 = Plot[Evaluate[D[x Sin[x] - 1, x]], {x, -2.5, 2.5},PlotStyle -> Red] ListNew = {p1, p2}; ...
0
votes
0answers
30 views

how to change axis range [closed]

I wanted to plot a function with different form of axis range
6
votes
1answer
57 views

why this call to StreamPlot returns unevaluated? (no error message, no beep)

I am really baffled by this. Call to StreamPlot does not return empty plot, nor an error message, nor a beep. It just return unevaluated. I do not think I've seen ...
3
votes
2answers
257 views

Plotting octahedron inside the sphere and sphere inside the cube

How to plot an octahedron inside a sphere and the same sphere inside a cube in 3d?
1
vote
2answers
96 views

How can I combine two contour plots into one and give it a bar legend?

I have these contour plots: ...
1
vote
0answers
139 views

Mollweide Projection of a Sphere [duplicate]

I want to recreate the following picture for a project. However, I am not sure how to do this with Mathematica. Is there an easy way to obtain just the "background" picture of the sphere without the ...
2
votes
1answer
48 views

How to include Thickness for surface in Contour Plot? [duplicate]

ContourPlot3D[ f(x,y,z) ==0, {x,xmin,xmax},{y,ymin,ymax},{z,zmin,zmax},ContourStyle-> Thickness[2.0]] Like in this case Thickness does not appear to Show: <...
0
votes
0answers
5 views

How to reverse ArrayPlot Axis labeling [duplicate]

I have an odd incompatibility between Frame labeling and DataRange and DataReversed in ...
5
votes
6answers
679 views

Pretty heat maps

I would like to create a heat map like that following: This code: f[x_, y_] := (x^2 + y^2)^2 Exp[-((x^2 + y^2)/5)] DensityPlot[f[x, y], {x, 0, 5}, {y, 0, 5}] ...
7
votes
1answer
85 views

Why call to StreamPlot terminates kernel each time?

FYI, reported to WRI [CASE:4288967] By mistake, I put x range starting from negative to make StreamPlot for expression with ...
1
vote
0answers
71 views

Extracting a vector from NDSolve solution

I made an NDSolveValue to get the variable ff[t] ...
0
votes
0answers
39 views

How to solve this DE to get a matrix?

I have this DE $ g^{m \bar{n}} g^{r\bar{p}} \partial_t {g}_{m r} \partial_t {g}_{\bar{n}\bar{p}} = X_{i\bar{j}}~ \partial_t{f}^i (t) ~ \partial_t{f}^\bar{j} (t) ~~~ ~~~~~~~~~~~~(*) $ Where ...
0
votes
1answer
36 views

Contour plot of data

I have two vectors (plain lists), say a,b, from which I generated a 2d table, say mat. It's not a direct expression like ...
0
votes
1answer
51 views

ErrorListPlot (in ver. 12) and double-Y plots [duplicate]

Both of my questions concern ListPlot, so I hope it is acceptable to ask them both in one post. ErrorListPlot seems to have ...
0
votes
0answers
33 views

Plotting matrices

I have this expression: $\int g^{m \bar{n}} g^{r\bar{p}} \partial_t {g}_{m r} \partial_t {g}_{\bar{n}\bar{p}} ~ d^6 y = f(t)$ Where m,n,p,r=1,2,3 and the $\bar{}$ ...
-1
votes
0answers
75 views

Partial differential equation (Boundary condition & Plotting)

I'm trying to plot the nonlinear partial differential equation(PDE). The PDE and boundary condition is like this. ...
0
votes
1answer
51 views

How to plot this data smoothly

I have three lists (appropriately padded), giving me three curves, however the curves are not smooth/continuous and with gaps. I tried to make the grid finer, but still I can not get around this ...
1
vote
2answers
75 views

How to sample numerically a function using a mesh-grid function in 3D?

I am working on a problem where I want to sample a scalar function f[x,y,z]. The problem is how to obtain a mesh-grid in 3D (A grid of points in x,y, and z). In order to study this function. Of ...
1
vote
1answer
68 views

Creating a Number Line Continuum

In Wolfram, how can one create a plot similar to the following: That is: a number-line like continuum with labeled points?
4
votes
2answers
121 views

How can I visualize and calculate the volume of this $3$-dimensional object?

I have the following $3$-dimensional object defined by the inequalities: $$ u ≥ 0, v ≥ 0, w ≥ 0, \sin u ≤ \cos v, \sin v ≤ \cos w, \sin w ≤ \cos u. $$ How can I ''visualize'' this object in 3D using ...
4
votes
2answers
67 views

Want to manipulate and visualize differential equation of a falling object

I am trying to get ahead of my upcoming semester by visualizing a differential equation of a general ODE solution for falling objects with the given solution of $$m\frac{{dv}}{{dt}} = mg - \gamma v % ...
3
votes
2answers
51 views

“Automatic is not a valid StreamPoints specification”

If I run StreamPlot[{a, b}, {a, 0, 10}, {b, 0, a}] the kernel hangs, and I have to restart it. I also get the error message StreamPlot::strmpts: Automatic is ...
5
votes
2answers
573 views

Phase portrait of a system of differential equations

I have a set of characteristic equations, obtained by method of characteristics from Hamilton-Jacobi equation $$H(q,x) = (q^2-q)x+(1-q^2)x^2$$ $$\partial_s x = (2q-1)x-2qx^2$$ $$\partial_{-s} q = (q^...
0
votes
1answer
46 views

How to use a Table to generate numerical data from tridimensional scalar or vector function? [closed]

I am interested to generate numerical values for a scalar and vector function (both are complex functions). My question and concern are how is possible to evaluate if the functions have three ...
0
votes
0answers
103 views

Solving a list of ordinary differential equations with boundary conditions [closed]

This is my attempt, to solve a system of ODEs. I want to plot the relation between (η, f'), (η, g) and (η, zeta) ...
5
votes
2answers
318 views

Plotting Chebyshev polynomials using PolarPlot and FilledCurve

This question is related to this answer. What should I change in the following code to replace black color with blue color in the second image? ...
5
votes
2answers
101 views

How to set PlotRange->All for data with uncertainties and prevent cropping of error bars?

Mathematica 12 introduces built-in plotting support for data with errorbars. The following example looks good with the default settings: ...