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
4
votes
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 ...
1
vote
2answers
67 views

Select one among multiple solutions that satisfies a certain condition and 3D Plot it with varying simulation values

My function is as follows: $$f(x)=ax^5+bx^4+cx^3+dx^2+ex+g=0$$ Since it does not generate an analytical solution, I tried to do a simulation exercise as follows. Simulation values: $a=-2$, $b=3$, $...
12
votes
2answers
262 views

Plotting Joukowski Airfoil Streamlines using conformal maps

I want to plot the streamlines around Joukowski Airfoil using conformal mapping of a circle solution. I do know that there are a lot of solutions to plot the airfoil itself (for example this), but I'...
1
vote
0answers
31 views
1
vote
1answer
38 views

Specifying the font size and font style for plot legends [closed]

How can I change the font size and font style for the line legends? ...
3
votes
2answers
255 views

Is this a bug in plotting step functions?

The following simple code generates a flawed plot: ...
4
votes
1answer
32 views

Plot not detecting integer values

While plotting Plot[Ceiling[FractionalPart[x]], {x, 0, 3}] I noticed that the dips at integers were not being plotted. Is there a way to achieve that?
0
votes
1answer
36 views

Solving a fifth order polynomial with changing values of coefficients [closed]

I have a fifth order polynomial in x whose coefficients depend on a certain variable k. Now, I want to find the real roots of that polynomial for each value of k, say from 0.1 to 2 in steps of 0.05 ...
1
vote
1answer
65 views

Minimization problem!

Im probably not seeing the obvious question but i want to minimize an expression like: Func[A_,B_,θ_,θ1_]:= A Cos[θ-θ1] + B Sin[θ]^2 where i do to minimize in ...
0
votes
2answers
96 views
0
votes
1answer
50 views

Combine two plots into one with different colored legends

After much help from this community, I finally have a way to plot the real solutions to the determinant. However, this may seem like a stupid request, I want to combine both figures that result from ...
2
votes
1answer
40 views

Plot solution of ODE with singularity

I wish to plot the solution of the following ODE: ...
0
votes
1answer
63 views

I am having trouble with the Show[] section of this code

Question: I am unsure how to graph the interpolated graph with the regular graph on the interval $[1,4]$. Not even the Show line works about even if I'm pretty sure ...
0
votes
0answers
38 views

Plotting and respresenting data points that are very similar in value

Suppose I have the following association, ...
5
votes
2answers
205 views

Adding a bar legend to a 3D plot indicating surface curvature by color

I want to color surfaces according to its Gaussian curvature, but the color bar is not consistent with the color. How can I improve it? Color a HyperbolicParaboloid according to its Gaussian ...
2
votes
1answer
45 views

How to plot and print the maximum value in a ContourListPlot[]

I have managed to manipulate functions from a list of data points. The data table is large and thus is in this link. ...
0
votes
1answer
29 views

Manipulating PlotRange in ParametricPlot [duplicate]

why does the following code not work? ...
1
vote
1answer
39 views

Show, if possible, small isolated “islands” in the unit cube using RegionPlot3D

I have a certain three-dimensional constraint ...
11
votes
2answers
582 views

Using a given colour table with Image?

Context I would like to represent large images with a given colour table. Now, if I use Image ...
3
votes
2answers
128 views

Plotting tens of thousands of functions together on the same axes

I'm trying to plot a large number of functions together on the same axes. Each of these functions is the result from one iteration of a Monte Carlo simulation. Essentially, I'm varying parameters of a ...
10
votes
1answer
199 views

How to display images inside Mathematica with matplotlib

How to display images inside Mathematica with matplotlib. A new window is generated by default, but is it possible to display the picture directly in the notebook? Like this: related: How to ...
7
votes
1answer
161 views

What was being plotted at WWDC 2003?

At the WWDC 2003 keynote, Theodore Gray took the stage, along with Phill Schiller, and demoed Mathematica 5, comparing performance on G5 and Xeon processors. In the presentation, a 40-step fractal ...
4
votes
2answers
461 views

How do you plot random points in three dimensions?

I've got a function that maps a 2D plane onto a sphere (I'm trying to learn about Geodesics). ...
1
vote
1answer
96 views
3
votes
2answers
344 views

How can I plot a function with parameters x,y but only in the `x<y` region

I want to use DensityPlot to plot the function, let's say f[x,y]=xy, but only in the x<y region with ...
3
votes
0answers
74 views

Removing artifacts from my plot that draws Homer Simpson [closed]

I'm doing "Drawing Homer with Epicycles" (from the video: Epicycles, complex Fourier series and Homer Simpson's orbit by Mathologer) It uses FindShortestTour to ...
2
votes
3answers
679 views

Plotting disk in 3D at given spherical angles

Edit: This question has very useful answers, but none address how to work with spherical coordinates. I want to plot a 2D disk in 3D space, angled perpendicular to a given direction. That direction ...
4
votes
1answer
63 views

How to calculate an area of a conformal map enclosed shape?

I need to calculate the area of a conformal mapping closed shape on the complex plane that gives the perimeter. I have the following parameters: ...
0
votes
2answers
82 views

Automatic Manipulation of experimental data and plotting

I have experimental data which looks like this In the high positive and negative x-axis regions, my data is always linear, I want to extract the slope of data in these regions, take average and ...
9
votes
3answers
227 views

Parsing Org-Mode Timelog Data

Suppose we have in ~/time-data/time-data.org the following data: ...
1
vote
2answers
57 views

How to make a discrete density plot for a two-variable PDF?

I have the following function of two variables $(1)\qquad f(x,y)=\exp[-x^{2} - y^{2} + \frac{1}{2}xy]$ which is interpreted as a two-variable Gaussian probability distribution. Concretely I want to ...
3
votes
1answer
60 views

How do I remove part of the plot?

I am in a similar situation as the one described in this post: I need to Plot3D a piecewise function with complicated inequality restriction. I am using this answer ...
3
votes
3answers
506 views

Plot a specific branch of a multi-valued complex function

Let's say I want to plot a branch of the following function $f(z) = \sqrt{z(z-1)}$. Let $z = r_1 e^{i\theta_1}$ and $z-1 = r_2 e^{i\theta_2}$. How can I tell Mathematica to plot the branch for which $...
1
vote
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 ...
0
votes
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 ...
1
vote
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 ...
2
votes
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 ...
1
vote
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 ...
1
vote
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^...
2
votes
1answer
53 views

Plotting solution of differential equation

...
1
vote
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 ...
1
vote
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: ...
0
votes
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,...
0
votes
2answers
193 views
2
votes
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 ...
4
votes
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). ...
1
vote
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 ...
6
votes
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: ...
3
votes
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 ...