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.

1
vote
1answer
55 views

Plotting a Maclaurin series

Can anyone plot the degree-8 Maclaurin polynomial for the function $(x+1)/((x^2)-9)$ and function $(x+1)/((x^2)-9)$ on the same plot. Please help, I've tried everything I could think of.
4
votes
2answers
105 views

Noise in Eigenvalues plot

I am trying to Plot Eigenvalues of a Hamiltonian, but I am getting noisy plot, which is incorrect. Here is the code. ...
0
votes
1answer
28 views

Exchanging X and Y axes

I was wondering if I could have help with the rotation of the axis of my plot. ...
7
votes
1answer
69 views

Vertical ranges of Column Plots in 12

Version 12 includes a new Layout->Column option for ListPlot which aligns multiple plots so they share a single horizontal axis. It seemed really useful at first....
3
votes
0answers
25 views

Plot BV functions with singular derivatives in multiple space dimension

In 1-dimensional setting, two key examples of $BV$ functions (of bounded variation) $u: \mathbb R \to \mathbb R$ are the Heaviside function, whose derivative is the Dirac delta concentrated at $0$. It ...
4
votes
0answers
42 views

FrameTicks in DateListPlot doesn't support “All” in Mathematica 12

In mathematica 12, DateListPlot[{1, 1, 2, 3, 5, 8, 11}, {2000, 8}, FrameTicks -> All] gives And the error message is A ticks specification in the value ...
0
votes
1answer
36 views

Select two of three in a triplet list {{x1,y1,z1}, {x2,y2,z2}} [on hold]

I have a list of triplets {{x1,y1,z1}, {x2,y2,z2}.....} and would like to plot $x$ vs. $y$, then $x$ vs. $z$. ListLinePlot will ...
0
votes
1answer
42 views

Plotting a graph of a function and part of it

I am doing a numerical experiment for solving some differential equation. In some part I need to plot a graph of the exact and approximated solutions. However, they are very closed to each other and ...
4
votes
3answers
87 views

How to change the tick of the color bar legend to black

Is there any option that allows one to change the ticks and borders of the bar legend in a density plot to black?
0
votes
0answers
46 views

Plotting a paraboloid and a plane

I am trying to visualize the intersection of a paraboloid and and a plane. My paraboloid is of the form $$f(x) = \frac{1}{2} x^\top A x - b^\top x$$ where $x$ is a vector and $A$ is the pd matrix $$A =...
1
vote
2answers
36 views

How to align text to the left when inside a graphic?

I am using Show to display a set of lines. Now I am trying to label them inside the plot with P=0/0.25/0.5/0.75/0.9. However, as you can see from the attached plot, the text seems to center around 0.2,...
2
votes
1answer
40 views

Combining many plots [on hold]

I am a beginner in mathematica. I want to plot many graph in one figure. I know that if I want to plot two graph(say it as Plot1, Plot2) in one figure, then I can just use Show as ...
5
votes
3answers
228 views

How to ternary Plot3D a function

I ploted 3D the function Sin[A/2]Sin[B/2]Sin[C/2] with A, B, C > 0 and A + B + C = Pi. A ...
0
votes
3answers
55 views

Plot not aligned after adding plot legends

The new GraphicsColumn function claims to have the ability to align the axes Align Frame Edges. It works fine for very very simple plots, but if one adds a simple ...
5
votes
1answer
49 views

Dynamic filling of a region of a polar plot

I would like to shade area of region as a function of angle using PolarPlot. Here is my attempt. ...
1
vote
1answer
29 views

How to apply color function (e.g. Hue) to Image3D?

