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

learn more… | top users | synonyms (11)

1
vote
3answers
228 views

Rotation of a cylinder around its vertical axis [closed]

I want that that cylinder plotted by RevolutionPlot3D[{Sin[t], Cos[t], u}, {t, 0, 2 Pi}, {u, -10, 0.02}] to rotate around its vertical axis. If possible I want ...
14
votes
2answers
801 views

How to obtain adaptive sampling as in Plot function?

Adaptive sampling in Plot function can capture the oscillation of a function with very few points. How can I get a similar sequence of point pairs without using ...
1
vote
1answer
116 views

How can I plot more regression trend line in the same graph?

I would like to do something like the example I drawed manually: ...
0
votes
3answers
183 views

Revolution of two curves around the y-axis

I've looked through the other posts on rotating a function around the x or y axis and haven't had any luck. my question is this how do i rotate the area between the functions $f(x)=x^2+1$, and ...
1
vote
1answer
138 views

Slow program- Mathematica shuts down

I've been trying to draw dynamic pictures of level sets of certain polynomials. The code right now looks like that : ...
0
votes
1answer
53 views
0
votes
1answer
101 views

Plotting the image of a curve under a complex polynomial using Mathematica

I would be able to plot the image of a curve (say the circle with radius $1$ centered at $1+i$) under a complex polynomial (say $p(z)=z^2$) using Mathematica. I know how to find the level curves of ...
2
votes
1answer
116 views

Plot a function with a discrete part

I would like to plot a function like this one: ...
0
votes
1answer
121 views

Trapezoid approximation to definite integral

this question is related to Basic question on defining more rectangles. I now was trying to adapt the code by MarcoB to get the approxiamtion of the integral by trapezoids, and I used the function ...
1
vote
0answers
62 views

Clicking on a point on a plot [duplicate]

I want to click on a plot and have the pointer snap to the actual curve displayed. I found ways to click any random point on the plot but I want it to only click on actual points on the curve. I want ...
1
vote
2answers
264 views

NonlinearModelFit and plot with multiple parameters function

i ve got quite simple function: $f(t) = x1 * a(t) + x2 * b(t)$ and table of results like this one: t | f(t) | a(t) | b(t) ---------------------- 1 | 2 | 5 | 3 ---------------------- 2 | 4 ...
11
votes
5answers
584 views

Graphically approximating the area under a curve as a sum of rectangular regions

I am completely new to Mathematica. Basically I was trying to write a code to plot a function and draw the approximate area by rectangles. To be more precise, plot a function ...
8
votes
3answers
408 views

How to combine ParametricPlot and RegionPlot?

I have two implicitly defined equations. I plot the implicit curve using parametric plot. ...
0
votes
1answer
73 views

TicksStyle in RegionPlot

How does TicksStyle work in RegionPlot? The below does not work: ...
12
votes
1answer
206 views

Is there a good reason for the removal of this FrameTicks syntax?

In past versions of Mathematica one could use a terse syntax for FrameTicks: {bottom, left, top, right} In 10.1 this syntax is no longer recognized requiring the ...
2
votes
3answers
313 views

Using mathematica to visualise solution of vectors and planes

Im struggling with a question I'm my math book and I wanted to use mathematica to visualise it for me, the problem is that I don't even get something remotely similar to what I was expecting. How here ...
0
votes
1answer
248 views

Solving a system of ode and plotting the nullclines

I have the following problem to solve it is a system of two ode's. I'm given that q=2/Sqrt[1 + 1600 y] and then the ode's are as follows. ...
25
votes
2answers
874 views

Switch from logarithmic to linear scaling partway along a plot's axis

