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
923 views

Adding tangent (velocity) vectors to a plot of a space curve [duplicate]

I am just getting started with Mathematica and need help plotting tangential vectors to a 3D parametric function. I know how to do this in 2D but am unsure how to do it in 3D. Maybe I am using the ...
10
votes
1answer
197 views

Why is my rasterized graphic blank?

Consider the following code: ...
6
votes
1answer
720 views

How can I get better control over StreamPlot?

I'm having some difficulties with the command StreamPlot in Mathematica 7.0. Here's the basic plots I'm doing : ...
5
votes
1answer
165 views

How can I get vectorized text when exporting to pdf?

Consider this code: ...
6
votes
2answers
292 views

How to display the support supp(f) of a piecewise function z = f(x,y)?

I'm wondering how to display the support $\mathrm{supp}(f)$ of a piecewise surface $z = f(x,y)$. As an example, let's consider the following piecewise function (and plot it): ...
2
votes
1answer
211 views

RegionPlot3D Error

I have the following command: RegionPlot3D[ Log[p1/(1 + p2)] > 0, {p1, 0, 0.5}, {p2, 0.5, 1}, {C, 0, 1}] and my Mathematica 9 gave me the following error ...
1
vote
0answers
140 views

problem with exporting transparent object to pdf in version 9

Here is the code: Export["~/Downloads/1234.pdf", Graphics3D[{Lighter[Black], Opacity[0.5], Polygon@Table[{Cos[x], Sin[x], 0}, {x, 0, 2 \[Pi], 0.01}]}]] in ...
6
votes
6answers
468 views

Sort list by day names (Monday, Tuesday, etc)

I have some dates in a list, and I want to plot how many of those dates are Monday, Tuesday, etc. I'm using this: data = {...} Tally[DayOfWeek /@ data] and I ...
3
votes
2answers
330 views

Transcendental equation inside another equation when 3D plotting

I have been trying to solve this plotting problem myself, and I have received a lot of very useful advice from here on Stack Exchange - but I am now at a complete loss as to how to achieve the plot I ...
1
vote
1answer
496 views

Plotting a network or a graph with given coordinates for vertices

I'm new to Mathematica yet have coded a lot in MATLAB. Currently I'm working on a network simulation. My model is implemented in MATLAB, but I need to port it to Mathematica. Here is my question: ...
4
votes
1answer
260 views

ListDensityPlot performance when scaling axes

I need to visualize 3D data having 200*200 data points. ListDensityPlot is a good candidate, but it seems to have strange performance issues. I created a small ...
6
votes
2answers
450 views

Plot3D constrained to a non-rectangular region

I would like to make a nice 3D graphic of a parabolic bowl, with a cylindrical rim. If I do the following: Plot3D[x^2 + y^2, {x, -3, 3}, {y, -3, 3}] I get a ...
0
votes
1answer
146 views

Module Returns Two Values for Plot; I need to Color them

This is probably a very stupid question, but I've been fighting with it for quite awhile now. So suppose you have a module: ...
1
vote
1answer
746 views

PlotStyle in ListPlot: change color scheme, manually choose color of first plot

Say i have this data: data1 = Map[Cos, Range[0, 20]]; data2 = Map[Sin, Range[0, 20]]; And i want to plot data1 in gray and a ...
1
vote
1answer
151 views

Plotting a pattern made of repeating unit blocks but of changing width

I am plotting a pattern as illustrated in link shown below. I want to create an image of fixed size. The whole image should be filled by repeating unit blocks which consist of black and green ...
4
votes
1answer
543 views

How to draw a Circle in a graph with Log Y Scale

I've programmed drawing tools for graph images and am experiencing a problem with the coordinates of an Ellipse on a graph with a Log Y axis. It's quite easy to work out the Y Axis coordinates for ...
17
votes
4answers
1k views

Visualization of Bivariate Distributions