I have a 3d image data PlotData1, and I want to plot the Image3D with color. I tried this (Note: I don't have ...
0
votes
0answers
42 views

Bug in Contour Plot [duplicate]

I think the following are bugs: ContourPlot[y (x - 1)^2 == 0, {x, 0, 2}, {y, -2, 10}] ...
0
votes
0answers
71 views

Some bold curves in phase portrait

In the phase portrait plot, how can we bold some curves with different colors? I am trying the solve the system of ODES but failed to get produce any output. ...
0
votes
0answers
49 views

Plotting the plastic zone — Tresca criterion

I've tried to plot the Tresca criterion from maximum shear stress theory. ...
1
vote
1answer
38 views

Coloring edges by weight and changing color but keeping shape for CommunityGraphPlot using PlotTheme->“Marketing”

(Apologies, but I cannot share the data that I am using for these graphs.) I am finding communities in my data set by using CommunityGraphPlot, and the results looks pretty good: ...
-1
votes
1answer
78 views

ComplexPlot3D and essential singularities [on hold]

I am trying to understand the behavior of the functions $$ f(z) = e^\frac{1}{z} \qquad \text{and} \qquad \frac{1}{f(z)} = \frac{1}{e^\frac{1}{z}} $$ in the neighborhood of $z=0$. From the power ...
1
vote
1answer
53 views

How to make an imported 3D Image look like X-Ray?

I have a human chest data as below:- ...
0
votes
1answer
41 views

How can I plot a function (unidimensional) in a 3D plot

I would like to plot a figure like that using Mathematica. They figure are three plane wave ( cosine or sin ) all share and have the same coordinate origin. As you observe, the waves propagate along ...
8
votes
0answers
176 views

Possible bug in ListDensityPlot in Mathematica12

I'm having some problems with ListDensityPlot in Mathematica 12 on MacOS Mojave. Here is the code: ...
2
votes
0answers
55 views

ListDensityPlot using

I have two data tables with identical parts along the vertical axis. For example: ...
0
votes
1answer
26 views

Create a list to Plot from a list returned by Solve

I have a list of 8 items the form: ...
3
votes
2answers
102 views

How to Make a Beautiful Stacked 3D Plot

I am looking to make a plot where: Plot is composed of a group of 2D plots, stacked in 3D. The height of the line is indicated by the color. The mean of the wave of each plot is indicated by a dashed ...
0
votes
1answer
30 views

How to Plot between square of the solution and square of the term occurring in the equation?

I am trying to plot between (mod[E01])^2 and (mod[as])^2 and for that using the following code as seen below. But not getting any plot. If anyone knows this, is welcome. ...
3
votes
0answers
62 views

Configuration of `PlotLayout` as “Row”/“Column”

A long awaited feature has finally been implemented in Mathematica v12: the multi-panel plots via PlotLayout! Demos are here: http://www.wolfram.com/language/12/...
2
votes
1answer
30 views

Reversing axis prevents formatting of that axis

I'm looking to make a graph with the x-axis reversed and a frame and tick marks that are thicker than default. However, the x-axis tick marks do not maintain the specified thickness once I reverse the ...
1
vote
1answer
59 views

Problem with fit

I am trying to find a proper matching function for the following data set: ...
0
votes
0answers
36 views

Using Interpolating Function [duplicate]

I'm a bit of a noob with mathematica. I'm having a problem trying to use values from my solution. I've used ND solve to integrate ODEs. I have ...
0
votes
1answer
31 views

How to plot two functions together when one of them needs to be a series of dots, with common labels and colors?

I have two functions that I want to plot together. I want to plot the non-linear and the linear (NL and L in my code) functions together, but I wish that the NL function is plotted as a series of dots ...
0
votes
3answers
70 views

Solving System of Differential Equations and Plotting

I'm new to Mathematica and I'm struggling with this exercise of Initial Value Problem: Two equations with conditions $x_1$'=-2$x_1$-3$x_2$+cos(5t) $x_2$'=-$x_1$-5$x_2$+sin(10t) $x_1$(0)=1 $x_2$(0)=-1 ...
0
votes
1answer
45 views

Solving and Plotting an integral function

I am new in the use of Mathematica, so please forgive me.. I want to integrate and plot the following integral function: $F(x)=\displaystyle\int_x^\infty\dfrac{t\sqrt{t^2-x^2}}{e^t-1}\text{d}t$: ...
10
votes
4answers
587 views

ListPlot join points by nearest neighbor rather than order

I have found some software that allows me to "data mine" the values from publication figures. I have a bunch of contours from papers that I've mined using this software, and am having some trouble ...
0
votes
0answers
22 views

Using MaxValue to define a function, plotting is slow

I'm trying to compute c-functions (from the theory of optimal transport), and so I must compute `supremums' for some function $f$ and cost $c$ $$g(y)=\sup_{x\in \mathbb{R}} c(x,y)-f(x)$$ My code ...
0
votes
2answers
81 views

How to plot: $\int - \frac {W(-\ln x)}{\ln x} dx$? [closed]

How would we plot: $$\int - \frac {W(-\ln x)}{\ln x} dx$$ Where $W$ is the Lambert W function?
0
votes
1answer
39 views

Manipulate shows an empty plot [closed]

My Manipulate expression Manipulate[ Plot[100[x]^2/(T^4 (Exp[x/T] + 1)), {x, 0, 30}], {T, 1, 4}] shows an empty plot. ...
-1
votes
1answer
75 views

Plot fractional trigonometric functions with the Mittag-Leffler function

Can anyone help please? Im trying to plot the solution $X$ of the system as in the paper attached - about fractional calculus which is $X= [E_{\nu}(2t^{\nu})][2 \cos_{\nu}(3t^{\nu})+4 \sin_{\nu}(3t^{...
2
votes
2answers
77 views

How to construct and plot the following accumulated list?

I have a list, say it is a = {1,3,3.2,3.9,4,4.4,4.9,5,7,8} To get the accumulate: acc = Accumlate[a] I want to plot the ...
1
vote
0answers
51 views

Colors in contours

When I want to draw a wide range of pictures,the value z=1 or z=-1 corresponds to plate patterns,I want it corresponds to one colour.This problem arises only when the scope of painting is ...
2
votes
1answer
87 views

Importing and visualizing 4D data

I am very, very new to Mathematica (I downloaded it 1 hour ago). I have a set of 1000 rows, 4 columns data, in a CSV file: data My first problem is that I don't know how to select the columns in the ...
0
votes
0answers
20 views

Gradient method in vectorfield on surface table does not work, module is slow

For teaching purposes I want to generate a vectorfield on a surface an visualize the path of the gradient method. The surface and the gradient are generated by ...
0
votes
2answers
92 views

How to animate a randomly updated plot

I have created a simple animation to explain to students how temperature affects the occupation of energy levels by using Animate to try to continually apply a ...
2
votes
1answer
35 views

Squish Axes Plot

Is there a way to squish the axes plots at the start of a 2d data plot. For example, imagine a signal from a wave has a continuous signal when $x\in [0,L]$ and out-with $L$ the plot becomes noisy. I ...
1
vote
1answer
28 views

Manipulating ParametricPlot

I have to solve the following task: Write a Manipulate command containing the values ​​a, b, c and d of the matrix $\begin{pmatrix} a & b \\ c & d \end{pmatrix}$ each varied in the range [0,...
2
votes
1answer
74 views

Plotting an osculating circle at the leading edge of a developing Cornu spiral

I need to plot an interactive Cornu function like so: ...
1
vote
1answer
23 views

Defining a function that outputs a matrix, and later finding its eigenvalues

I am trying to do the following: I have a simple 2x2 matrix that depends on three parameters (physically -- momentum coordinates kx, ky, kz). Then I want to replace each of these parameters by a ...
0
votes
0answers
35 views

Syntax and usage of DSolve

While solving differential equations with Mathematica I got into this excercise: Consider pendulum of length $l$ and $m=1$ affected by $g=9.80665 m/s^2$. The oscillation point of this pendulum isn't ...