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

learn more… | top users | synonyms (8)

5
votes
1answer
113 views
5
votes
4answers
513 views

How to plot frequency polygon?

I have data sample. Built and plotted histogram based on the sample. How can I plot frequency polygon now? That's example of the desired result. Here is code: ...
4
votes
2answers
356 views

How can I plot histogram with the same number of values in every bin?

For example I have 100 values sample. I'd like to build histogram in which every bin contains, for example, 10 values. How can i do that? Thanks.
1
vote
1answer
184 views

Stream plotting in polar coordinates [duplicate]

I got to a scalar field that really looks just fine to me in polar coordinates. "looks just fine" = all the physical limits make sense. The scalar field in polar coordinates r and θ is: ...
2
votes
1answer
83 views

Plot directional field with a initial vlue

I do not have enough reputation to comment on other questions, hence I have to ask my own one I want to solve the following nonlinear first order ODE, $$(1 + x) (0.5 y[x]^{-0.5} (x - y[x])^{0.5} - ...
2
votes
1answer
186 views

Plotting a pencil of lines

I want to plot a pencil of lines between line1 and line2 using a formula (alfa*(ax+by+c)+beta*(a1x+b1y+c1)), but it doesn't show me anything. ...
0
votes
1answer
108 views

Plot a function based on the value of another function

Could anyone guide me on how to plot the function VR with the values of ρ that I get from solving the following eq. ...
0
votes
1answer
33 views

Dimension of plotting window vs PlotRange [duplicate]

For example, let's say I'm plotting this function, Plot[x, {x,-3,2}]. From the answer to this question the plot range is ...
1
vote
0answers
129 views

Create trading chart from Bloomberg historical data [closed]

I am using Mathematica 9 with the Finance Platform, and have pulled historical data for the Bloomberg Commodity Total Return Index using the following code. ...
1
vote
1answer
58 views

How to transform ListPlot ticks

I am sure that this is a standard question, but I have not been able to find it, either by a google search or by searching here on the Mathematica StackExchange. If I have a list plot defined by: ...
3
votes
2answers
123 views
0
votes
1answer
111 views

Solving and plotting a non-linear and polynomial equations of degree 3 and higher

I'm doing the following and cannot plot the function, could anyone spot a problem please ...
9
votes
6answers
796 views
7
votes
1answer
113 views

How to plot functions with large slope on a compact domain?

The Mathematica command Plot[(1 - r^2)^(1/32), {r, -1, 1}] does not plot the function near the boundary points. That is, the graph does not attain 0 at r = +-1. ...
2
votes
2answers
164 views

Approximation of definite integral by parabolas

This question is related to Trapezoid approximation to definite integral. As promised, I am now asking about how to draw approximation of integrals by parabolas. I tried to modify MarcoB's code, and I ...
0
votes
2answers
68 views

Manipulating a damped oscillator plot - plot does not show

I was trying to make an oscillation plot that could be manipulated depending on the value of $\beta$. The differential equation is below, and when I just plot the solution, it turns out to be the ...
-1
votes
2answers
115 views

How to change the plot range of on an axis other than z in a ListPlot3D [closed]

ListPlot3D[Table[Tan[j i], {i, 0, Pi, 0.1}, {j, 0, Pi, 0.1}]] I want to choose the plot range of y or x-axis so that for example only the right "hill" of the ...
0
votes
1answer
61 views

Compute and Plot the element of a complex sequence

I'm new tho mathematica. I have a complex sequence ${z_n}$ with $z_0:=c$ $z_{n+1}=(z_n)^2+c$ for all $n\in N$ where c is some complex number, I need to plot the first 20 terms of this sequence ...
3
votes
2answers
325 views

Count the number of regions made by Lissajous curve

How many disconnected regions does Lissajous curve divide the plane into? For example: Let g=ParametricPlot[{Sin[2 t], Sin[t]}, {t, 0, 2 \[Pi]}] The number ...
1
vote
2answers
100 views

Plotting a function based of a complicated integral

I would like to have help in making a plot of a complicated function based a definite integral. - desired graph My calculation: ...
0
votes
1answer
235 views

How to plot trajectory for a differential equation in polar coordinates? [duplicate]

I have a differential equation for dr/dt and d[Theta]/dt in terms of r and theta, and I am trying to plot the trajectory in the x-y plane for a given initial condition (r,theta). ...
1
vote
1answer
258 views

Contour plotting temperature data on a hemisphere or circle

(edited question:) I solved the Laplace equation(PDE) in spherical coordinates (in my problem temperature is steady and it is azimuthal(θ) symmetric, so my data is ...
0
votes
1answer
112 views

How to fix the PlotRange?

I have the following plot: ...
0
votes
0answers
46 views

Distorted plot when I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2 together [duplicate]

When I plot Sqrt[4 - x^2 - y^2] and -Sqrt[4 - x^2 - y^2] together,the z axis doesn't have ...
22
votes
4answers
1k views

Hightlight all the self-intersections of a Lissajous figure

This graph–also known as a Lissajous figure–contains so many self-intersections.How can I highlight them? ...
0
votes
0answers
33 views

Frame Tick Labelling in Power Form [duplicate]

Hopefully a simple one for you. I would like to edit the frame ticks on my plot such that they are in "power" form. As it stands I try: ...
5
votes
1answer
149 views

BoxWhiskerChart Notched: how is the notch calculated?

I am aware of one convention for the uncertainty in a median: it is 1.58 * IQR / Sqrt[n], where IQR is the inter-quartile range and n is the number of data points. This was proposed by McGill, Tukey, ...
14
votes
2answers
426 views

How to ContourPlot a function of the coordinates on the Earth's surface on a map projection

There are two similar questions (this and this), but one is too specific and the other is apparently not clear and has no answers. I'll try to make the question more complete. Suppose you have a ...
3
votes
2answers
172 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
154 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
62 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! ...
4
votes
1answer
144 views

Arrowheads not quite working as expected

I apologize if this question already has an answer, but my search has yielded no results, and I can't seem to figure out what's wrong with my code, so I thought I'd ask here. I'm using Mathematica 10: ...
2
votes
2answers
116 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 ...
-3
votes
2answers
146 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
359 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
3answers
183 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
618 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
95 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
134 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
137 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
50 views
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 ...
0
votes
1answer
79 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
90 views

Plot a function with a discrete part

I would like to plot a function like this one: ...
0
votes
1answer
109 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
206 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
531 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
321 views

How to combine ParametricPlot and RegionPlot?

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

TicksStyle in RegionPlot

How does TicksStyle work in RegionPlot? The below does not work: ...