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

learn more… | top users | synonyms (5)

3
votes
2answers
93 views

Plot 2d-ItoProcess data in a plane

I am trying to simulate a simple 2d Ito SDE (randomly perturbed Hamiltonian system). Below is the code. ...
1
vote
1answer
73 views

How do I create a histogram of the binomial distribution for, say, p=.5 after 10 trials?

I apologize if this is question is too simple, if so it's because I'm a beginner. Anyway, it was easy enough to create a list plot, but I couldn't find out how to create an output that displays the ...
1
vote
2answers
39 views

BoxWhiskerChart Vertical Line

I have made a box plot to show the spread of past paper results for my A2 exams so I can easily see which subject need more work! ...
1
vote
3answers
102 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 ...
2
votes
2answers
58 views

How do I execute a block of code multiple times? [closed]

Rudimentary pseudoconceptial question: I have a specific block of code that uses random variables and generates a plot at the end based on random code. I want my code to run 10 different times to get ...
-2
votes
2answers
49 views

Vary the color of a 2D scatter plot [duplicate]

This is what I want. I want to change the colors as I progress through a list.
6
votes
2answers
97 views

Why does PlotRange in DensityPlot have no effect

It looks like DensityPlot and ListDensityPlot automatically clip the plot range to the min and max value of the data, when ...
1
vote
1answer
45 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: ...
5
votes
1answer
164 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 ...
0
votes
0answers
53 views

Convolution of Airy disk and Gaussian function

I would like to plot the convolution of an Airy disk, [((2*BesselJ[1, x])/x)^2] and a Gaussian function [Exp(-(x^2)/(2*c^2))]. ...
1
vote
1answer
72 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
3answers
79 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 ...
0
votes
0answers
11 views

Logarithms of different bases in TraditionalForm [duplicate]

Is it at all possible to have Mathematica express logarithm functions not in base $e$ using TraditionalForm? Currently, I have the graph of the function $-\dfrac{1}{2}\log_4\dfrac{x}{3}$, but ...
2
votes
1answer
61 views

Plot a function with a discrete part

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

Scatter Plot of Lists

This is very similar to Make a scatter plot from two lists I have executed a = Import["file.csv"] b = Import["file2.csv"] and now have a {{1,2,3}} and b ...
0
votes
0answers
41 views

RegionPlot problem: bug or mistake?

The following produces a plot that looks reasonable: RegionPlot[0 <= (x x - y y) (10000.0001) + 31250 <= 2027910.624, {x, 0, 700}, {y, 0, 700}] (The ...
9
votes
4answers
352 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 ...
21
votes
2answers
503 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
75 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
50 views

Clicking on a point on a plot

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 ...
11
votes
1answer
148 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 ...
1
vote
2answers
82 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 ...
1
vote
1answer
146 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 ...
4
votes
1answer
122 views

The default ColorFunction of DensityPlot before v10?

The default ColorFunction of Plot, Plot3D before v10 is respectively mentioned here and ...
0
votes
1answer
81 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: ...
2
votes
1answer
62 views

Imaginary terms in the derivative of Jacobi theta function (2) on the real line

I am trying to calculate/plot the derivative of the second Jacobi theta function $d\theta_2(0, e^{-\pi t} )/dt$. Calculating or plotting the function itself works fine: ...
0
votes
1answer
90 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 ...
7
votes
3answers
178 views

How to combine ParametricPlot and RegionPlot?

I have two implicitly defined equations. I plot the implicit curve using parametric plot. ...
4
votes
1answer
143 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 ...
0
votes
1answer
29 views

TicksStyle in RegionPlot

How does TicksStyle work in RegionPlot? The below does not work: ...
2
votes
1answer
78 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, ...
1
vote
3answers
189 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
46 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. ...
1
vote
2answers
120 views

Using Placed with Show - the simplest solution to move the legend around?

Please let me know if this is a duplicate. There are some solutions, but I think there must be something simpler for this kind of situation. ...
1
vote
2answers
72 views

Table of ParametricPlots crashes Kernel

I can usually crash the Mathematica Kernel by using Table to generate a List of ...
1
vote
1answer
434 views

Plotting Fresnel function

I am trying to plot the partial sums and the Cesàro means of the function $\sqrt{|x|}$ and for $a_{n}$, I obtained the following code which contains FresnelS. ...
7
votes
1answer
111 views

Highlight selected points in a plot

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

How to export plot legend independently?

Let us take an adapted example from Mathematica doc's: ...
0
votes
0answers
40 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: ...
1
vote
1answer
72 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 ...
4
votes
2answers
89 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
79 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
77 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
22 views

Some strange errors by using 'ContourPlot' [duplicate]

I try to plot the following: ContourPlot[Cos[x]^4 + Sin[x]^4 + 2 Cos[x]^2 Sin[x]^2 Sin[y]^2 == 1, {x, 0,10}, {y, 0, 10}] If I do so, I get: When I change now ...
0
votes
1answer
48 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: ...
4
votes
2answers
140 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
54 views

Plot zero contour of a function of two variables

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
45 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 ...
4
votes
2answers
119 views

Labels strangely rendered in PDF

I'm new to Mathematica so I apologize if this is obvious to answer. Anyway, using the following code (most of it is extraneous, to make the plot look the way I want) I plotted the Morse potential, ...