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

learn more… | top users | synonyms (11)

23
votes
5answers
4k views

Make a beautiful Moiré effect

How do I make the following Moiré pattern? I tried: ...
0
votes
2answers
58 views

Using result of Solve as plot parameter [closed]

Recently I have faced a problem I would appreciate it, if you helped me I have the following code in Mathematica I want to plot a function let say z * 10 * t where ...
3
votes
2answers
110 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 ...
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. ...
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 ...
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 ...
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
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 ...
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
77 views

Help on order of evaluation within plot function

it is my first time asking a question here so please let me know if there's anything I should be doing that I'm unaware of. I'm sure the answer to my question already exists on the site but I'm having ...
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. ...
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). ...
-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 ...
3
votes
3answers
176 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 ...
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 ...
1
vote
2answers
81 views

How to reverse values of x along x-axis [duplicate]

I have the following function to plot F[x_] := 0.00150614 Sqrt[1/x] I know Mathematica plots in a format ...
0
votes
0answers
23 views

Why are the graphs differently colored? [duplicate]

Why is there a difference in coloring the graphs? Plot[{1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, {x, 0, 2 \[Pi]}] Plot[Range[10], {x, 0, 2 \[Pi]}]
0
votes
2answers
65 views

Mathematica flip the axes ticks (negative values) to other side

I have a plot as shown, I want to change the axes ticks of the negative values as shown below, I went through this post and with this answer, I am able to do only for Y-axis. Can someone please ...
0
votes
1answer
52 views

Parametric plot

I want to plot x = u Cos[Phi] + v Cos[(u Phi)/v] and y = u Sin[Phi] - v Sin[(u Phi)/v]in a parametric graph for ...
3
votes
0answers
45 views

Is there a 3D version of ListStreamPlot[] (analogous to ListVectorPlot3D[])

Is there is straightforward way to visualize streamlines given a series of discrete samples of a 3D vector field? There is a generalization of ListVectorPlot --> ...
0
votes
1answer
95 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 ...
-2
votes
1answer
39 views

Plotting output in two columns beside each other from a for loop [closed]

How can I have the output plots in two columns instead of having the plots in a sequence? Like the following: []
0
votes
0answers
39 views

Using previous outputs and equations for 3d plots

I am extremely new to Mathematica, and am trying to obtain some plots for my research work. I need to find the roots of a polynomial, and using the roots individually, I need to obtain another ...
1
vote
1answer
333 views

Plot a alphabetic character in 2D

I was wondering how I can graphically plot an alphabetic character, for example D, in 2 dimension, using mathematica? I was using ListPlot with specific x and y values but it's not looking anything ...
0
votes
0answers
37 views

Handwritten style in Mathematica [duplicate]

Following image is from the Wolfram alpha How can I do this in Mathematica?
1
vote
3answers
61 views

Plot: Option MeshStyle: color rotation matching PlotStyle color rotation

This is a follow up question to plot: option plotstyle: start with second color in standard rotation I want the mesh points to have the same color as in PlotStyle ...
1
vote
2answers
60 views

How can I use the option PlotStyle to start plotting with second color in standard color rotation?

I would like to plot several functions in one plot and start the standard color rotation (ColorData[97, "ColorList"] // InputForm) from the second color and go on ...
1
vote
0answers
46 views

Why does ContourPlot refuse to draw all 4 quadrants whenever fractional powers are in the implicit function? [closed]

I would like to plot the astroid which is given by: $x^{2/3} + y^{2/3} = 1$ When I use ...
0
votes
0answers
36 views

Graphing/Plotting multivariate profit function with inequalities

I have the following profit function which I would like to 3Dplot in Mathemathica: Profit = (8c^2-16c*s-10c-4s-3)/(32s+16) , where ...
1
vote
1answer
119 views

Plotting open balls for the given metric spaces [closed]

We're given a metric space (R,d) defined as follows: $$d(x,y) = |x-y|$$ We need to draw a open ball for this metric space with centre and radius of our choice. Open ball definition: For a fixed $x$ ...
2
votes
1answer
100 views

How to add color to a knot

Is there a way to use a colorscheme to a KnotData image? One way is probably convert it to a parametric form and then use ...
3
votes
1answer
43 views

MatrixPlot ignores ColorFunction for 0 matrices

I noticed that when plotting a matrix with custom color function there seems to be a special behavior for matrices with just 0's. In this case the plot is simply white. If there is one non-zero ...
2
votes
1answer
56 views

Evaluation of FilterRules inside a Module

I'm trying to customize a plot function according to this code ...
1
vote
1answer
61 views

Extract data from contour [duplicate]

I have a ListContourPlot, and I'm interested in extracting the data of one of the contours. Here is an example and I highlighted the contour that I would like to extract the data from: ...
-1
votes
1answer
46 views

How to graph the max and min values of a sheet?

Hi I just start working in Mathematica version 10.3.1 and I want to graph a sheet of data that I created in Excel (yeah i use Windows). The problem is i have so many data; 200 columns and 50 row of ...
15
votes
4answers
941 views

Can you plot pure function without specifying variable?

Given a pure function, e.g. f=Sin[#]&, it is possible to plot it with introducing an arbitrary local variable, e.g., ...
3
votes
2answers
95 views

Randomly oriented ellipses in rows and columns

I should plot randomly oriented ellipses in rows and columns, at fixed nodes. Some rows should be grey, some black. Result should look like the following image (texture drawn by hand): I moved from ...
1
vote
0answers
24 views

Size and Aspect ratio of exported EPS/PDF and embedding in latex documents [closed]

I've tried to produce figures in Mathematica that have a size consistent with the need of a Latex document. Using a resolution of 72dpi I could produce this the black box is 8.22cm x 5.08cm in a ...
0
votes
0answers
45 views

Constant Strings?

I am writing a workbook to compute double integrals, and in order to graph the function in polar/cylindrical form, I have to make a substitution in the original formula. How can I have the original ...
0
votes
5answers
88 views

labeling ListPlot data and drawing vectors

I would like to plot these x,y data: ...
0
votes
1answer
31 views

How to assign arbitrary values to frameaxis of a ListDensityPlot

Maybe the question is stupid or already has been asked, however, I cannot find an answer while searching Q&A. Assume you have a Table[x*y,{x,1,4},{y,1,4}] ...
7
votes
1answer
331 views

plotting 3D image for the “grazing goat and silo” problem

I am looking for the code to generate a 3D graphic with this area rotated around its PQ-axis: The red circle represents a silo centered at point P. A goat is tethered at point Q on the edge of the ...
-1
votes
1answer
64 views

How to `Manipulate[]` Particles in a Box

so here is a set of data. set_of_particles_data here is the code with return some error. it said cannot combine the Graphics. first i copy and paste the data and save it as data.txt. how can i ...
3
votes
1answer
74 views

How to color the exterior of a region in a `RegionPlot`?

One can color the interior of a region by ColorFunction. But how to color the exterior of a region of a RegionPlot (I want to ...
0
votes
1answer
41 views

ContourPlot of an Implicit Function with a parameter

Is it possible to use ContourPlot for an implicit function when another parameter is changing. To be more precise, suppose we have a function of the form F[x,y,z]. Now for a fixed value of z=z1, we ...
1
vote
1answer
84 views

Plot a line passing through two given points in 3D space

How can I plot straight line passing through two given points in 3D coordinates? For example, given the points M1: (2, -2, 0) and M2: (1, -3, -5) ...
6
votes
1answer
112 views

Animate the line integral over a scalar field

There is a gif from Wikipedia, The line integral over a scalar field $f$. How to plot and animate this in Mathematica?
2
votes
1answer
57 views

Different fonts in the same Style in a Plot

I have a plot, not important what it is and I have a linelegend as below: ...
0
votes
1answer
45 views

Plot bivariate data with marginals using Graphics3D [duplicate]

I have some 2D data (a load of random walks) that I would like to show using a bivariate line plot with marginals attached (I would like the output to look similar to that in this question.) The ...
8
votes
1answer
436 views

What is going on in this plot?

Plot[{ArgMax[Cos[t] Sinc[2*Pi kl (Sin[t] - 1/Sqrt[2])], t]*180/Pi, 45}, {kl, 0, 10}, PlotRange -> Full] I want to know what causes this, and how to fix it ...