I know it is perfectly possible to show the bivariate probability distributions in MMA. But my question is can we show each dimension of distribution in 2D dimension while we are showing the 3D plot? ...
1
vote
1answer
617 views

Fixed color scale in multiple density plots with Fixed PlotLegends scale

From the great answer of Mr. Wizard, I would like to learn how to implement the associated PlotLegends scaled too. Here is the simplest example with PlotLegends, which does not look to be scaled: ...
5
votes
2answers
467 views

How to graph a series of coupled oscillators and watch the wave move along them

Here are the differential equations that set's up the 11 coupled oscillators. ...
5
votes
2answers
860 views

How to label axes in 3D plot adequately?

The following code produces plot with axes labels, which are jumping constantly. ...
1
vote
0answers
41 views

3D plot changes it's size while rotating [duplicate]

When I am rotating drawn 3D plot by mouse it rotates Ok until mouse release. After that it slightly changes it's size instantly. Probably it tries to accommodate document layout or something. Is it ...
3
votes
1answer
515 views

White spots in ListDensityPlot

I have a problem with ListDensityPlot. I have some data on an irregular grid. I try to plot them with ...
9
votes
4answers
713 views

Aligning axes labels on multiple plots

I'm trying to create some "publication quality" figures, but Mathematica is fighting me all the way. So my question is: Should I switch to Origin? Please help! Well, all joking aside: I'm trying to ...
35
votes
3answers
862 views

Why are my plots displaying behind the axes?

I need to create graphs with light gray axes and black lines. All of my plots display behind the axes. How can I make the plots display over the axes? ...
0
votes
0answers
171 views

Change the order of magnitude on the y axis Ticks with ListPlot

I have some data plotted with ListPlot. The values on the y axis range from -411230.40068*10^9 to -411230.20005*10^9. Mathematica, when plotting the data, shows me on the y axis only the value ...
3
votes
2answers
310 views

Plotting the deformed shape of a rectangle

