Questions tagged [plotting]

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

14,092 questions
Filter by
Sorted by
Tagged with
4 views

DiscretePlot with a List as argument

Suppose I have some multidimensional function that is computationally very expensive to evaluate. Here, I will just use ...
• 101
7 views

Ploting the probability time evolution

I'm trying to reproduce this graph that is about the time evolution of a probability, for very small times: Where this probability is given by: $$P=\left|\vert A(E)\vert^{2}e^{-iEt}dE\right|^{2},$$ ...
41 views

Properly Updating Particle Motion in 3D Electric Field Simulation

I have a code (very bottom of post) which plots a static electric field as it passed through some metal sheet with an aperture in it. I seek to observe the motion of some N charged particles (point ...
• 25
38 views

Why is my svg image composed of surfaces instead of lines?

I'm trying to export this plot in svg format. However, if you analyze the exported svg image, you would see that they're composed of surfaces instead of lines like this: I suspect that this is the ...
• 1,972
68 views

Plotting a table with one x-value and multiple y-values

I have a table which reads ...
• 619
1 vote
66 views

How to add arrowhead for axes in frame?

How can I add arrows for axes of frame? This works well if there is no frame but it doesn't work when I added frame. ...
• 1,972
49 views

How can I flip/mirror the legend? [duplicate]

How can I flip/mirror the legend like this? The text should be right aligned and if the text is longer than the text move to the left. ...
• 1,972
1 vote
26 views

How to middle align text and the markers and place the legends for this?

How can I middle align the legends and markers? Changing the font size make it not aligned. ...
• 1,972
1 vote
181 views

How to plot the data where y is a function?

how can I plot the data (x,y)by knowing a and b and x values? x = {0.2, 11, 16}; y = Exp[(-a*x - b*x^2)]; a = {0.510, 0.280, 0.250}; b = {0.380, 0.240, 0.330};
30 views

The command: ...
41 views

3D Parametric Plotting for N Charged Particles in a Nonuniform Electric Field

I have a code (very bottom of post) which plots a static electric field as it passed through some metal sheet with an aperture in it. I seek to observe the motion of some N charged particles (point ...
• 25
46 views

How can the Style of one dataset be applied to another data set for plotting

I have a data set that must be plotted using BarChart, and I would like to format the color based on another dataset's style. For Example: ...
• 4,376
177 views

How are the projections of this plot made?

I want to make projections of a 3D plot as shown in this image . I took this image from this paper: Multiphoton state engineering by heralded interference between single photons and coherent states. I ...
• 147
37 views

How can I plot the scattering phase function of a polarized light on a 3D sphere? [closed]

This is my first time using mathematica for plotting. I learned some techniques to plot my data but didn't get the right answer. I want to plot the scattering phase function on a 3D sphere as shown in ...
137 views

...
• 1,284
62 views

Plot two list for differen first list parameter

I have a series of equations based on which I plot final lists of "xA1","yB1". I need to change "xA1 = {0.55}" and "yB1 = {0.6}" between [0,1] with interval 0....
39 views

Additional line in the Plotting

I'm trying to plot a function, the problem is that the plot contains additional lines which originate from the solution itself, but at the same time removing the solutions will delete a whole portion ...
55 views

How can one plot a sum in mathematica? [closed]

I would like to plot the following answer to the heat equation, Sum[(((-1)^n - 1)/n^2) Cos[n x] Exp[-(n^2 t)], x] But since it is a sum, it does not appear to work....
• 269
416 views

How can I extract just the legend from this plot?

How can I extract the legend from the following plot? ...
• 1,972
1 vote
57 views

Separate ContourPlot3D generated planes

I use ContourPlot3D[ -7 - 12 x + 32 x^2 + 54 y - 28 x y - 67 y^2 + 16 z + 88 x z - 136 y z + 28 z^2 == 0, {x, -2, 2}, {y, -2, 2}, {z, -2, 2}] get this You ...
• 449
1 vote
70 views

An issue in ListDensityPlot

I am having an issue with getting a nice plot but ListDensityPlot is returning a plot with white area. I thought this could be due to the singularity, then I have ...
• 469
193 views

How can I remove markers with numbers 2, 5, 7?

How can I remove the markers with some specific numbers, for example like 2,5,7? ...
• 1,972
1 vote
42 views

How do I construct and plot functions properly using NestList?

I am trying to construct a function using NestList and plot the values. Although the individually used and defined functions in my notebook seem to do the right ...
1 vote
32 views

Additional lines in the plotting graph

I tried to plot the following ...
111 views

How can I remove plot markers at some desired points?

How can I remove plot markers at some data points? For example, I want to remove one plot marker at the circled point leaving only one marker there. I tried deleting the data points but this would ...
• 1,972
45 views

How to mix two styles with some lines with filled and non-filled markers?

How can I mix styles with some lines with filled and non-filled markers? The post here mentioned all cases but I couldn't combine them into one plot. ...
• 1,972
76 views

How to apply the style of one set of data to another set of data? [closed]

I have a data set that must be plotted using BarChart, and I would like to format the color based on another dataset's style. For Example: ...
• 4,376
33 views

Is the integration feature of an interpolated plot/function supposed to have a much larger maximum and range values in general?

So, I have imported data from a software called NextNano, plotting electron density. My first step was to define the data within the desired domain data={,},.... ...
46 views

How to Combine 3d Plots

I am trying to analyze data from a high-altitude balloon (HAB) launched in Ohio, and I would like to use Mathematica to do this. Currently, I have used Mathematica to generate a plot of the topography ...
237 views

How can I move these numbers to the right side of the y axis?

How can I move these numbers to the right side of the y axis? (preferably not using frame) Plot[1 + x^2, {x, -5, 0}] Here is my orginal problem. I tried my best ...
• 1,972
149 views

How to plot two functions?

a[x_,y_]:=x^3+y^2; b[x_,y_]:=x^2+y^3; I want to plot a[x,y] in x axis and b[x,y] in y axis for different values of x and y say, we fix y=1 and x goes from 1 to 10.
• 115
71 views

Can BarLegend Tricks be set according to the function?

I am using it like this . Now how to set barlegend numbers according to the c[x] value? ...
• 115
55 views

Add barlegend colored by area of circle

I am using the following code where color and color barlegend show the radius of the concentric circles: ...
• 115
1 vote
73 views

Defining Dirichlet Boundary Conditions on an Imported 3D Object with Apertures in it

I am trying to simulate a static electric field (in 2d and 3d) as it passes through a couple of apertures in a 3D "metal sheet" (model imported as a .obj file) given here: https://www....
• 25
129 views

How to add color BarLegend here?

How can I add a BarLegend to the following plot? ...
• 115
37 views

How to use Callout for joined points line

I want to use Callout to make a label of my joining point, instead of using PlotLabels like this ...
166 views

ContourPlot U^2+W^2=V^2 -> V(U), where U, V solutions of equation from special functions [closed]

CountourPlot W(U) I have this following code of it: ...
• 31
83 views

Copy value of Tooltip from AnatomyPlot3D

When plotting anatomy data with AnatomyPlot3D[Entity["AnatomicalStructure", "LeftIndexFinger"], Method -> {"Tooltips" -> True}] ...
• 1,344
1 vote
258 views

The fitting curve cannot be found correctly

I want to fit this function $$\operatorname{PF}\left(\sigma_{f_{0}}\right)=1-\exp \left[-\left(\frac{\sigma_{f_{0}}-\sigma_{\min _{0}}}{\lambda}\right)^{k}\right]$$ I already have some points ...
• 449
81 views

Is there any way to magnify the figures in the "Show" command?

I am trying to magnify a small part in the following Mathematica figure. What should I write in the 'show' environment to magnify the specific part of the figure? ...
• 1
53 views

Ploting solution to a differential equation with different parameters

I want to plot the solution to the following differential equation with different values of parameters. What is the best way to do it instead of solving the equation individually by inserting the ...
• 107
1 vote
47 views

Combining a ContourPlot3d and parametric plot 3d [closed]

I am trying to put these two graphs together but and getting the shown error: ...
• 33
1 vote
41 views

Issue with using complexplot with Nearest

I have been trying to create a certain fractal with Mathematica but the main issue is that if I try and do something like ...
1 vote
192 views

How do I plot the Lorenz attractor inside an ellipsoid? [closed]

How do I plot the Lorenz attractor given by the following code, inside an ellipsoid. I have two things with me: The Lorenz system with P=6.06739, b=2.6678, r=30 and x,y,z are functions of time. ...
41 views

delete of some special points

I wan to delete some points in this picture ...
• 449
43 views

...
96 views

PolarPlot with function output represented with color rather than distance from origin

A normal PolarPlot takes in a function of an angle $\theta$ and outputs a 2D graph in which the value of the function at each value of $\theta$ is encoded by the ...
• 1,243
201 views

ContourPlot -- coloring the plot lines

I have 2D implicit functions which I would like to plot in color, with given color functions. E.g.: ContourPlot[y^2 - x^3 + x^4 == 0, {x, 0, 1}, {y, -1/2, 1/2}] ...
• 1,049