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
1answer
130 views

plotting a function in bipolar coordinates

How to plot a function specified in bipolar coordinates if straightforward substitution of expression of Cartesian ones via them is impossible?
1
vote
2answers
84 views

Having trouble plotting. Here is my code:

Nothing is plotting when I try to run the code
4
votes
3answers
165 views

Changing color of overlapping plots

If I have two plots with two different colors, Plot[{Sin[x]^2, Sin[10 x]^2}, {x, 0, 5}, PlotStyle -> {Red, Blue}] is there a way to change the color of the ...
0
votes
0answers
22 views

What is the difference between these two syntax? [duplicate]

Consider the code below, at first I think these two are identical. However, running the below code in Mathematica 10.3.1.0, The first: 3 lines of different color. The second: 3 lines of the same ...
0
votes
0answers
55 views

How to plot a series of data with same x

How can I plot a list like {{x,y1,y2,y3,...,yN},{x,y1,y2,y3,...,yN},...} I have several y for x
1
vote
1answer
39 views

Plotting Elipsoids with large weight matrix

I'm running into some problems plotting 2D Ellipsoids with non-diagonal weight matrices -- they are not centered where they are supposed to be. I'm not sure exactly ...
1
vote
1answer
49 views

Epilog out of the plot range [duplicate]

I need to put some letters besides the plot, i.e. out of the plot range. I thought of using Epilog: ...
0
votes
0answers
33 views

How to construct my own ColorFunction with the TemperatureMap range

I would like to draw the unit circle and define my own coloring function on it so that every point $e^{i\theta}$ of the unit circle will be colored according to said function from the range of colors ...
0
votes
3answers
69 views

How can I create a four dimensional plot (3D space + color) of the data provided? [duplicate]

I would like the x, y, and z axes to be reserved for the first three columns and the color to be reserved for the fourth column. I would like the output to have a color bar and color function. If you ...
3
votes
2answers
116 views

How can I make the color points in ChromaticityPlot[] joined?

So I'm using ChromaticityPlot[] to plot some colors as points: ...
1
vote
1answer
39 views

Extra restrictions in best response functions using Manipulate[ ]?

I have two best response functions that I have defined like this: ...
0
votes
0answers
42 views

How to find Graphics coordinates in 3D Plot in Mathematica 9

I can't reproduce the steps as in the link to get coordinate points in a 3D Plot or Graphics in version 9 because with the mouse pointer I can by default only rotate/scale/shift the 3D Plot (also ...
0
votes
0answers
44 views

min and max in Ticks determination

I wonder, how Mathematica determines the values that it sends to custom tick functions, ie. the minimum and the maximum on the axes? Here is an example: ...
2
votes
1answer
65 views
4
votes
2answers
163 views

Plotting the sum of curves without recalculation

I want to plot several curves of functions which are hard to calculate on the same plot. I would like to add to the same plot the sum of these functions without recalculating them twice at each point. ...
0
votes
0answers
29 views

opening and closing a new notebook

This work perfectly CreateDocument[{TextCell[ Manipulate[Plot[Sin[a x + b], {x, 0, 7}], {a, 1, 4}, {b, 0, 10}], "Output"]}] but if I want to change say 7 for ...
4
votes
2answers
166 views
5
votes
1answer
122 views

How can I get the interpolation line from Listplot?

My discrete data is: data={{1., 5827.}, {3., 6242.}, {15., 6066.}, {60., 5972.}} I want to get the interpolation line from ListPlot: ...
0
votes
1answer
84 views

Concerning the default coloring made by Plot3D in 10.4 [closed]

Recently, I have installed Mathmatica 10.4, but I found out that when I use Plot3D, it gives me a mesh. In order to add color, I have to explicitly set ...
6
votes
3answers
386 views

Integrate to calculate enclosed area

I am trying to 'use an integral in polar coordinates to calculate the area enclosed by this curve': The curve is: r=sin2θ, θ ∈ [0, π] which I believe is already in ...
1
vote
0answers
46 views

Region traced by the endpoints of all vectors given by a parametric expression

I have the expression of a vector e, with 3 parameters tt1 tt2 and tt3: ...
0
votes
1answer
33 views

How to increase the size of fonts and tick marks and numbers in plotting a contour plot in Mathematica 8.0?

I have some function of two variables, $x$ and $y$, and I would like to plot $x$ vs. $y$ parameter space probability distribution function in which the contours are represented by ...
3
votes
2answers
103 views

Evaluating Functions on Zero Sets (of other functions)

I have a highly non-trivial function, call it $f(x,y)$, in which I want to look at its zero set in the $(x,y)$ plane, and plot/evaluate a different function $g$ precisely along this zero set. I have ...
0
votes
1answer
29 views

Trying to plot predefined function list, PlotLegends option fails using legend list

I am trying to predefine the functions I want to plot. A minimal example of what I am trying to achieve looks like this: ...
1
vote
1answer
144 views

Plotting Phase Diagram

I have the following problem that I'm sure Mathematica can handle, but it's not working for me! In the following code, I'm trying to replicate the Ramsey Model Phase Diagram. In fact, I want now ...
2
votes
1answer
63 views

Higher functional programming partial substitution

This h[g_, x_] := g[x] h[Sqrt, x^2] works obviously as well as : f[x_]:= x^2 h[f,x] but if ...
1
vote
0answers
88 views