In the 2015 Planck satellite results, they give the latest plot of the temperature power spectrum of the cosmic microwave background, which I show below. (I am only interested in the main plot; you ...
0
votes
1answer
178 views

Quantile-quantile plot [closed]

Am I right that this code: QuantilePlot[data, NormalDistribution[Mean[data], StandardDeviation[data]] will return QQ plot of the sample quantiles of our data ...
1
vote
1answer
476 views

How to plot a 3D surface from an Excel matrix, using column and row headers as axis labels

I am trying to use Mathematica to plot a surface chart similar to the ones that are created from Microsoft Excel. The point is to be able to easily colorize and manipulate the plot by free 3D ...
0
votes
1answer
118 views

Problem with 3D surface disconnections [duplicate]

I have a problem with a 3D surface in Mathematica 10.1. The problem is that the surface comes out disconnected even if it shouldn't. Here's a minimal toy example showing the problem: ...
8
votes
1answer
221 views

Highlight selected points in a plot

I need to change color to selected points dynamically in my plot. ...
5
votes
2answers
249 views

How to export plot legend independently?

Let us take an adapted example from Mathematica doc's: ...
2
votes
1answer
112 views

Interactive level sets of polynomials

I'm new to Mathematica and I need some help with the following problem. I would like given some positive integer n, to have mathematica plot the level sets of a (say monic) polynomial of degree n, ...
4
votes
1answer
527 views

Axis label shifted in 3D plot

Does anybody know why the axis label is shifted in this plot? Probably because of the different lengths of the labels of the ticks? How can I have the axis label in the middle of the axis? The code ...
4
votes
2answers
124 views

HoldForm gives tick labels in Plot without multiplication sign

When plotting in Mathematica, HoldForm[-5*10^6] gives $-5\: 10^6$ as the label of the axis, i.e. without the multiplication sign. How can I get $-5*10^6$ as output? ...
1
vote
2answers
118 views

How to plot a finite number of vectors?

does anybody knows how can I plot one or two vectors? (I don't want to plot the vectorial field)? My target is to plot the electric field produced by a circle on a point and show how the point moves. ...
0
votes
1answer
73 views

Fail to plot this implicit function [closed]

So I need to plot an implicit function and I used the following but ended up with an empty plot: ...
1
vote
1answer
630 views

How to define the step size in plotting some graph in mathematica?

I want to plot some function . The code is given below. f = 10000000; v0 = 8.7; T = 1*(1/f); v[t] = v0*Sin[2*\[Pi]*f*t]; Plot[%, {t, 0, T} ] Now the plot will ...
0
votes
1answer
103 views

Cannot find a way to display an adjacency matrix [closed]

I have a question about face adjacency graphs. Suppose that I have an adjacency matrix How can I plot something like this?? I tried and it looks too messy. What may be the resulting graphic? Thank ...
0
votes
0answers
49 views

Plot with Epilog doesn't show up in Show [duplicate]

I start with: With[{r = 0.3, q = 10}, ans = NSolve[r u (1 - u/q) - u^2/(1 + u^2) == 0, u] ] Then: ...
4
votes
2answers
248 views

Overlapping Spheres with a Shared Blank Region

We have two similar overlapped spheres in a way that the distance between their centers is smaller than the sum of their radius (2R>a). As I show here: Also, we want to draw them in a such way that ...
0
votes
0answers
96 views

Plot zero contour of a function of two variables [duplicate]

I have F[x_,y_] = f(x,y). I would like to solve (numerically) F[x,y] == 0 to give x as ...
0
votes
1answer
60 views

Creating separate graphics

I am using the command lines: data = Import["file*.txt", "CSV"] ListLinePlot[data] to plot lists of points. As you can notice, my file name is ...
1
vote
1answer
437 views

Plotting points from file

How can I plot points (for example {{1 , 1}, {3 , 7}, {5 , 5}}) having as an input a file which contains the points coordinates ? And is there any way to draw a ...
5
votes
2answers
238 views

ParametricPlot3D of Boy's surface

I'm trying to visualize Boy's surface using Bryant's parametrization, as per the MathWorld article. However, I'm not sure I understand the parametrization, and I don't know how to implement it when ...
1
vote
1answer
348 views

Animation of a plane wave

I want to animate in 3D the plane wave $\sin(\omega t+kx+\phi)$, but following the form from the documentation, I can only make $k$ or $\omega$ vary, and I want $t$ to change. How do I do that?
1
vote
2answers
83 views

Table of ParametricPlots crashes Kernel

I can usually crash the Mathematica Kernel by using Table to generate a List of ...
0
votes
1answer
61 views

Solve system of differential equations and show the chaotic behavior of the solutions [closed]

I want to solve a system of differential equations and show the chaotic behavior of the solutions. Here x[t], y[t] and ...
3
votes
2answers
203 views

How can one plot percentage chart of continuous functions?

I know you can plot percentages using stacked histograms like this: ...
2
votes
3answers
310 views

How do I find the area between two polar curves?

More specifically above r=6 and below r=4+4cos(θ) graph of the two curves PolarPlot[{6, 4 + 4 Cos[t]}, {t, 0, 2 Pi}]
0
votes
1answer
150 views

Plotting Minimize output for a range of constraint values

I want to plot the minimum of a function returned by Minimize over a range of constraint values. ...
4
votes
1answer
306 views

How do I produce a BarLegend with the default coloring of a ContourPlot, using Legended?

I have a series of ContourPlots that I want to compare in a GraphicsRow environment. I want to add a single Legend for all three plots. Also, I really like the standard color scheme of the ...
6
votes
1answer
137 views

Axis label obscuring tick label

I have a plot and have applied options to customize the axis labels and ticks. ...
1
vote
1answer
58 views

How to label 3D plot with specific variables

I have a plot of a function depending on two variables called l2 and l3. However, I would like to label the axes of the plot ...
4
votes
1answer
385 views

Lyapunov exponent plot

I am trying to create a Lyapunov exponent plot as a function of $\alpha$ for two functions: $$ f(x) = (\alpha + 1)x - \alpha x^{3} $$ and a piecewise function given by following Mathematica code: ...
0
votes
1answer
210 views

Plotting results of NIntegrate with variable integration limit

I have tried to use NIntegrate with variable limits and compute the following ...
1
vote
1answer
52 views

Issue when using Ticks and Frame [closed]

...
0
votes
1answer
77 views

Animation stays blank during animation

In attempting to answer this question about animating a rolling disk, I constructed a ParametricPlot to Animate. The plot looks ...
1
vote
0answers
69 views

Why are my 3D plots getting inverted? [closed]

For some reason, all 3D plots that I make in Mathematica 9 get inverted in both the image and the axes. For example, using the simple plot: ...