# Questions tagged [plotting]

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

10,796 questions
Filter by
Sorted by
Tagged with
2answers
170 views

### How to add a legend to a SmoothDensityHistogram?

Is there a way to add a legend to a SmoothDensityHistogram? DensityHistogram accepts the ...
2answers
67 views

0answers
51 views

### Having issues trying to animate an electric and magnetic field of a moving point charge [duplicate]

I'm currently trying to plot an electric and magnetic field using Mathematica, but I'm quite new to the program and I've run into a wall. I start out with a moving point charge, and this is what I've ...
1answer
72 views

### Making a table excluding a region; conditional iteration

I just would like to create the table with the following condition; selecting the points outside a circle Norm[{x, y}] > 0.5 I used ...
2answers
99 views

### Plotting the electric field from a moving charge in 3D

I want to show a 3D electric field changing with time in response to the path of a moving charged particle. I have an animation of a particle traveling along a helical path using the parametrization ...
0answers
24 views

### Preserving ColorFunction when exporting 3D density plot? [closed]

I am trying to produce a 3D density plot from a set of points. Minimal code to generate a similar set of points and plot is ...
1answer
52 views

### SphericalPlot3D taking sign of $r$ into account [closed]

I want to plot Re[SphericalHarmonicY[l,m,Theta,Phi]], with the lobes having different colors depending on the sign of the function. I can’t use ...
0answers
49 views

### Time Varying 3D Vector Plot Improvements [closed]

From another question, I got curious and used Mathematica's built-in features to analyze the following. \begin{cases} \dot{x} = 1.0(x^2 + y^2 + z^2) \sin( ~t) - 1.0\sin(t+\pi/2) \\ \dot{y} = 1.1(x^...
1answer
53 views

...
2answers
62 views

### Plotting only one piece of an implicit 3d surface (the one value of the order parameter wich minimizes some free energy function)

I would like to plot a graphic of spontaneous magnetization vs T vs h for a Curie Weiss Model. The equation for stationary ...
0answers
39 views

### Issue with StreamDensityPlot

I'm plotting a complicated vector field that is yielding the following particular StreamDensityPlot. I'm using the following command to plot it: ...
3answers
422 views

### How to show decimal points on the axes frames in mathematica?

I have a set of data g1 and when plot using n1, i got the plot shown in figure below. I need to change the x-axis label from (1,2,3,4,5...) to (1.0,2.0,3.0,4.0,5.0) and y-axis label from (50000,...
1answer
138 views

...
2answers
193 views

### How to plot a function for various values of 2 constants

I have a function like this: ...
2answers
1k views

### A discontinuity in a plot of a continuous function

I plot a continuous, though not a smooth function: Plot[If[a >= 0.5, 0, Sqrt[0.5 - a]], {a, -1, 1}, PlotRange -> All] which returns the following One can ...
1answer
125 views

### Does ListPlot Joined Dotted crash front end reproducibly for large number of points?

The problem The following code crashes Mathematica 12 for Windows 64 front-end reproducibly in my computer (Win7 Pro, i7-4770 3.4GHz 16Gb RAM). ...
1answer
67 views

### Fourier Spectral Analysis [closed]

I'm currently working on an engineering exercise that goes as such: I know that I need a step function to model the square waves, but I'm having trouble finding the right functions to generate the ...
4answers
211 views

### Handling concavity in ListContourPlot

I have imported some CFD results (in csv format) into Mathematica to do some further processing of the data. One of my 2D geometries is, Now, when I try to do the contour plot, I get the following: ...
1answer
93 views

### Create a custom diagram

Suppose we have the following list with a row of integer numbers data = {0, 0, -1, 1, 1, 2, 9, -2, 2, 1, 1, 1, 0, 0, 9, 9, -1, 0, 9, 2} Each integer corresponds ...