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

learn more… | top users | synonyms (4)

1
vote
1answer
81 views

Plot multiple solutions [duplicate]

I want to plot multiple solutions of an equation, so that one can differ them in the plot. The given equation is e.g. ...
0
votes
0answers
66 views

How do I use an offset with Parametric Plot?

This is a line of code from a Mathematica demonstration called "Coupler Curves of a Four-Bar Linkage". ...
2
votes
2answers
144 views

Cumulative histogram with log-log scale

How to do a cumulative histogram on Mathematica on a log-log scale? This question is pretty straightforward, but a search didn't help me at all. Keep in mind that all I have is a list of n numbers ...
0
votes
0answers
37 views

Direction of change plot in 2 images taken from video

I have two successive images from a video and I would like to plot the largest direction of change from the first image to the second image as a vector plot. For example, if image 1 was ...
2
votes
1answer
79 views

plot the numerical value of the average on a BoxWhiskerChart

Im using BoxWhiskerChart to get a boxplot of a matrix of two columns. I need to read the value of the sample average directly from the plot and not from the axes. ...
20
votes
3answers
1k views

Is it possible to draw really thin lines in Mathematica?

I want to have in Mathematica the same result I have in Python: I have this nice effect simply by using very thin lines. But it seems in Mathematica thickness property has some limit and i just got ...
1
vote
0answers
95 views