I want to plot a rectangle using graphics : rc = Graphics[{Blue, Rectangle[{0, 0}, {1, 1}]}]; and add a deformation function to it: $$\chi(\mathbf ...
11
votes
4answers
1k views

Plotting ErrorBars with a different style

I would like to plot the error bars of ErrorListPlot with a different style than the points. I know of ErrorBarFunction, but ...
0
votes
0answers
49 views

Is there a way to add arrows along a parametric curve inside a manipulate function? [duplicate]

I cannot find a good way to add arrows along a parametric curve that I used NDSolve to get. I have written everything inside ...
6
votes
3answers
590 views

How do I find the intersection of a closed 3D curve given by numerical data with a specified plane?

I have a list of 3D data points which form a closed curve. My own data can't be easily generated analytically, but the qualitative behaviour is well represented by a parametric curve families such as ...
6
votes
2answers
521 views

Animated Vector plot

I'm trying to make an animation of a time-varying 2D vector field. However, I'm got a difficulty in that Mathematica normalises the length of the vectors with each call to ...
2
votes
4answers
219 views

How to improve the quality of the ListPlot output

I need to plot massive data stored in external ASCII files. Below is the Mathematica code I use for this job: ...
1
vote
2answers
269 views

Finding normals to a curve through a given point

I want to find x on curve $y(x)$, where curve $y(x)$ is perpendicular to point $(x_0,y_0)$. for this I minimize the distance between points $(x,y(x))$ and $(x_0,y_0)$, here's an example for point ...
17
votes
4answers
1k views

Plotting a contour on a torus

There are two ways to consider a two-dimensional torus. One way is to take a parallelogram (let's say the square $[0, 1]^2$) and topologically glue the opposite edges. Another way is to look at the ...
5
votes
2answers
486 views

Transcendental equation with ContourPlot3D

I am still a newbie to Mathematica, so I am still getting used to the syntax and logic of the program - but I've been trying to do the following 3D plot: ...
0
votes
1answer
111 views

Counting Stochastic Processes and displaying relative value

Counting Stochastic Processes and displaying relative value I have two watermarks and multiple stochastic processes given. I want both to display and count the stochastic processes which are below ...
0
votes
1answer
373 views

Manipulating and plotting two interdependent functions: [closed]

I want to plot two functions. Function G8 and G9. Both should be manipulable. Function G9 should dependent on Function G8. Function G8 has a bigger starting value. If function G8 increases by δ ...
2
votes
0answers
195 views

Plotting equipotentials gone wrong [duplicate]

I'm plotting the equipotential of the potential function: $$\phi(x,y,z):=\frac{1+x^{2}+y^{2}+z^{2}}{[\left(1+x^{2}+y^{2}+z^{2}\right)^{2}-4z^{2}]^{1/2}}$$ Mathematica code: ...
0
votes
1answer
267 views

Plotting the simulation of Brownian Motions with multiple thresholds

I have the following problem: I have a watermark in this model where not only the mean of all stochastic processes is calculated, but also the mean of those processes which remain beyond a given ...
0
votes
1answer
156 views

Mathematica issue with Plot, D and SetDelayed [duplicate]

I've tried to run the following code: f[x_] := 2 ArcTan[x] + ArcSin[2 x/(1 + x^2)]; Plot[D[f[x], x], {x, -4, 4}] Same with ...
1
vote
3answers
550 views

plot a tube via a 4D plot [duplicate]

I have a function f[x_, y_, z_] := Exp[-x^2]*Exp[-z^2] which traces out a tube along $y$. Is there a way to plot this 4D function, where the plot color is the ...
1
vote
1answer
317 views

plotting output from FindRoot

I am an R user and am totally new to Mathematica. I am trying to find the roots of a system of two equations over a series of paramter values and plot the results. I can do the computation but would ...
6
votes
2answers
964 views

How can I compute and plot the 95% confidence bands for a fitted logistic regression model?

I have a set of binary data that I' d like to fit a logistic regression model to and show the 95% confidence band around the fitted function. I can produce the regression model but how do I compute ...
0
votes
1answer
109 views

Displaying Values of Fuction at end of Period by Grid

My intention is to place the values of two function into a small box within my chart. To be more precise I have two vectors. A meanvector which shows the average value of all simulated stochastic ...
1
vote
2answers
288 views

Scatterplots for subsets of multivariate data [Updated]

Update/Re-write There has been a lot of ambiguity over what i'm am trying to do with this question so I have decided to give it a full rewrite. I'm really sorry for the confusion. If you want to see ...
4
votes
2answers
243 views

Disk is displayed distorted in plot

What is the problem with my plot? I want to get a disk shape. ...
1
vote
3answers
226 views

point-wise transform of `Plot`

Suppose I have the following plot: Plot[(1 - p2)^2/(p2^2 + (1 - p2)^2), {p2, 0, 1}, AxesLabel -> {"p2", "p1"}] Now I want to do a point-wise transform to ...
0
votes
1answer
137 views

Stopping- threshold and stopping- time of stochastic processes.

Rod Lm helped me to generate the following code, which I want to extend a little bit. So my intention is to use the threshold (the green line) as boundary in the following way: as soon as the process ...
4
votes
2answers
950 views

Plotting a Complex Valued Function

Suppose that a complex valued function f[z]=f[x+i y]=u[x,y]+i v[x,y]. I want to plot3d its real part by coloring it with respect to its imaginary part. For ...
1
vote
2answers
126 views

Scripting a visual comparison between the derivative and some finite scheme

I want to make an application where I can specify a function $f:\mathbb R\to \mathbb R$ and a dynamic value $n$ and get the function $\frac{f(x+\frac{1}{n})-f(x)}{\frac{1}{n}}$. I moreover want to ...
1
vote
1answer
414 views

Making a ListVectorPlot3D from data in an external file

I have a .dat file with six columns: {x y z vx vy vz}, where x, y, z are space coordinates and vx, vy, vz are the vector components. How can I use this file to get ...