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

learn more… | top users | synonyms (4)

6
votes
2answers
518 views

Too much whitespace in a GraphicsGrid containing Legended Plots

Where is all the vertical whitespace coming from, and how do I get rid of it? ...
3
votes
2answers
423 views

Generating an Airy disk on a plane

I wish to generate a surface intensity plot of an Airy disk (or perhaps a two-dimensional Gaussian approximation to an Airy disk) on an (x, y)-plane at a specified coordinate. The hope is to have ...
1
vote
1answer
107 views

Two-way locator & slider controls

I was wondering whether it was possible to have a two way control system, whereby one could click and drag both the locator (which would in turn move the sliders), AND click & drag the sliders ...
14
votes
4answers
536 views

How do I plot a histogram with hatched shading?

I can plot an ordinary histogram with blue shading and black borders like this: T = RandomVariate[NormalDistribution[0, 1], 10000]; Histogram[T, 30] And I can ...
2
votes
2answers
267 views

Locator to show coordinates of plot

Old I would like to make the locator follow a plot, giving the coordinates as it moves. I don't really know where to start with this one, but I would like the dynamic plot to look something like ...
0
votes
2answers
88 views

Gaps in plots of equation solution from parameter

I'm trying to plot solution of system of equations as a function of parameter ...
10
votes
1answer
399 views

How do I place a texture on an irregular 3D model?

I'm trying to reproduce a textured head in Mathematica, and I'm using a kind of 'net' of a head which contains all the features on the face. The texture looks like this: which is supposed to look ...
4
votes
2answers
255 views

How and when to use Evaluate?

A month ago, I used Mathematica to solve my experiment of the Test Technology of Mechanics Engineering. The exeriment is mainly about the Fourier Transform and verify the validity of the theory of ...
6
votes
1answer
248 views

In version 9 PlotLegends, how can I remove the strange edges that appear around LegendMarkers?

I'm running Mathematica version 9. I am using ListPlot to plot two sets of data. For each data set, I am using different ...
6
votes
1answer
123 views

Fixing Spline curves so as to not overlap with themselves - (Diagrams)

Statement of the problem: Conceptually, what I'm trying to achieve is pretty simple. I have some code that generates a set of diagrams from a list of sets of points using BSplineCurve. Certain ...
1
vote
4answers
201 views

Given an implicit solution, how to plot transformation of this implicit solution?

I have a function, which gives an implicit solution of a variable $y$ as a function of $x$. Moreover, I have a function $f$ which depends on $y$. How to plot a ratio of $f/y$, given that $y$ is only ...
9
votes
4answers
322 views

Finding a point from a set of contours such that it is nearest to a given point

I have several contour lines and one point. How can I find a point in one of those contour lines which is nearest to the given point? ...
0
votes
1answer
114 views

Understanding distribution chart

How to explain DistributionChart function in mathematica, For example: if I have ...
3
votes
2answers
246 views

How to show the coordinates of a point and the equation of a line dynamically? [duplicate]

I am constructing a diagram that consists of a sine curve and its tangent line at a given argument. However, I want to show the coordinates of the point of tangency and the equation of the tangent ...
1
vote
1answer
313 views

How to combine two plots with the same y-axis

I have a data file which contains three columns of data. The first and the second column correspond to $x$ coordinates, while the third column to $y$ coordinate. Here is a small sample of the data ...
1
vote
1answer
172 views

Plot the solution complex transcendental equation

I'm trying to plot an implicit function satisfying a complex transcendental equation. The code is the following: ...
1
vote
1answer
65 views

What's wrong with the following Plot in Manipulate?

I try to show the convolution of a step function and a triangle function is smooth with the following code: ...
1
vote
1answer
166 views

Formatting plot of symmetric points differently to asymmetric points

From an array of numbers, I would like to determine (and then colour appropriately) which points are symmetric about a given axis (here, $x = 1/2$), and which are not. For example, form this: ...
2
votes
1answer
74 views

Plot with non-standard domain

I have data {x, y} where x starts at -25 degrees and goes up to +25 degrees in 1 degree steps, and then comes back down to -25 degrees in 1 degree steps again. I ...
2
votes
2answers
130 views

How to plot complex values given by Solve

Update Solve[N[Table[BernoulliB[n, z], {n, 10, 10}] == 0]] ...
2
votes
2answers
141 views

How to increase the size of the dot produced by OverDot[]

As the title says, I want to find a way to increase the size of the dot produced by OverDot[]. Here is a simple code ...
3
votes
2answers
157 views

Differentiating a Cumulative Distribution Function which has a discontinuity at $0$

I want to take the derivative of a distribution function which has a discontinuity at $0$. Here is the function: ...
6
votes
3answers
499 views

Customizing & finding intersection points in polar plot

I want to verify a theory stating that a golden mean spiral plotted on a polar graph will have intersection points at specific values. There should be 8 concentric circles, each at the same ...
2
votes
1answer
504 views

How to find an asymptote of a logarithmic curve

An exponential decay curve has been plotted asymptoting at approximately x=30 (correct for what I am looking at) How can I find the exact value from the curve? I was hoping to be able to use ...
4
votes
1answer
566 views

How do you export the result of a RevolutionPlot3D to STL for printing?

