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

learn more… | top users | synonyms (12)

0
votes
1answer
123 views

Given $y$, find the $x$ value of a point on a Bezier curve

I have linear equation of Bezier curve with one control point: f[x_] := (1 – t)^2 x0 + 2 (1 – t) t x1 + t^2 x2; f[y_] := (1 – t)^2 y0 + 2 (1 – t) t y1 + t^2 y2; ...
2
votes
0answers
51 views

Help with GeoRegionValuePlot

I am trying to get a map with 4 colors, I have several regions with values from 0 to 3 and I want to color those regions with value 0 in white, with value 1 in yellow, with value 2 in orange and with ...
3
votes
0answers
34 views

How does ContourDetect work for arrays?

By the Wolfram Documentation, ContourDetect gives a binary sparse array in which 1 corresponds to zeros and zero crossings in an array. However, in the example: ...
1
vote
1answer
113 views

How to draw a certain PDF

Here Dist is the PDF. I need to draw it. Can someone suggest me a way to do it? ...
1
vote
2answers
89 views

ListPlot with many variables

If I have a function: f[x_, y_, z_, d_] = 4 x + y + z + d; and made lists for f for different values of the free parameters x,...
0
votes
1answer
85 views

How to make RegionPlot for lists of points

Suppose I have the following function: DC[x_, y_] := 3 x - y sigma[x_, y_, z_, d_] := 3 DC[x, y] + 5 z + d I made list of ...
1
vote
1answer
30 views

Correct range for X-axis in ListLogPlot

There must be a quick solution to this problem: How do you get the correct range for the X-axis. Attached below is the code: ...
2
votes
2answers
130 views

Plotting logistic maps

I have a question about plotting in Mathematica in general, and this particular recurrence relation as an example: $\qquad x _{n+1} = rx_{n}(1-x_{n})$ How can I plot the following plots as shown ...
1
vote
0answers
25 views

How to customize the order of leaf labels in a dendrogram plot?