“Kriging” plot method? [closed]

What does "Kriging" method for plotting do? Could someone show an example? Has it anything to do with the geostatistical interpolation method (Wiener-Kolmogorov prediction)? I bumped into it here and ...
2
votes
1answer
39 views

Limit Relief plot output to specified X and y range

I have a table of values and I'd like to use ReliefPlot to visualise. Is it possible through the plot command to limit the $x,y$ range displayed? The help suggests ...
2
votes
0answers
48 views

ImageSize not working correctly with Legends and Placed directives

It seems that having Placed inside Plot breaks the ImageSize specification: ...
-1
votes
2answers
38 views
2
votes
1answer
64 views

ListPlot of auto-correlation function pushes data 1 lag

I'm trying to plot a graph of a sample autocorrelation function at different lags. The code I'm using is ...
3
votes
2answers
112 views

How to plot a volume for triple enclosed by surfaces

My main issue (multivariate calculus), I want to plot the body made within the surfaces y + z = 4, y = 4 - x^2, ...
2
votes
1answer
84 views

How can I get dynamic control over the domain of a contour plot? [closed]

I am trying to plot a specified contour of my function of two variables. I call ContourPlot with my function as follows: ...
1
vote
1answer
87 views

Automatically generate and manipulate variables in Mathematica

First line is just loading data from a txt.file, so that i get two lists {f1,f2,f3,..},{laser1,laser2,laser3,..}. How can I do the same thing as above in just one line? i.e. I have a list of laser ...
0
votes
1answer
193 views

Using data from NDSolve into a secondary equation

I have this ODE, f''''[y]+Z1*(6 f''[y]*f'''[y]*f'''[y]+3 f''[y]*f''[y]*f''''[y])- N1*N1*f''[y] == 0 subject to boundary conditions ...
3
votes
2answers
126 views

Expected area of random triangle

I want to check the following theorem by using Mathematica: $\textbf{Theorem} $. If three point $P,Q,R$ are picked independently at random in the triangle $ABC$, than expected value of the area of ...
-1
votes
1answer
66 views

Plotting a function of another function

Edit: So I have several functions which come from other functions. For example: ...
2
votes
3answers
160 views

Distance from point to line [duplicate]

I'm a newbie with Mathematica and I managed to draw a line and a point in 3D on a graph ...
-1
votes
1answer
85 views

How can i 2d-plot Cobb-Douglas function?

can I plot Cobb-Douglas function in 2D without using ContourPlot? I have this function: u[x1_, x2_] := Log[x1] + 2*Log[x2]; and now I plot it using: ...
0
votes
0answers
69 views

Plotting function described by other functions!

I want to plot and manipulate my VS function which comes from the other functions above it. So, what should I use in order to draw my function considering that it is described by other functions. I ...
3
votes
5answers
141 views

ListPlot with colors

Let's create some sample data n = 100; d00 = Table[{RandomReal[{-1, 1}], RandomReal[{-4, 4}], RandomReal[{-1, 1}]}, {i, 1, n}]; Now I want the following: create ...
2
votes
1answer
47 views

Translate Tick Marks

The code below creates a StreamPlot for a nonlinear system of first-order ODEs: $\dot{x}=y,\dot{y}=x+\tfrac{1}{4}x^{2}$ I have created a simple zoom slider that expands the region about the critical ...
1
vote
1answer
41 views

Plotting a data of protein diffusion trajectory [closed]

I have a set of data points of protein diffusion in x-y plane. They are sequential in time i.e, recorded at regular intervals of 20ms. Now, I need to plot a line plot in 2 dimensions, which connects ...
1
vote
2answers
78 views

How to Combine 3D graphics

I'm trying to put this solid S1 = RegionPlot3D[z - 50 <= -2 x^2 - 2 y^2, {x, -5, 5}, {y, -5, 5}, {z, 0, 50}] on top of this one ...
3
votes
1answer
116 views

Optimize a parametric matrix to get a lowest possible eigenvalue

This question is a followup of Plot the lowest eigenvalues of a parametric matrix Now I can get the lowest eigenvalue LowEign(t) of the matrix for a given t numerically. When I plot the LowEign ...
0
votes
2answers
64 views

Unable to plot function with exponentials or to find all roots [duplicate]

I am not able to Plot[(-1)^x + 2^x - 2 x - 1, {x, -4, 4}] directly. Some rework might be needed with complex branch cuts perhaps. There are real roots at $ x=3, ...
6
votes
1answer
88 views

Why I cannot change the AxesStyle of the Plot?

Bug introduced in 8 or earlier and persists through 10.4.1 I am trying to plot the following single variable function: $$\small\frac{180 \sqrt{\pi ^2-625 t} \left(\pi ^2 (36 t-25)-1500 t \left(45 ...
4
votes
3answers
177 views

Using different style on segments of a plot [duplicate]

Is it possible to plot a function with two different colors? To illustrate, let's have: Plot[Sin[x], {x, 0, 2 π}] which plots a curve. And I would like it to be ...
2
votes
1answer
61 views

Plot the lowest eigenvalues of a parametric matrix

The question here is somewhat related to the comments in Computing eigenvectors and eigenvalues I have a matrix M, say 400 by 400, and all elements depend explicitly on one parameter t in a ...