Questions tagged [plotting]
Questions on creating visualizations from functions or data using high-level constructors such as Plot, ListPlot, Histogram, etc.
15,613
questions
0
votes
0
answers
36
views
Density Plot Not Printing The Entire Range
I have a density function running on a piecewise function. When I plot the x range for full 0 to 1, the upper right corner color range doesn't print, but it works when I plot the x range for that ...
2
votes
3
answers
158
views
Add marks in multiple functions in Plot
I am looking for any options to draw 2D plot of differently marked curves for given functions, thus one can distinguish it by the provided legend.
For instance:
...
5
votes
5
answers
379
views
How to change Callout leader size in Plot?
Take this example:
Plot[Callout[Sin[x], Sin[x], Above], {x, 0, Pi}]
Question: How can I change the length of the line connecting the $\sin(x)$ label with the ...
2
votes
1
answer
39
views
LeaderSize has no effect on Callout in Plot
I was trying to change the position and distance from the plot of a label generated using Callout. The following code specifies different ...
0
votes
0
answers
35
views
Getting frequency domain data from time domain using Fourier transformation [duplicate]
I have a dataset following cosine function [e.g. cos(200t)] in time domain. In frequency domain two sharp lines should appear at -200 and +200.
I have to do Fourier transform (or Fast Fourier ...
0
votes
1
answer
63
views
How to find the difference between two plots?
I have the following analytical plot.
...
0
votes
0
answers
39
views
The plot doesn't show up when I use Plot3D
In Mathematica help all the examples are given in a way that the function is written like:
Plot3D[{x^2 + y^2, -x^2 - y^2}, {x, -2, 2}, {y, -2, 2}]
I have a code that is huge and the function that I ...
9
votes
4
answers
4k
views
FrameTicks and Ticks on Axes in Same Plot
I have a plot where I would like ticks shown on both the axes and the frame, with them labeled separately. I have custom labels for the frame and want the horizontal axis labeled with ticks ...
0
votes
0
answers
48
views
How can I use Frame and axes on the same plot?
It is necessary to display the Frame (in the left edge of the plot) and usual axes (in the bottom) in the same plot. Mathematica doesn't support this feature as discussed earlier. But there is a ...
2
votes
1
answer
59
views
2
votes
1
answer
57
views
FontSlant plain mode not working
Whenever I have subscripts in my labels, the FontSlant seems to change to italic. I want the plain style, even for legends.
How to fix it?
...
3
votes
1
answer
121
views
How can I zoom in on a specific region?
I made this plot with Mathematica but it's hard to see the region around the cirtial point -1 + 0j.
Is there any way to zoom the region?
...
0
votes
0
answers
24
views
0
votes
1
answer
80
views
Trying to plot the Fourier transform solution to the heat equation on Mathematica [closed]
I have gotten the solution of the heat equation as
where f(y) is the initial heat distribution which I have been given as f(x) = e^([Sigma]x^2).
I am supposed to plot this at the value of sigma 1, 2 ...
3
votes
1
answer
467
views
ContourPlot with BarLegend: vector format export problem
I have a couture plot which I want to export in vector format (e.g.PDF) and use in my latex. The example code from here:
...
1
vote
0
answers
69
views
Subtract ParametricRegions from each other
I have 2 surfaces defined parametrically that overlap. I want to subtract the helical surface from the cylindrical surface to obtain a mesh of just the blue surface in the image. The parameter bounds ...
0
votes
0
answers
62
views
How to plot the respective electric field oscillations within an ultrashort pulse envelope if given a spectrum in wavelength?
I'm trying to reconstruct the electric field oscillations of an ultrashort pulse from experimental spectrum data readout [600nm to 1100nm]. I have successfully written the codes to convert the ...
3
votes
1
answer
206
views
To get rid of "double lines" [closed]
I have the following code:
...
5
votes
4
answers
192
views
Display Table output as a grid of points
I want to create a Grid or Plot (or equivalent) from the following Table:
...
2
votes
1
answer
81
views
4
votes
2
answers
167
views
Modify the color scale in ColorFunction
I'm trying to get the following intensity map with the same style and colors
But the closest I got was using SolarColors in Mathematica
...
1
vote
1
answer
71
views
Modify the size of vectors in vectorplot3D
I'm trying to plot in the neighborhood of the origin and I can't change the shape and size of the arrows. What I need is to be sure whether or not the solutions are attracted to the line that goes ...
0
votes
0
answers
50
views
Creating a 3D Plot with Colored Lines from 2D Data Sets with Color Labels
I got the following table of my data:Amplitudes at each site for different t1-values and energy eigenvalues]1
and I am trying to plot the amplitudes at each site for every t1-value such that a 3Dplot ...
0
votes
1
answer
60
views
Normalizing a plot by introducing a variable
I am trying to plot the graph between P and x. My teacher wants me to normalize this graph by introducing a constant $k$ to get $P/k^2$ on the y-axis and $xk$ on the x-axis. I did that by doing a ...
1
vote
2
answers
162
views
How to plot correct empirical distribution?
I have data that represents number of values in intervals.
So, I have intervals like: [0,1], [1,2], [2,3] and so on.
My data is [23,11,3], which means in interval [0,1] there are 23 values, inside [1,...
2
votes
2
answers
45
views
Show the translated version of a plot alongside another graphics object
I want to demonstrate the fact that the main part of a Mandelbrot fractal is consisted of a cardioid and some circles. So at first, I wrote this line:
...
0
votes
1
answer
93
views
Change of variable of a numerically solved integral
I have the following function that numerically integrates a function on the interval $\left[ 2, 100 \right]$
...
0
votes
1
answer
82
views
ListVectorPlot3D not plotting anything nor giving any error, just empty 3D axes
It's as simple as the title says.
My code is:
...
1
vote
0
answers
81
views
Intensity pattern [closed]
I'm trying to get the following intensity pattern from this paper
In the Newtonian case, the equations for the intensity (eq. 9 and 10 in the article), I put them in Mathematica with the change $b^2 =...
1
vote
2
answers
109
views
How to plot a matrix with this 3D style in a bar chart?
Reading the paper Measuring Wigner functions of quantum states of light in the undergraduate laboratory in arXiv, I found the figure above, whose style is very beautiful. I tried to reproduce it, but ...
0
votes
0
answers
67
views
How do you create a program to calculate the spectrum of a pulse of arbitrary shape?
Develop a program designed to compute the spectrum of a pulse with an arbitrary shape. My current program might not suitable for solving this problem.
...
5
votes
1
answer
90
views
How to accomodate empty data set in ListPlot, ListLinePlot?
The simple case often arises where multiple data sets are generated, and one or more is empty. ListPlot and related functions fail to plot such multidata sets. The ...
4
votes
1
answer
314
views
Animation of a spring pendulum
I would like to animate a spring pendulum. Below is my piece of code. The Lagrangian and equations are correct, in which I am sure, but the animation looks terrible and non-realistic.
Could someone ...
1
vote
1
answer
171
views
ListLogPlot for positive and negative values
I am trying to plot the following set of points on Mathematica:
...
0
votes
1
answer
77
views
How to make a 2D plot using Manipulate with slider bar?
In the data below, I solved a heat transfer equation which gave me the Temperature for a given position and time. I want to make a 2D plot as a function of Temperature and position with the ...
1
vote
2
answers
52
views
How to stop Manipulate with PolarPlot from resizing PolarAxes?
I'm having some difficulty figuring out why the following code resizes the polar axes once move the slider past a certain number.
...
1
vote
1
answer
84
views
Drawing arrow without filling
How can I draw an arrow which is empty inside and only has a border?
1
vote
1
answer
56
views
1
vote
1
answer
125
views
Unexpected output in ContourPlot
ContourPlot[Boole[(Im[x+ I y]!=0&&Re[x+I y]<=-1)||Re[x+I y]>-1],{x,-5,1},{y,-5,5}, PlotPoints->200]
shows two white lines, the horizontal ray from ...
0
votes
0
answers
97
views
Plotting function defined via NIntegrate is too slow
I have the following functions as solutions of a system of differential equations (for calculation, I used ParametricNDSolveValue)
...
0
votes
0
answers
168
views
Problem generating the heat map
I'm trying to generate the following heatmap (Figure 2, page 7 of this article)
The equation I used for the heat map was ($R_{sh}$, equation 52 in the paper)
...
0
votes
1
answer
133
views
How to speed up this integration?
I try to evaluate this integral:
...
0
votes
2
answers
71
views
Any idea why my Manipulate[ParametricPlot] isn't showing anything [duplicate]
[
As you can see on the attached screenshots I tried to make it work multiple times, but it shows nothing. Any idea?
0
votes
2
answers
123
views
Plotting Two ListDensityPlot3D Plots Together
I would like to plot two ListDensityPlot3D plots in the same plot. My two data sets are intersecting, and I would like to see that the two shapes intersect. However, when I plot them only one is ...
2
votes
4
answers
382
views
Plot a one-dimensional list of numbers as a column/row of labeled colored squares
I have a list of numbers and a matching list of labels. I want to plot a column of colored squares, with the color of each square matching (in some color scale) the value of the corresponding number. ...
0
votes
0
answers
59
views
Plotting list of points to a special graph
Given Mathematica code of eigenvalues in different variable-paths , I want to add experimental data in the path Gamma-X ; X-Gamma ; and M-Gamma .
Here is the code :
...
1
vote
1
answer
40
views
Adjusting thickness of lines in PlotLegends?
I have the following plot:
...
1
vote
1
answer
193
views
Log scale for ListContourPlot when the axes have different orders of magnitude
I am trying to plot a data set (download here) in Mathematica (it's 3.9 MB and I wasn't sure how to best share it) which I then want to visualize with ...
0
votes
1
answer
80
views
Why can't I combine these two plots? [closed]
I have the data
...
0
votes
1
answer
53
views
How can you plot a function that contains a sum that depends on the explicit variable of the function?
I am trying to plot the following function in Mathematica
$$f(\beta)=\frac{a^2}{2}\sum_{N} \left[N^2 \frac{e^\frac{-\beta a^2 N^2}{2}}{\sum_N e^{-\frac{\beta a^2 N^2}{2}}} \right] $$
My Mathematica ...