Take the following simple case as an example: Needs["HierarchicalClustering`"] SeedRandom[99]; Sort@RandomInteger[99, {10}] gives {2, 7, 22, 34, 42, 58, 60, ...
1
vote
2answers
61 views

fail to export the 3d figures in eps form correctly in the 10.4.1.0 version

I'm experiencing some strange problem, which is, when I try to export a figure to the eps form, either by right-click save as, or by the export command, the obtained .eps file seems in fact not to be ...
1
vote
0answers
28 views

Why is SliceDensityPlot3D leaving out sections that DensityPlot gets? [duplicate]

My program uses NDSolveValue to solve for a 3D function. The code is pretty hefty so I've pasted it here, and I'm just including the really relevant excerpts of it below. Once I have my 3D function, <...
3
votes
1answer
154 views

Exclusions in plot not rendered correctly [closed]

I have been struggling with these glitches for two days... A related question I asked is here How to eliminate the white gaps in the graph Here is the code, ...
12
votes
0answers
228 views

Plotting extra parametric axes [closed]

We are trying to plot a figure as below from data points. This version is a postprocessed plot (in Illustrator) just to obtain the skew axes. The rest is plotted with ...
2
votes
2answers
68 views

How to rotate AxesLabel

i was wondering how it is possible to rotate the axesLabel of a Plot in Mathematica. Specifically i want to rotate the Label of the Y-Axis so that it shows up next to the axes to use up less space. ...
1
vote
0answers
59 views

Using RegionPlot to create letters

I unified several regions in order to create a simple word : ...
0
votes
1answer
59 views

How to draw a contour line that intersects with a specified line (perpendecular to xy plane)?

Assuming I have the 2D scalar field $f(x,y)$ and I want the contour line of $f$ that intersects with the line $x=2,y=3$. How can I do that? At further steps I want the equation for that contour line....
1
vote
0answers
36 views

How to invert an Elliptic function where the elliptic nome is a function of an independent variable?

I have a Jacobian elliptic function as a function of two independent variables $x$ and $y$. The elliptic parameter $m=m(y)$, $0 \leq m \leq 1$, is also a function of the variable $y$, and thus the ...
1
vote
1answer
65 views

How to show an angle axis in a RevolutionPlot3D plot

I want to make a RevolutionPlot3D of a three dimensional wave-function which is defined only between two radius. I work in cylindrical coordinates. The idea is to ...
0
votes
2answers
58 views

Grid: How to assign a common legend to multiple plots?

I made four plots, named Fig1~Fig4. Then I used Grid to put them together in one figure. Now I wish to add a legend in the bottom of the last figure. ...
3
votes
0answers
94 views

Check Zagier theorem about Mahler's measure

I want to check the following theorem by using Mathematica: (from Heights of Polynomials and Entropy in Algebraic Dynamics, page 22) $\textbf{Theorem}.$ Let $\omega$ denote a primitive $6th$ ...
12
votes
2answers
656 views

Joining points into 3D surface

This seems like a simple problem, but I can't find any questions like it here so I'm making a new one. Apologies if I missed one. I have a list of points contained in a file which can be visualized ...
0
votes
1answer
96 views

Find the equation of the parabola and sketch the graph [closed]

Consider the following information: A quadratic function with equation $f(x) = ax^2+ bx + c$ passes through three points, $A(-1,-1), B(1,-7)$ and $C(3,3)$.
2
votes
1answer
179 views

How would one plot a multivariable function over several disjoint domains?

I would like to plot Scherk's first surface which is defined on a checkerboard of the plane, e.g. $-\frac{\pi}{2} < x < \frac{\pi}{2}, -\frac{\pi}{2} < y < \frac{\pi}{2}$ and $\frac{\pi}{2}...
3
votes
0answers
68 views

Plotting positive function … looks like it goes negative

I recently answered a question on the stats SE site which involved a $\text{Sinc}^2$ distribution with pdf: f = (Sin[x]^2)/(Pi x^2) ... defined on the real line. ...
1
vote
1answer
117 views
9
votes
2answers
141 views

Inscribed square problem

There is a well-known unsolved problem in geometry: $\textbf{Toeplitz' conjecture}:$ Every continuous simple closed curve in the plane contains four points that are the vertices of a square. ...
3
votes
1answer
70 views

ListContourPlot3D is blank

I want to do a ListContourPlot3D. The list of data is as follows ...
2
votes
2answers
96 views

Change or force plot legend marker symbols

I am wondering if there is a way to force the plot legend symbol for each respective plot. I am currently using a package created by AlexeyPopkov, which corrects the off-centre plot marker issue very ...
3
votes
1answer
106 views

Plotting huge amount of data with non-default colour function

I want to plot a huge amount of binary data (a 2700x2001 matrix, 5402700 points), and for that I am using the Graphics[Raster[]] function. With just that command, ...
1
vote
2answers
67 views

Avoid white area on contour plot [closed]

I am trying to plot contour plots and some of them show a white patch because of a change in sign of the points plotted. How can I make the contour plot show this change in sign without having to take ...
3
votes
1answer
85 views

Complex Plot with Imaginary Part encoded in color

Heyhey, I wanted to plot the complex cosine in a 3D graphic where the real part is given by the surface, while the imaginary part shall be indicated by the color. Therefor, I tried the code ...
0
votes
1answer
79 views

Plotting the modular surface of a complex function [closed]

Tristan Needham stated in the introduction to Visual Complex Analysis that he used Mathematica to create the majority of graphs in his book. I'm trying to recreate the graph he made for figure[14] of ...
1
vote
0answers
27 views

Remove surface from graphic [duplicate]

How to remove surface from the following graphic? I need only Mesh, (black lines). ...
53
votes
7answers
5k views

How to plot Venn diagrams with Mathematica?

How does one plot Venn diagrams with Mathematica? I've searched quite a bit and I've found one source at MathWorld which provides the source code for doing them. But I don't understand this code, can ...
3
votes
4answers
197 views

Plotting the solution of $\sin(x)\sin(y)$ + elliptic cylinder

I have a problem with one of my school project :( I need to add function: $\sin(x)\sin(y)$ to elliptic cylinder $\left(\frac x a\right)^2+ \left(\frac y b\right)^2 = 1$ After few hours, only this ...
0
votes
1answer
64 views

Clothoid (using Fresnel Integrals) [closed]

A clothoid is represented by The Problem Given the following functions, use Mathematica's Fresnel Integrals to plot the curve. My Attempt ...
3
votes
2answers
56 views

Text Offset Question

There is an absolutely wonderful answer by Heike at Generate a Unit Circle Trigonometry. It is an answer that will lead me to a lot of learning. Here is my playing with her code: ...
6
votes
2answers
1k views

Interactive 3D plot in web browser?

Are there any ways to show a mathematica plot in a web browser so that the user can rotate it and such? I am open to embedding it in a web page - or some other method such as porting it to a ...
1
vote
2answers
73 views

Placing a label at a point [closed]

I am a rookie in the use of Mathematica. How do I place a label next to the point where two lines intersect? ...
1
vote
1answer
34 views

Plotting x value and error bar in y from a data file

Here are some of the points where first column is the values on x axis and the other two values are lower and upper limits for the error bars in y. ...
0
votes
2answers
127 views

make a surface plot that changes with time from csv data

How can I plot 4d data from a csv, using a slider for the 4th variable? I would like to use var1 and var2 as x-y corrdinates, var3 as surface height, and var4 as the time slider. If I have a csv <...
1
vote
2answers
54 views

DiscretePlot: differentiate without using different colors

I need to plot multiple series in the same figure. As the picture will be printed in white and black only, how can I differentiate these series so that readers can identify them from each other? ...
0
votes
0answers
15 views

Problem with PolarPlot and Table [duplicate]

If I have a set of numbers, for example grid = N[Table[n^2/2, {n, 3, 24}]] And want to plot that as circles I can either use Graphics[] and Circle[], or ...
27
votes
2answers
4k views

Joining and interpolating data points

I wonder what is the best practice for interpolating curves? Usually, I'm using BSplineCurve and adjusting SplineWeights so it ...
0
votes
0answers
38 views

Plot markers appear off-centre [duplicate]

Before I start I should mention that this question has been posted in another form here, Point Renderings Slightly Off in Mathematica. However my case is slightly different in that I do not use ...
1
vote
2answers
92 views

how do I 3D Plot f(x,y,z)=0

I am very new to mathematica and was wondering how I could 3Dplot -5(x-2)-7y+3(z+4)=0 I've tried 3DPlot and Contour but neither have seemed to work. PLease help.
1
vote
1answer
93 views

Fourier transformation of multidimensional list [closed]

x is a list containing 7 trajectories (Dimensions[x] = {2726, 7}) of which I want to calculate the FFT. ...
1
vote
1answer
77 views

How to fill the heart curve with solid red color?

The parametric equation of the heart curve is from this link $$\left\{\quad \begin{array}{rcl} x&=&\cos {t} \cdot\sin {t} \cdot\ln \left| t\right| \\[10pt] y&=&\left| t\right| ^{0....
6
votes
6answers
3k views

How do I fill in a circle made by ParametricPlot with one solid color?

I have a very simple question but I am new with Mathematica. I made a circle on a parametric plot and I made the line black. I want to make the inside of the circle on the parametric plot red. So the ...
5
votes
3answers
120 views

ListPlot of data with small differences [duplicate]

This following is a similar question as plot data with small differences, but I am not able to solve my problem with the proposed solutions. ...