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

learn more… | top users | synonyms (10)

1
vote
5answers
534 views

Label each panel of Grid

I have a set of figures that I would like to show as grid for a publication. I currently just export the figure as an eps and use another software package to add Labels (A,B,C,D) to each panel of the ...
3
votes
2answers
67 views

How to set global style of controls in Manipulate?

I created a Manipulate code which is using several sliders, with the same font output (style, size, font familly, ...). How can I save some space by defining a global style for all the slider ...
0
votes
1answer
59 views

Mathematica is not able to plot this DensityPlot

I am trying to integrate function f(k,t,p) and plot real part of it (heat map).But some how Mathematica always always shown "running..". Can you help me or suggest ...
6
votes
3answers
1k views

Finding all maxima and minima of a function

To find all (global and local) extrema of a function in $\mathbb R^3$, I have written the following. Example function: ...
1
vote
0answers
54 views

How to speedup Plot3D with precompiled argument

I have a huge problem with my code: I estimate it to take hours to run. The scheme of the code is the following (I left the steps the same, but took much simpler functions): ...
5
votes
1answer
80 views

Plotting a parametrically defined vector field

Let's say that you have a three dimensional surface defined by two parameters. E.g. $$ S(\theta,\phi) = \{\cos{\theta}\sin{\phi},\sin{\theta}\sin{\phi},\cos{\phi}\} $$ Additionally, you have some ...
1
vote
2answers
81 views

ContourPlot of HistogramDistribution

I am trying to create a density plot of a 2-dimensional HistogramDistribution. ...
3
votes
2answers
93 views

How to remove parts of a curve?

I have a curve that have some unwanted parts. How can I remove them ? Or how to constraint the curve to a specific region ? Here's a MWE that shows the problem : ...
0
votes
0answers
40 views

How to fit a plot with error bar as weight?

I try to fit a line which can fit through the points considering the error weight of each coordinate. Is it possible to do in Mathematica? I can only find Fit function which did not do what I really ...
22
votes
3answers
1k views

How to make a 3D topographic globe?

I've made some attempt with this dataset of elevation. But I have some trouble with ListSurfacePlot3D, which can not show the globe correctly: And I've checked that the data is out of problem, ...
3
votes
1answer
67 views

Frame labels without a frame?

Is there a way to add labels to a 2D plot, without the Frame ? Here's a MWE which shows a simple graph with four labels around its frame. I need to remove the frame, but keep the labels. Is that ...
1
vote
1answer
471 views

Plotting legends in contourplot

In Mathematica 8. Given this: ...
0
votes
2answers
63 views

Plotting cicle using ListPlot

How can I plot circle plot with ListPlot function or how to organize data to produce circle plot from ListPlot function ? If u do something like this ...
1
vote
1answer
37 views

Plot is empty (probably) due to poor function definition

I am trying to plot my response $x(t)$ as a function of system parameter $M_0$. Here is my code to regenerate my problem ...
-1
votes
1answer
83 views

Image of the unit circle under a complex rational function

