A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
6
votes
1answer
309 views

How to create a fluid animation like this?

When two fluids move past each other at different speeds, complex instabilities arise that look really cool: The Navier-Stokes equations are numerically intense but can usually predict what will ...
5
votes
3answers
132 views

Plotting graph of a function with an imposed a condition

I have to plot a function $f(x,y,z)=\sin[x+y+z]$ with an imposed condition $\sin[y]\sin[x]=\sin[z]$. How do I plot it in Mathematica using Plot3D?
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? ...
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 ...
2
votes
1answer
40 views

Plot solution of ODE with singularity

I wish to plot the solution of the following ODE: ...
0
votes
2answers
96 views

Finding the global maximum of a function

I've the following code: ...
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 ...
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 ...
3
votes
2answers
343 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
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 ...
3
votes
0answers
73 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 ...
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). ...
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: ...
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 ...
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 ...
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
2answers
55 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 ...
1
vote
0answers
48 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^...
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 ...
2
votes
1answer
53 views

Plotting solution of differential equation

...
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: ...
12
votes
2answers
257 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
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
1answer
96 views
1
vote
1answer
65 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 ...
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 ...
0
votes
1answer
45 views

Creating a custom curved axis around a pie chart

In a recent post, we have seen (thanks to @kglr) how to create a custom pie chart ...
0
votes
1answer
50 views

How do I add a vertical plane in Plot3D?

I use the following code to generate a plot: ...
1
vote
1answer
41 views

How do I use ListPlot with error bars properly [closed]

I'm trying to make a ListPlot with error bars: In this example I want one data point at x = 3, y = 1 and symmetric error bars of magnitude 0.5. This is the code I'm using ...
1
vote
2answers
66 views

contourlabels diagonally

I have this contour plot. I want to place contours diagonally in the center of the plot. or put custom labels where I want. how can I do it? I use this command for contourlabels. but it is not ...
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 ...
3
votes
1answer
55 views

How to use Tube (and regionplot) for this parametric plot?

ParametricPlot3D[{(1 + Cos[Theta]) Cos[Phi], (1 + Cos[Theta]) Sin[ Phi], Sin[Theta]}, {Theta, 0, 2 Pi}, {Phi, 0, 2 Pi}] How do I use ...
2
votes
1answer
47 views

What can I do about my DateListPlot plotting incorrectly?

I have noticed that ...
0
votes
0answers
50 views

Speed up and Smooth Plot3D of NDSolve Evaluated Results

may I ask is there any space for my code to be improved in terms of the speed and resolution of the plotted results. Currently, it takes more than one hour to plot the 3D graph and as shown in the ...
3
votes
1answer
68 views

How to change the font in LineLegend?

Is it possible to change the font in LineLegend? In fact, I need a mathematical font (like Times) in this part.
5
votes
1answer
60 views

Using images as points in `ListPlot`

I am trying to make a ListPlot with a bunch of points, each of which I want represented with a distinct image (e.g. *.png). I'...
1
vote
1answer
47 views

removing singularity

i got help from other members to plot this equation. but there is still a problem. when i plot this equation. ...
3
votes
2answers
778 views

How to stretch this Venn diagram?

I am trying to duplicate (approximately) the following Venn diagram in Mathematica: I have used the top of this page as a guide, which showcases the following Venn diagram triplet: ...
5
votes
1answer
63 views

Sort Data Sets by Lines/Neighbours

I have several sets of data which together yield Fig. 1. As can be seen from the colours of the dots, the data sets are mixed, but do obviously belong to several distinct lines. My question is: How ...
10
votes
1answer
196 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 ...
0
votes
1answer
75 views

How to remove duplicate points from a plot

I have this equation and I want to draw the contour plot. ...
1
vote
1answer
35 views

How to change the color of contour values?

I have contour plot and I want to change the font color of the contour values. meanwhile, changing the background to white. can anybody help? this is what I've found. but it only gives 9 contours, I ...
1
vote
2answers
73 views

Obtain only positive complex solutions

By setting the determinant of a matrix to 0, I obtain 6 complex solutions for w and plot them. However, You can clearly see that the negative solutions mirror the positive solutions as the solution ...
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: ...
1
vote
0answers
59 views

How to draw sketches of objects using lines (curves) only

Update Thanks for your comments, now I see that it's not easy to have 3D graphics in vector form. This is fine though, because the major reason that I'd like to do it in mathematica is that I'd ...
0
votes
1answer
54 views

Solving and plotting derivative included function

Please suggest a method that I can use to solve (for y(x) and y'(x)) and plot the derivative related given function. Note: L may be vary): ...