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

learn more… | top users | synonyms (10)

0
votes
0answers
36 views

Option ItemAspectRatio in GraphicsGrid has weird behaviour in MMA 10.3

Has anybody noticed that the Option ItemAspectRatio in GraphicsGrid is no longer valid? It ...
5
votes
1answer
100 views

inset legend from top right corner / find size of swatchlegend bounding box

The question is the following. Using Inset, we can insert a legend in a Plot (in a Graphic, in general). E.g. ...
2
votes
1answer
108 views

How to put the result of NDSolve in a function?

I have solved an ODE with NDSolve, and put the result in S: S = NDSolve[{y'[x]==(y[x]^4+y[x]+1)^(1/2),y[0]==0}, y, {x, 0, 100}] But i don't want to plot y[x] ...
6
votes
0answers
112 views

How can I export 3D plots as vector graphics? [duplicate]

Consider the following simple example code: plot3D = ListPlot3D[{{0, 0, 1}, {1, 0, 0}, {0, 1, 0}}, Mesh -> All]; Export["plot3D.pdf", plot3D] As clearly seen, ...
15
votes
2answers
605 views

Export Plot3D in Mathematica 10.1 is Rasterized by default

When I use Export to export Plot3D to PDF format, I get different behaviour in Mathematica 10.1 compared to 10.0. In particular, ...
7
votes
3answers
4k views

Plotting contours plot for f(x,y,z)=c

I have the following question: I have a file that has structure: x1 y1 z1 f1 x2 y2 z2 f2 ... xn yn zn fn I can easily visualize it with Mathematica using ...
7
votes
2answers
193 views

Parametric plot on multi-dimensional domain

I wish to plot all the points in 3 space that satisfy the following conditions. $$ (x,y,z) = (a^2+b^2, ac+bd, c^2+d^2) $$ for $a,b,c,d$ in some range. I have tried the following. ...
6
votes
2answers
322 views

How to make a 2D plot of 3 variables (sample picture attached)

Is it possible to plot that kind of graph in Mathematica? (picture attached) If yes, it can be used to visualise a simple "balance system" of the form: X = f[e]; ...
0
votes
1answer
50 views

Error bars missing from list plot

I am trying to make a ListPlot with errorbars by using Filling. However, is some cases, some of the errorbars are missing. Why? ...
2
votes
0answers
48 views
1
vote
4answers
386 views

Mapping Contour Plot onto ListPlot3D (or by using color variations) [closed]

I am trying to overlay a contour plot I have created on a ListPlot3D graph. I have seen a few questions answered on this website that answer my basic question. ...
2
votes
3answers
110 views

How to make plot and a graphics have vertical axes align in grid [duplicate]

How can I modify the following code so that the vertical axes in both the graphics and plot align up? I think the aspect ratio for the plot is good. It appears that changing the ImageSize of the plot ...
1
vote
1answer
164 views

How do I plot this 3-D, double integral?

I have the following function: I need to plot a 3-D with coordinates f (p, q), p and q. I mean, I enter values for p and q, so that the integral of f (p, q) must be a number. This number must be ...
3
votes
1answer
131 views

How do I color Riemann integral rectangles using conditionals?

I'm building a function to visualize the Riemann integration process for any function using rectangles. Everything is fine, except that I need the color of the rectangles to change if they're under ...
2
votes
1answer
54 views

How can I get Tooltip to use a string variable as its parameter?

I have an x/y data set casualties with Union and Confederate Civil War casualties. I have a third variable, battles, listing the names of all of the battles. Currently ...
8
votes
1answer
150 views

ParametricPlot MeshStyle bug in v10?

Bug introduced in 10.0.1 or earlier and fixed in 10.0.2.0 Original Post The documentation gives the following code and says "Use a red mesh in the x direction and a blue mesh in the y direction:" ...
4
votes
3answers
240 views

Animate $2D$ butterfly curve in $3D$

There is a butterfly curve $$r(\theta)=e^{\sin(\theta)}-2.4\cos(4\theta)+\sin \bigg( \frac{\theta}{12} \bigg)^5$$ ...
1
vote
2answers
109 views

A 2D-plot with second X-axis [duplicate]

I plotted a simple function with: ...
1
vote
1answer
87 views

Fourier Series plot

I'm trying to plot partial sum of Fourier series. I've finally managed to make it work but there are several things I don't understand ...
5
votes
1answer
203 views

My introduction to Compile

I am reading Fractals from the Newton-Raphson method from Peter Young's page [http://young.physics.ucsc.edu/115/]{http://young.physics.ucsc.edu/115/}. I've tried: ...
3
votes
2answers
124 views

Plotting solutions of systems in complex plane

I'm interested in plotting solutions of systems of polynomials in the complex plane, in the following way. Let $f_1,\ldots f_s$ be complex polynomials in variables $x_1,\ldots x_n$. I know how to ...
0
votes
0answers
51 views

How to draw a distribution plot (dotplot?) like this in mathematica? [duplicate]

I believe I've seen this answered already here in Stack Exchange but I could not find it again, so here I am asking, hoping that someone knows this other post I am referring to. Here are examples of ...
2
votes
1answer
58 views

PlotRange problem [closed]

When I plot a list (20 points) using ListPlot, the plot always begins at 1 and not 30 as my PlotRange indicates. ...
27
votes
3answers
10k views
2
votes
1answer
175 views

Plotting three-dimensional plot with Interpolating functions

I want to plot my functions, but I can't seem to figure out what's going wrong. I want to be able to animate it as well. ...
0
votes
1answer
121 views

Calculate overlap coefficient between two functions

I have two functions and I want to calculate the overlap coefficients between those two functions. A similar question has been answered for Python and R, however, I couldn't find an answer for ...
1
vote
2answers
80 views

I want to graph all of ArcSin without restriction, how would I format that? [closed]

I am new to this and I've plotted this:Plot[3 ArcSin[x + 4] - 16, but I don't know what/how to specify the range?
2
votes
2answers
94 views

2D List Plot in a 3D box: What am I doing wrong?

Let me just show the result first, and you'll see the error easily: Now, this is just a 2D image sent into a 3D box, so you'd think they looked alike. But the 2D image behaves well: The code was ...
15
votes
1answer
705 views

Mathematica: 3D plot based on combined 2D graphs

I have several sigmoidal fits to 3 different datasets, with mean fit predictions plus the 95% confidence limits (not symmetrical around the mean) and the actual data. I would now like to show these ...
15
votes
1answer
321 views

Bug in plotting function using FindMinimum?

Bug introduced in 10.0 and persisting through 10.3 or later While working on an answer to RegionPlot from NDSolve, I came across this strange behavior of ...
5
votes
3answers
1k views

Spherical parametric plot

How can I plot such a parametrized curve: $r = 2\cos t + \sin t$ $\theta = t$ $\phi = \sin 10t$ where $0<t<\pi/2$. In the documentation only has been discussed parametric plot in Cartesian ...
1
vote
1answer
83 views
3
votes
1answer
2k views

Define and plot a piecewise function with parameters [closed]

I have this function , but i do not know how to define it in mathematica \begin{equation} f_t(x)=% \begin{cases} i& \text{$\frac{1}{1+i}<|x-t|\le \frac{1}{i}$} \\ ...
5
votes
1answer
98 views

Add single contour line to relief map [duplicate]

I have generated a relief map according to a method shown in Mathematica documentation, viz: ...
3
votes
1answer
66 views

join two ListVectorPlots

I have two ListVectorPlots, the are given below ...
1
vote
1answer
95 views

Is there a built-in function implementing the minimum and maximum gradient?

Suppose I have a set of data. Mathematica has fitting functions to determine the line and corresponding equation to the best fit given any arbitrary set of data. But in experimental techniques, ...
6
votes
4answers
694 views

How to repeatedly show variations on a plot

I would like to show graphics repeatedly with changes in parameters. Neither of the following show anything. Nor do they give an error message. ...
3
votes
2answers
62 views

How do you add one chart to the right of another? [closed]

I have two charts, and I would like to insert the data from one at the end of the other. However, the one chart has multiple ListLinePlots, and when I use Show to try and place the two together, the ...
2
votes
1answer
70 views

Control the color of contours [closed]

I use ContourPlot frequently and sometimes the contours are not easily discerned because most values are small with a few very big ones. When I use ...
2
votes
1answer
130 views

Align axes in GraphicsGrid - with one rotated figure

I would like to align the axes of the three plots: g3, gPosteriorMarginalMu and gPosteriorMarginalSigma: ...
5
votes
2answers
178 views

How do I animate a bar chart?

Is there any easy way to have an animated bar chart (one where the heights of the bars change with time)? I currently have the following code: ...
7
votes
1answer
96 views
4
votes
3answers
158 views

List of points with colors

I am working with a list of points on the plane, to each of them a natural number is assigned. It will be responsinble for the points' colors. 1) My first question is very easy: at initial moment I ...
1
vote
4answers
132 views

Plotting animated point on a polar plot

How can I animate a point on a polar curve? I have used Animate and Show together before in order to get the curve and the moving point together on the same plot, but combining the polar plot and the ...
3
votes
2answers
109 views

Plotting many tuples with ListLinePlot [closed]

I have data tuples, and I want to visualize them in an "overview" in a single plot with ListLinePlot. Example data: ...
5
votes
4answers
254 views