Let $$f(z)=\dfrac{z(z-a)}{(z-b)(z-c)(z-d)}$$ be a complex rational function with distinct non zero complex numbers $a,b,c$ and $d.$ I need to plot the image of the unit circle $S=\{z\in\mathbb{C} : ...
0
votes
1answer
47 views
0
votes
1answer
75 views

How to plot a solution set? [duplicate]

I have two functions, let's call them $F1$ and $F2$. Both take the same three arguments: $x1, x2$ and $\epsilon$. With every $\epsilon^* \in [0,1]$, there should be either zero or one unique point ...
0
votes
1answer
66 views

Scaling the axis

I want to scale the x-axis in the plot by a factor of $\frac{\sqrt{3}}{2}$, When I change the variable in the command: Plot[f,{Sqrt[3]r/2,0,20}] I am getting an ...
0
votes
2answers
106 views

Solve implicit system of equations

Hello everybody I try to solve this system of functions and try to plot it: x == 0.5(1.+Tanh[0.5*(x*y^2-eps1)/t] y == Tanh[(x^2*y+eps2)/t] with eps1 = 0. and ...
5
votes
3answers
310 views

How to plot a lemniscate on a surface

How do I plot a lemniscate: ContourPlot[(x^2 + y^2)^2 == 2*(x^2 - y^2), {x, -1.8, 1.8}, {y, -0.63, 0.63}] on the following surface: ...
3
votes
3answers
175 views

Cantor Pairing Function

I'm inspecting the Cantor pairing function, that we can find on this link here. But the strange thing is that Mathematica is outputting a wrong result to me. The code below shows the strange ...
23
votes
5answers
4k views

Make a beautiful Moiré effect

How do I make the following Moiré pattern? I tried: ...
1
vote
2answers
69 views

ListPlot: Increase size of the markers

I have a plot generated using ListPlot. The plot consists of several points, which I connected using option Joined->True. ...
3
votes
1answer
42 views

How to fix an error of Graphics`Graphics` is now obsolete?

I am pretty new to Mathematica. I have version 6 and wish to try a code listed in http://numericaltank.sjtu.edu.cn/2ndBook/APO/APO.txt about Homotopy Analysis Method for American Put Option. However, ...
3
votes
1answer
52 views

No font on axes in Plot3D graphics

I am running Mathematica on Linux (Raspbian to be exact), and it seems I am missing some Mathematica fonts: Is there a way to fix this?
1
vote
1answer
51 views

Plot mysteriously not working [closed]

I'm running this code to plot an equation but it simply won't work ...
1
vote
1answer
79 views

How do I place points along the curves in a plot?

I'm trying to place points on these functions ...
9
votes
3answers
452 views

Changing the atom color for plotting xyz-files

Mathematica takes the standard color code for atoms when plotting an *.xyz file, but I want to customize the color for the specific atoms. I really become desperate as I did not get it so far. ...
0
votes
0answers
23 views

Evaluating UnitConvert inside LogPlot

I imported several Physical Quantities with their units and doing single calculations with them works fine and return the right unit, which I can change by UnitConvert[]... For the LogPlot I made a ...
0
votes
1answer
34 views

Differentiate contour color based on different functions rather than the contour values

I'm plotting contours by replacing different set of parameters into a ParametricNDSolve result. For instance I have three different sets of parameters {n,m,Ea,LogZ} that will be replaced into the ...
14
votes
2answers
210 views

Possible bug in ListLinePlot

Bug introduced in V8 or earlier and fixed in 10.4 Take a look at the first two points on the chart: ListLinePlot[{15, 30, 32, 33, 34, 35}, Mesh -> All] I ...
21
votes
1answer
193 views

Wrong labelling of contours with ListContourPlot

Bug introduced in 8 or earlier and persisting through 10.4.1 Consider this example: ...
0
votes
2answers
79 views

BarChart with error bars

I need to plot BarChart with the error bars. What's the most straightforward way to do it?#plot range from 8 to 10 {8.5,8.6,8.9,9.5} and error bars of 0.1 and labeling of a,b,c and d. Is there ...
1
vote
1answer
64 views

Plotting Invariant Manifolds of the Henon Map

Given the following map: \begin{align} & x_{n+1}=-y_n+2x_n^2 \\ & y_{n+1}=\beta x_n \end{align} for $β \in (0,1)$, $x_n \in \mathbb{R}, y_n \in \mathbb{R}$ (which is a one parameter version ...
3
votes
2answers
109 views

Extracting unknown ColorFunction from Plot, Plot3D etc

I wonder if there is a way to extract existing ColorFunction and "override" it with a new function that will depend on original one. This question discusses ...
3
votes
1answer
165 views

How to set the Arrowheads style in a figure with broken vertical axes

I am trying to combine three separated curves into a same figure. The codes are inspired by another post and answers here. Codes: ...
2
votes
3answers
455 views

How to make this 3-D Plot Transparent?

Basically, I want to make this 3-D Plot transparent. I've already tried Opacity[]. I also want to change its color to e.g. light blue. ...
1
vote
1answer
52 views

Syncing the font of PlotFrame and PlotLegends

I have a problem with the font's of my plots. Whenever I try to plot something the fonts of the plot and the legend are different. I was unable to find whether there is a possibility to change the ...
0
votes
1answer
131 views

“Save Graphic As…” suddenly doesn't work

I suddenly can't create jpegs or pngs using the menu. I have not changed versions or operating systems lately, but the method I've used all along suddenly doesn't work. When I create a plot, ...
-2
votes
1answer
69 views

Plotting 3-dimensional graphs [duplicate]

I just started Calculus 3 and I thought it would be useful to see images of functions to get used to the transition of visualizing in 3-dimensions. I was wondering how one would go about plotting a ...
39
votes
7answers
3k views

How to plot contours on the faces of a cube

I'm trying to plot contours of a function f[x,y,z] on the faces of a cube as the example below, which represents the domain of this function. Is there a way to do ...
-1
votes
2answers
81 views

Scaling a the plot of a specific function in a plot [closed]

the following plot is nearly perfect but there at least two question that I would ask? 1) is there a way to rescale the P1 function in such a way that the maximum appears in the graph. 2) I have not ...
0
votes
1answer
63 views
43
votes
2answers
3k views

How to make this beautiful animation

How to make an animation of following gif in Mathematica? Edit: The animation shown above was created by Charlie Deck in processing. And how to make 3D analog? I tried first few steps ...
0
votes
1answer
51 views

Simulating a Boolean model in a uniform square

I am looking to simulate a Boolean model with specified Poisson point process. ...
21
votes
4answers
4k views

Making Axes logarithmic in 3d plots

I've been trying to get loglog plots in 3D, but to no avail. My initial approach was to take the logarithm inside the plot i.e ...
0
votes
1answer
32 views

NDSolve point animation not working [closed]

The below code plots the path of a ball bouncing but loses 90% of its velocity each time it bounces. (adapted from https://reference.wolfram.com/language/ref/WhenEvent.html). ...
0
votes
1answer
94 views

Plotting graphical analysis of chaotic behavior

I am trying to plot some results of chaotic behavior in a system based on a paper for one of my classes. I am a physics undergrad. I found some sample code online springy.nb which I have been trying ...