How do you export the result of a RevolutionPlot3D to STL for printing? I am a tyro when it comes to 3D rendering and printing. Thanks for any help. Jeff Thomson
3
votes
1answer
141 views

Plot Ticks disappear when combining Plot with Graphics

I'm attempting a simple Plot that I want to add asymptote markers to: ...
4
votes
3answers
162 views

Border on part of ArrayPlot

I need to outline with border the group of cells in ArrayPlot. More precisely in my case I would like to outline all blocks of two black squares in the following line. ...
2
votes
1answer
115 views

How to frame a PairedHistogram and manipulate the frame ticks?

How can I Frame a PairedHistogram and manipulate the frame ticks? I want to specify and control the frame ticks in the paired ...
3
votes
1answer
320 views

Plotting velocity vectors for pressure driven pipe flow

So I find the velocity profile for Pressure driven pipe flow and it looks like: $$u = \frac{h^2}{2 \mu} \frac{\mathrm{d}P}{\mathrm{d}x}\left[1 - \left(\frac{y}{h}\right)^2\right]$$ Here, a fluid ...
6
votes
4answers
184 views

Draw graph wherein vertices are ArrayPlots

I need to place ArrayPlots in the vertices of graph. i.e. in graph Graph[{1->2, 2->3, 3->1}] I have to replace vertex 1 with ArrayPlots[{{0,0,1}}] and ...
0
votes
1answer
2k views

Plot points, line and plane in one 3D plot [closed]

What's the easier way to plot these coincidently in 3D: ● The plane $5x - 4y - 9z = 0$ ● Parametric line $x = t, y = t/2, z = t/3$ ● Two points: $(0, 0, 0), (1, -1, 1)$ ? Moreover, how can I pick ...
2
votes
1answer
107 views

Set defaults for ViewPoint and AxesLabel

Instead of adding AxesLabel -> {x, y, z} every time to code in order that the axes appear, how can I make Mathematica display the axes by default? Also, how can ...
6
votes
6answers
1k views

Filling a curve to a vertical axis

I am preparing a figure for an article, and I would like very much to be able to fill a curve, but not under it, but to the vertical axis, i.e. to the left. Due to the meaning of the data I present, I ...
0
votes
1answer
246 views

How can I combine several 2D-plots to one big 3D plot?

So I've been able to make a list given by list = Table[{xValues, f[xValues, t (*fixed*)]}, {xValues, xmin, xmax}] For example: ...
1
vote
1answer
110 views

Can Epilog be used with ParametricPlot3D

This command: ParametricPlot3D[{Cos[t], Sin[t], t}, {t, 0, 2 \[Pi]}, Epilog -> {Arrow[{{0, 0, 0}, {Cos[\[Pi]], Sin[\[Pi]], \[Pi]}}]}] Produces the ...
4
votes
1answer
168 views

How can I stack plots so that they are aligned nicely? [duplicate]

Suppose that I have two plots (e.g., Plot, ListPlot, etc) that cover two regions of space. I would like to display them ...
4
votes
3answers
326 views

Plotting the convolution of the same probability density function with itself

I would like to compute the integral $$q_n(x)=\int_{B}^A q_{n-1} (\omega)f(x-\omega)\mathrm{d} \omega,\quad q_1=f,\quad n\geq 1.$$ for a given density function $f$. Basically it is the convolution ...
1
vote
2answers
216 views

Placing text inside a region with RegionPlot

I am plotting many regions with RegionPlot. I would like to label each region as I plot it so that I get something that looks like figure made with the following code: ...
-3
votes
3answers
176 views

Statistical analysis of a data file and its Plot [closed]

As the title says, I have an external data file which contains thousands lines of data. The data file contains eight columns and here is what I would like to plot: Let's assume that the length of the ...
2
votes
2answers
572 views

How to plot the 2-D graph of Abs[x]+Abs[x+y]==1?

Problem Description: Today,I countered a integration problem that I must plot the 2-D graph of Abs[x]+Abs[x+y]==1. I plots it step by step by hand: When x>=0, x+|x+y|=1 ...
0
votes
0answers
289 views

Problem enabling PlotLegends in Mathematica 8.0

I am trying to make a legend for a simple plot in Mathematica 8, but does not seem to recognise the command PlotLegends. I declared beforehand ...
6
votes
2answers
807 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 ...
-1
votes
1answer
120 views

Plotting a function that uses the solutions to a system of differential equations

I am trying to draw a plot by using the solution of differential equations ...
3
votes
2answers
156 views

CustomTicks - Changing NumberPoint -> “,”

How can I change the number point from . to , in CustomTicks ? The Mathematica built-in ...
0
votes
1answer
126 views

Curve Fitting Errors

I am trying to fit a part of a dataset to the function $$ae^{-b\sqrt{x-c}}$$. My friend was using GNUPlot to this and got reasonably good results. However when I try to this with Mathematica : ...
13
votes
7answers
998 views
0
votes
1answer
402 views

Ellipsoid in spherical cordinates

I am trying to plot in spherical coordinates the ellipsoid defined as $$(x/3a)^2+(y/2a)^2+(z/4c)^2=1$$ This is my code: ...
1
vote
1answer
85 views

Issues with creating functions [duplicate]

Sometimes when I try to create a function inside a function, Mathematica gives me a hard time. I usually just have to play around with the syntax until it gets something it "likes" but I really have ...