Plotting phase portrait from NDSolve (i.e., must plot x'[x], where $x=x(t)$)

I'm doing a double pendulum system and I wish to plot the phase portraits for each angle. I've successfully used NDSolve to solve for each of the angles. Let's just ...
4
votes
1answer
114 views

Can anyone help me to get the solution of this first order ODE?

$\ y'(x)=-\sqrt(y(x)^3)$ with initial condition $\ y(0)=-2$. In fact, this is an example here in page 3-4 ...
2
votes
2answers
135 views

How do I add contour labels to contour plot?

I tried ContourPlot[f[x, y], {x, -2, 2}, {y, -2, 2}, ContourLabels->automatic] , but it messes up the contourplot. How can I just add values to the contours ...
1
vote
1answer
53 views

Plotting ODE solutions with two parameters

I have a system of two first-order ODEs with two parameters, a and b and I'm trying to plot the solution curve in the X-Y plane at a given initial condition for various parameter values. Can someone ...
2
votes
4answers
146 views

How to create 3d region of f[x,y] over triangular region on xy plane?

I need to create a VOLUME under f[x,y]= x (y^3 + 1)^(1/2) that's above the triangular region bounded by y=x/3, ...
5
votes
2answers
145 views

Filling the empty space in RevolutionPlot3D

I'm wanting to plot the solid of revolution from the area between two functions such as: $1\leq x \leq e$ and $1 \leq y \leq 2 + ln(x)$, doing something like this: ...
0
votes
1answer
78 views

Problem with DensityPlot Plot3d of Heavisde function

I have problem with heavisde pi or theta function. When I plot them densly i.e. w[x,y] like this w[x_, y_] = Sum[HeavisidePi[x - i/100], {i, 1, 200}]; I get ...
2
votes
1answer
144 views

Copying each object in a plot separately as an image

I would like to copy a plot from Mathematica as an image, into a PowerPoint slide. This plot has two curves. When I try to do the (naïve) usual "copy graphics" and paste, I find the full plot (along ...
17
votes
3answers
722 views

How to make a pie chart using custom image

Can we make a pie chart using a custom picture? For example, consider this image of one cent coin: I would like to use this image and cut pieces out, depending on data, and also make a clickable ...
2
votes
2answers
143 views

Parametric contour plot?

I am trying to plot a contour of a function g(x,y) (in particular, the contour g(x,y)=1) on a different set of axes than (x,y): I want to plot it on (f1(x),f2(y)), where f1 and f2 are (monotone ...
1
vote
1answer
82 views

List(Line)Plot with a big jump

I am trying to plot a joined plot. Some possible ways would be ListPlot with Joined -> True or ...
1
vote
0answers
48 views

Align a plot with other rotated plot

i'm plotting two plots one of them is rotated 90º and has no axes labels, so my problem is that when i plot them together in a row the alignment options bottom top align the top to top or bottom to ...
0
votes
1answer
65 views

ColorFunction that depends on angle of line

I have a ListLinePlot, and I want the ColorFunction to vary as the angle, so that the color of the whole line depends on its angle from the x-axis. Here is a MWE of what I am doing: ...
45
votes
4answers
3k views

Plot draws list of curves in same color when not using Evaluate

This example comes from the Mathematica documentation for Plot under Basic Examples. Can someone please explain why these are each plotted as a different color in ...
11
votes
2answers
797 views

How to vary color of fill between listplots based on y-distance between them

I have two lists with the same x-values but different y-values. I have used ListPlot to plot and fill the space (line) between them; however, I would like the color ...
7
votes
1answer
490 views

Filling only when one curve is below the other

I want to fill the area between two curves only when curve-1 (Black) is below curve-2(Blue). So In this example, I don't want the middle portion shaded but just the left and right tails to be shaded. ...
6
votes
3answers
254 views

“NotAvailable” and “NotApplicable” data points returned by WeatherData[]

I am trying to use ListVectorPlot in combination with WeatherData and CountryData to show ...
17
votes
1answer
370 views

How to write Morse code into Plot Dashing?

How can we define a dashing pattern in a plot such that it reads arbitrary text in Morse code? For instance Graphics[{DotDashed, Line[{{0, 0}, {5, 0}}]}] ...
2
votes
1answer
64 views

Multiple dynamic equations for plotting?

Say I have a bunch of equations between variables e.g. h=bcd, i=hce, j=ihbd, ...
-1
votes
1answer
60 views

Help with the plot f(x)=2ln(-0.5x+2)-1 [closed]

I don't know how to write equation in the notebook. The graph doesn't appear when I tried.
-1
votes
1answer
52 views

How can I graph the polynomial function? [closed]

There is no explanation for the polynomial function. The equation is f(x)=-2x^2-4x-3.
1
vote
0answers
41 views

The use of Evaluate in NDSolve and Plotting the answer [duplicate]

I am having a bit of hard time understanding the use of Evaluate when plotting the output of NDSolve. From the documentation, I enter: ...
1
vote
1answer
77 views

Make plots of solutions persist

How can the code below be modified so that at allow plots of solutions to persist upon clicking in the slope field. For example, after three clicks, the plots of all three solutions should remain. In ...
8
votes
0answers
87 views

Is plot polluting my context?

Whenever I plot something 3 temporary variables get added to my current context. Example (fresh Kernel): Plot[x, {x, -1, 1}]; Names["Global`*"] Output: ...
4
votes
2answers
114 views

How to plot a function that is not defined after certain point

I'm plotting a function that I get after numerically integrating over another function. Something like: f[x_,y_]:=NIntegrate[g[x,y,z],{z,0,1}] I know that above ...
1
vote
1answer
321 views

Solving a complex-valued differential equation with NDSolve

I am trying to solve $dx/dt=\sqrt{1+(ix)^{1.8}}$ for initial condition $x[0] =-0.9877 + i 0.1563$, where $x$ is a complex variable. I would like to plot the imaginary part of the solution versus the ...
1
vote
1answer
98 views

How to plot curves in ternary plot (triangular plot) [duplicate]

I need to plot the following curve in a triangular (ternary) plot: $$|x_{BB}-x_{AA}|=(\sigma_c-2x_{AB}+1)^{\gamma}, \qquad (1)$$ subjected to the condition (this condition must satisfy for a ternary ...
0
votes
0answers
19 views

Different color for plots inside manipulate object [duplicate]

I want to plot two functions in the same plot (meand and approxmean) with a different color. When I place the plot commands outside of the manipulate and grid region they are colored differently but ...
2
votes
0answers
93 views

A counterintuitive RegionPlot behavior [closed]

The region between a straight line and a hyperbola in the fourth quadrant is not shown by the RegionPlot: ...
0
votes
1answer
44 views
3
votes
2answers
140 views

How can I best plot timestamps by frequency-to-date?

I have a site called Sudomemo. I record when I first see a user in the database; and I've exported it in JSON format, located here. http://www.sudomemo.net/statistics/firstSeenDump.php I've done ...
1
vote
1answer
43 views

How to exclude a region from ParametricPlot

Suppose I have functions f[x] and g[x] which are defined in the region 0 ≤ x ≤ 1 and ...
4
votes
1answer
754 views

How do you export the result of a RevolutionPlot3D to STL for printing?

How do you export the result of a RevolutionPlot3D to STL (STereoLithography) file format for printing? I am a tyro when it comes to 3D rendering and printing.
6
votes
3answers
565 views

Plot3D in Mathematica: how to plot in presence of parameters

I realize I the earlier question was ill-posed. To clarify: I am trying to find the values of $A$ and $B$ that will maximize a function f on the domain ...
3
votes
3answers
159 views

How to detect outlier in data of an unknown function $f(x)$

Suppose I have an unknown function $f(x)$ that is monotonic, convex and nonlinear by definition. I somehow evaluated it at 1000 nonuniform $x$ points. By ploting these data, I found a very obvious ...
2
votes
1answer
63 views

White region in ContourPlot

The following code ContourPlot[Min[(-7 + 100 t - x) (5 + 100 t - x), (400 t^2 + 40 t (-5 + x) + (-5 + x) (7 + x))], {t, 0, .05}, {x, -1, 5}, PlotRange -> All] ...
3
votes
2answers
87 views

Label rows and columns of an ArrayPlot?

Is it possible to label the rows and columns of an ArrayPlot? I have a somewhat large matrix, about 90x90. The rows and columns of this matrix have names. I want to plot this matrix using ArrayPlot, ...
0
votes
1answer
94 views

How can I plot a large number of functions and use a “…” to signal more inbetween? [closed]

So I want to plot x+1, x+2, X+3,..., x+50 on a single figure. So I tried Plot[{x+1, x+2, x+3, ..., x+49, x+50}, {x, -5, 5}, PlotLegends -> "Expressions"] ...
5
votes
0answers
65 views
-2
votes
1answer
48 views

Graph Power Series

On the same axis, graph the function f(x) = e^x and its first 6 Taylor polynomials. Please tell me how to complete this. I have tried the plot function but it's not working.
1
vote
1answer
53 views
0
votes
2answers
56 views

Show legend on plot [duplicate]

I have a series of curve I'm plotting using ListPlot. For each plot I'm changing a variable called X. Is there anyway I could ...